|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: waits
That will start the motors, while the Wait twiddles it's virtual thumbs letting them run for one second, before leaving the frame.
Of course, the way it's written, nothing stops the motors, so after the frame finishes executing the motors will still be running and will continue to run until told otherwise. Last edited by Mark McLeod : 05-02-2012 at 18:41. |
|
#2
|
||||
|
||||
|
Re: waits
ok think i got it now. thanks
|
|
#3
|
|||||
|
|||||
|
Re: waits
Quote:
It's a Drive function, so the motor safety will stop the motors after a tenth of a second unless something has been changed from the default configuration. |
|
#4
|
|||||
|
|||||
|
Re: waits
True enough.
What Alan means is, your structure would work the way you intend for individual motors, but drive motors (Open2Motor, Open4Motor) have an automatically applied Safety that will shut down the motors if you don't keep rapidly telling them what to do. To make your structure work the way you intend it would need an extra vi call. And at the end you would re-enable the Safety, before Teleop began, as well as set your motors to neutral. |
|
#5
|
||||
|
||||
|
Re: waits
ok, so this way i don't have to use for loops every time i try to drive in autonomous
|
|
#6
|
||||
|
||||
|
Re: waits
one more question: is there a way to get the time from the driver station? The wait time is not at all accurate, and it would be easier than using encoders
|
|
#7
|
|||||
|
|||||
|
Re: waits
In my experience, the wait time is very accurate. How are you finding it not to be? What time are you looking for, and what do you intend to do with it?
|
|
#8
|
|||
|
|||
|
Re: waits
You can send the data from the DS, but that will require a bit of networking.
The Match Info that is an input parameter to the teleop should be pretty accurate, and show should elapsed times. How are you testing to determine they are "not at all accurate", and how much error is that? Greg McKaskle |
|
#9
|
||||
|
||||
|
Re: waits
i tried firing solenoids once per second and it seemed like it was once every 3 seconds.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|