Driver control to auton

hello!, i am trying to right code to record driver control and turn it into an autonomous mode however i can not figure it out. i was wondering if anyone knows how to do this. any language is acceptable.

Assuming you mean switch modes, it would simply entail
BLOCKS
Instead of “when started” blocks, use “when driver control” and “when autonomous” blocks.
C++ and Python
Make a blocks code. Replace “when started” with “when driver control” and “when autonomous”, then convert into your language of choice. It should be in the competition format and ready.

no, i mean it will record how much the motors turn and replay it

As far as I know, there is not currently a program to record and then repeat controller input. Our teams are currently using this utility to plan our autonomous code, it has worked quite well so far.

One method you could choose to use is write a loop that records the velocities of each motor or controller inputs every 10-20ms to a micro sd card in the v5 brain (in pros, open the file then something along the lines of data File << motor1.get_velocity << “,” << motor2.get_velocity << std::endl.), and then open that data file in autonomous and assign those velocities by a timer in your autonomous. However, it’s worth noting that this will never perfectly copy a previous autonomous run, and it offers no way to correct your path if anything goes wrong.