![]() |
Re: Java wait Function
The MotorSafetyHelper is disabled by default for the Victor, Jaguar, and Talon classes. It is enabled by default for RobotDrive with a 100 ms timeout.
From RobotDrive.java: Code:
... |
Re: Java wait Function
That matches what I'd hoped for. Great.
Greg McKaskle |
Re: Java wait Function
Quote:
This causes the calling thread to sleep, and thus will cause your robot to hang unless called from a separate thread. Use time stamps as mentioned. System.getCurrentTimeMillis, or the FPGA timer, or anything else in a loop, or spawn a separate thread and call thread.sleep() in the new thread. But do not call Thread.sleep or Timer.Delay in the same thread as your TeleOp/Auto periodic functions. Hope this helps, Kevin |
| All times are GMT -5. The time now is 12:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi