|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Normalizing Potentiometers on Startup
I did it using a First Call. Place something similar to this code in your TeleOp and Autonomous VIs. This should reset the encoders whenever the robot is enabled into one of these modes. Works great for me.
Last edited by Trinitrotoluene : 21-02-2016 at 18:55. Reason: Clarity. |
|
#2
|
|||||
|
|||||
|
Re: Normalizing Potentiometers on Startup
You could add a calibrate button to the Dashboard that tells the code to take the current pot reading as the new home position and save it to a local roboRIO file.
On startup read the local calibration file and use the value found there. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|