![]() |
Re: PID & One Second Delay Between Auto and TeleOp
Quote:
|
Re: PID & One Second Delay Between Auto and TeleOp
Quote:
|
Re: PID & One Second Delay Between Auto and TeleOp
I think this is closer to what you want. The logic is simpler if you move the timer check into disabledPeriodic(). The result of timer.getFPGATimestamp() is probably not what you want.
Code:
|
Re: PID & One Second Delay Between Auto and TeleOp
Thank you, I think this should work!
Quote:
|
Re: PID & One Second Delay Between Auto and TeleOp
Quote:
Code:
teleopInit(){ |
Re: PID & One Second Delay Between Auto and TeleOp
Quote:
|
Re: PID & One Second Delay Between Auto and TeleOp
WillNess, I think your change is a good one.
In my code, I assumed that you'd have at least a second of disabled between your practice runs. That delay causes teleopAfterAutonomous to become false. Your change resets things immediately. |
Re: PID & One Second Delay Between Auto and TeleOp
Yes I don't think I'll ever be starting the robot within 1 second of code uploading or rebooting.
|
| All times are GMT -5. The time now is 12:32. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi