My team still uses Vex EDR and we cannot figure out how to program the LCD for autonomous selection in the competition template. We are using RobotC to program. Does anyone have a sample of a code that has worked for them in a competition?
I could swear there was code in the RobotC sample library…
TeamTX
February 5, 2019, 7:29pm
#3
https://vexforum.com/t/vex-lcd-pre-autonomous-mode-chooser/36927/1
We use a variation of the @jpearman codes (there is a link in the above thread) and it has worked very well for us!
Take a look at the LCD Library I developed last year (and am still using this year):
/**
* lcd.c - LCD Selection Library
**/
void lcdClear() {
clearLCDLine(0);
clearLCDLine(1);
}
/**
* UI Component: Pick between two options, using left and right buttons to choose, and center to confirm
* @param char * leftOption The option to display on the left
* @param char * rightOption The option to display on the right
* @return int The index of the choosen option, 0 for the left option, 1 for the right
**/
int lcdPick(int line, char * leftOption, char * rightOption) {
int choice = 0;
string indicator = "*";
This file has been truncated. show original