Announcement

Collapse
No announcement yet.

Gamepad object in Opmode

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gamepad object in Opmode

    We want to identify gamepad button state as Just pressed, pressed, just released and released. To make this possible we created our own gamepad class. Logic is fine but we observed strange behavior and I think gamepad object in Linear opmode is changing reference every time in loop. So we are thinking of not storing gamepad reference in our custom class. I want to confirm if gamepad object does change every time in opmode cyle? Is it true for opmode and also for LinearOpMode? Last question why? Isn

  • #2
    To complete above is it not bad for memory or gc?

    Comment

    Working...
    X