Skip to content

Library to record motor commands real time for Vex 2.0 CORTEX.

License

Notifications You must be signed in to change notification settings

jimtjames/vex-recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

vex-recorder

ROBOTC library for generating an autonomous program from motor movements.

Usage

Include vex_recorder.c in your ROBOTC program, and add a startTask call to your main task:

#include <vex_recorder.c>
...

task main()
{
    startTask(record_autonomous);
    ....
}

Note: If you add a startTask call to your main task like this, the timer will start counting down as soon as the "start" button is pressed in the debug window. If you want to make it so it only starts recording after a button press on the controller, use the following code in your ROBOTC program instead:

#include <vex_recorder.c>
...

task main()
{
    bool startedRecording = false;
    while (true) {
        if(!startedRecording && vexRT[SOMEBTN]) {
            startedRecording = true;
            startTask(record_autonomous);
        }
        ....
    }
}

About

Library to record motor commands real time for Vex 2.0 CORTEX.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages