|
Autonomous drive scripting
I built some VIs to record inputs going to motor controllers to an array then write that array to a TDMS file. Then I read the file, index the array, and write the elements to the motor controller. I'm wondering if there are ways to ensure the robot drives as close a path as possible to the on the driver recorded. I already added a function to smooth out the joystick inputs and the "voltage corrected tank drive" algorithm from the team 358 LV document. I'm wondering if there are any other ways to help make sure the path is consistent. I also want to know if the TDMS functions are being used correctly and if I can do anything to optimize it.
All relevant VIs/sub VIs are uploaded as snippets.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080
Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812
#banthebag
#RIBMEATS
|