Saving variable value to sd card

Hey, I’m trying to save some default values to the sd card of my v5 brain. We have 4 different driving setups, since we have multiple drivers. The idea is that I can set the default value and save it on the sd card, so the robot defaults to that mode every time it starts up. I’m using vex-code.

Not sure how to do that but…

You could use a potentiometer or something of the sort to set driver mode

Saving default values to SD card sounds like an overkill for that task.

What you likely need is to have a menu for autonomous selector.

Then you can select program mode either with touch screen on the brain or buttons.

But if you really need to read or write values on SD card search:

Here is a good reference to read / write data to the SD card.

1 Like