OK, so, I'll make a 7% deadzone? That would mean:
0.07*(3.95v-0.2v) + 0.2v will be zero throttle. And that would mean
0.4625v is zero throttle, and 3.95v is max throttle. And that means 0.4625v*1024/5v ticks of the A/D is zero throttle, and 3.95v*1024/5v ticks of the A/D is max throttle. So, 95 ticks is zero throttle. And 808.96 -> 808 ticks is max throttle. (We should probably round down so max throttle can be achieved)
Now, if the throttle gets disconnected, there's a 4.7k pull-down resistor, that will pull the throttle to 0v. So, let's have 0.05v be the fault point? Any reading below that is BAD. If the throttle goes below 0.05v for longer than 0.2sec, it will flag a throttle fault. At the moment, there's no clearing a throttle fault. You have to turn the power off, and back on again. I must now go do the arduous task of typing in 95 and 808. It could take hours. haha. BRB...
Last edited by MPaulHolmes; 08-15-2014 at 11:13 AM..
|