|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Help Coding a "Creep Mode"
Does "Button 9" mean the ninth button counting from 1, or counting from zero? Don't forget that the first button is at array index 0, so the ninth button is actually at index 8. You can set a probe on the Buttons array to verify which one you need to be reading.
|
|
#2
|
|||
|
|||
|
Re: Help Coding a "Creep Mode"
Quote:
However, now I found a map saying the left joystick is button 8, not 9... Odd that it's from the same source. ![]() The 9th light comes on in the dashboard when I press it but I'll go back to the simulator and try button 8. Is there anything wrong with the code? Last edited by apm4242 : 09-02-2015 at 07:46. Reason: New stuff has come to light, man |
|
#3
|
|||||
|
|||||
|
Re: Help Coding a "Creep Mode"
Quote:
You do want the ninth button. But its value is in array index 8, because the first button is in index 0. |
|
#4
|
|||||
|
|||||
|
Re: Help Coding a "Creep Mode"
Quote:
Aside from that your code looks fine once you change the index from a 9 to an 8. Just make sure, depending on your drive train, that the rotate is still getting enough power to act against any wheel scrub at low power. Last edited by Mark McLeod : 09-02-2015 at 10:49. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|