|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Reducing Maximum Drive Speed Through Drive VI
To reduce the speed to 1/3 power, simply take the joystick axis and divide it by .66. this will scale the joystick to only output a third of its normal power. For the 2 drive systems, i would assign a joystick button to where, when held down, would change a case statement to use the tank drive code, and when it is released, use the normal holonomic code.
|
|
#2
|
|||
|
|||
|
Re: Reducing Maximum Drive Speed Through Drive VI
How exactly would something like that look? I currently have it where, in teleop, it opens the joystick and unbundles the buttons that control the case statement. Inside the case statement would be the normal teleop code for a drive system, including getting the motors and joystick and connecting them to the tank drive vi. Would something like that work? Thanks
|
|
#3
|
||||
|
||||
|
Re: Reducing Maximum Drive Speed Through Drive VI
Quote:
|
|
#4
|
|||
|
|||
|
Re: Reducing Maximum Drive Speed Through Drive VI
Okay, thank you very much Cecil!
And no worries, I figured out what you meant by divide .66. I just substituted it for dividing by 3. |
|
#5
|
||||
|
||||
|
Re: Reducing Maximum Drive Speed Through Drive VI
Quote:
|
|
#6
|
|||
|
|||
|
Re: Reducing Maximum Drive Speed Through Drive VI
Im sorry, I should've clarified. I've gotten the reduction of speed to work but now I am confused as how to execute the two different drive systems.
|
|
#7
|
||||
|
||||
|
Re: Reducing Maximum Drive Speed Through Drive VI
Oh wow.. I need to go back to math class.. I'm sorry.. multiply it by .33……
-insert blushing emoticon here- |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|