From dc881d91389db0f2ea1974d93ba0e9728eb3af6a Mon Sep 17 00:00:00 2001 From: Absozero Date: Wed, 20 Sep 2023 16:59:33 -0700 Subject: [PATCH] feat: Starting implementation of rerun in pros. --- src/main.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 9588814..1ecf0e3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,6 +34,20 @@ void initialize() { * the VEX Competition Switch, following either autonomous or opcontrol. When * the robot is enabled, this task will exit. */ + +void initRerun(int rf, int rb, int lf, int lb, /*int lm, int rm,*/ int cat, int intake) { + uint8_t arr[6]; + arr[0] = rf; + arr[1] = rb; + arr[2] = lf; + arr[3] = lb; + //arr[4] = lm; + //arr[5] = rm; + arr[4] = cat; + arr[5] = intake; + //Brain.SDcard.savefile("rerun.txt", arr, sizeof(arr)); +} + void disabled() {} /**