Announcement

Collapse
No announcement yet.

Can a periodic task know if the robot is in autonomous mode?

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

  • Can a periodic task know if the robot is in autonomous mode?

    I have periodic tasks that runs while we are in autonomous mode.
    Which I'm happy about.
    However, during autonomous mode there is something that I want to do that would be prevented by the periodic task,
    I can't set a global variable because the autonomous task will quit and leave the global variable set.

  • #2
    Re: Can a periodic task know if the robot is in autonomous mode?

    Originally posted by Robotman View Post
    I have periodic tasks that runs while we are in autonomous mode.
    Which I'm happy about.
    However, during autonomous mode there is something that I want to do that would be prevented by the periodic task,
    I can't set a global variable because the autonomous task will quit and leave the global variable set.
    You can reset the variable in Telop Init. That's what we've been doing. You could also make the Robot Mode a global variable.
    Team 330 beta tester

    Comment

    Working...
    X