Would it not be better to redefine the map and constrain depending on wether Turbo mode is ON/OFF?
mySerial.print((char)STX); // Start of Transmission mySerial.print(getButtonStatusString()); mySerial.print((char)0x1); // buttons status feedback mySerial.print(servo_R); mySerial.print((char)0x4); // datafield #1 = battery level mySerial.print(servo_L); mySerial.print((char)0x5); // datafield #2 = milli Amps mySerial.print(displayStatus); // datafield #3 = status display mySerial.print((char)ETX); // End of Transmission }
@fullspoolDid you try changing the code as per my last message ??
The problem is when it reads (0,82ish) it goes from forward to reverse
On a side note, I got the AMP installed and working. Is there a way for it to read and transfer the data? It seems to lag a bit.
when I change the values to 4 and re-calibrate the ESC the bot still freaks out when I try to use the turbo function
Same effect with (0,-82) ??
V1.6 send Amp values every 750msTo make it faster replace long sendInterval = 750; // interval between Buttons status transmission (milliseconds)with long sendInterval = 500; // interval between Buttons status transmission (milliseconds)
EDIT:With turbo = 4, Button #2 <ON> is now a low speed modeESC should be calibrated with Button #2 OFF(calibration using fastest position)Please confirm
I've looked back up the the thread and noticed that your using a Scorpion XL .http://www.robotpower.com/downloads/RobotPower_Scorpion_XL_quickstart.pdf I'm assuming that you have the jumpers set on option 4 = TANK steering and NOT option 1 = MIX?You'd get some weird things happening with 2 mixes!I would however think that it would be much easier to allow the Scorpion to mix the signal and do away with the mix algo in the Arduino program.Note that TURBO MODE is simply FULL SPEED whilst NO TURBO is 1/2 speed.
I am going to revert to a previous program that didn't have the turbo function to try and see if everything still works as it should