bLCDBacklight = true; // Turn on LCD Backlight
That’s a statement, it needs to be inside one of the functions, maybe in pre_auton()
bLCDBacklight = true; // Turn on LCD Backlight
That’s a statement, it needs to be inside one of the functions, maybe in pre_auton()
bLCDBacklight = true; // Turn on LCD Backlight
That’s a statement, it needs to be inside one of the functions, maybe in pre_auton()
string mainBatteryVoltage, powerExpander;
displayLCDString ( 0,1,"Main:" );
displayLCDString (1,1,"Launcher:" );
sprintf ( mainBatteryVoltage, "%1.2f%c", nImmediateBatteryLevel/1000.0, 'V' );
sprintf ( powerExpander, "%1.2f%c", SensorValue[powerExpander]/280.0, 'V' );
displayLCDString ( 0,7,mainBatteryVoltage );
displayLCDString ( 1,11, powerExpander );
wait1Msec(10);
I believe the problem you are having is that your string line has a different name for the function that you are trying to do than the other 2 lines of code, try this. This is part of my code and is meant to display the main battery voltage of our robot and the power expander voltage. To modify it for what your wanting you simply need to change all the stuff about the launcher to your backup battery.