|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Autonomous Moving Backwards
Just out of curiosity Magi, what does MathUtils.pow(10, 6) do?
|
|
#2
|
||||
|
||||
|
Re: Autonomous Moving Backwards
It raises the first parameter (10) to the second parameter (-6) power. So the result is 10^-6. I probably should use scientific notation instead. I am multiplying the time by this assuming the javadocs is correct that the timer returns the time in micro seconds.
Last edited by MagiChau : 24-02-2013 at 19:59. |
|
#3
|
||||
|
||||
|
Re: Autonomous Moving Backwards
Quote:
|
|
#4
|
||||
|
||||
|
Re: Autonomous Moving Backwards
Oops, fixed it now.
|
|
#5
|
||||
|
||||
|
Re: Autonomous Moving Backwards
Our team is not using encoders for the drive system only the shooter this year. I just want the robot to drive backwards when the first 3 shots are fired. That takes about 9 seconds i have it for and then it will switch to low gear. then i want it to just drive straight back for the rest of the autonomous period.
|
|
#6
|
||||
|
||||
|
Re: Autonomous Moving Backwards
Quote:
You could also create a commands for driving, shooting, etc. and then string them together in a command group and have them execute in-order. That would require a bit less tuning to get right, though it might take longer to initially program. |
|
#7
|
||||
|
||||
|
Re: Autonomous Moving Backwards
Be careful that you do not cross the center-of-the-field line
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|