Recently I got a Turnigy pistol grip radio for my RC cars and boats (Radio Control Planes, Drones, Cars, FPV, Quadcopters and more - Hobbyking)
I have a bunch of aeroplane ESCs and I don't really want to/or can afford to buy a car ESC right now. The problem is, the aeroplane ESCs don't work right with the pistol grip radios and they need a "Pistix" adapter, I am thinking of using Arduino to modify the signals coming from the Rx beforre being sent to the aeroplane ESC.
I checked the Rx signal output values with arduino.
These are the approx values I got with the throttle trigger at various positions,
default position=1415
extreme reverse=820
extreme forward=1720
Now, what I think should be happening is that I need to eliminate the reverse range. I tried to do it mechanically, but the internal mechanism doesn't allow such modification, so this has to be done the software way.
I think we need tomodify the throttle signals so as to when the throttle is at it's default position it sends a signal equivalent to 820 instead of 1415.
I'm a total noob, but I wrote this code which apparently doesn't work and now I'm clueless, rather codeless. XD
int val;
void setup()
{
pinMode(5, INPUT);
}
void loop()
{
val= digitalRead(0);
val = map(val,1415,1720,820,1720);
digitalWrite(9, val);
}