r/FTC • • 10d ago

Seeking Help Panels Variable Updates Not Working

My team is using a LinearOpMode op mode and they've got a speed variable that is a public static volatile double. The variable shows up in Panels, but when they change it, it seems to have no effect. They've verified the variable isn't changed using telemetry.

They are using the variable in a loop in the runOpMode method and I'm wondering if this is known not to work.

Another question is should updates survive after stopping and starting the op mode?

Thanks

3 Upvotes

4 comments sorted by

2

u/Potchum 10d ago

Are you using Pedro 3.0? That seems to be a side effect right now, panels and/or dashboard variables not updating within the op modes.

Not a solution but a band aid that we've used is to have two separate Android projects, one with Pedro and one without that we use for all of our variable tuning.

1

u/RoboCoachHereWeGo 9d ago

Yes, we are using Pedro Pathing 3. Good to know, thanks. have you seen any other documentation of this?

1

u/Potchum 9d ago

I've only seen a couple other threads on it with people asking if it doesn't work. No solutions.

1

u/jgarder007 4d ago

Download sloth panels. Fixes the Pedro interaction issue. OR comment out your Pedro tuner dependency when youre done tuning.