Browse Source

send 1000us for low throttle during cal, not minthrottle.

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@123 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
master
timecop 13 years ago
parent
commit
be56a148f6
  1. 5182
      obj/baseflight.hex
  2. 4
      src/main.c

5182
obj/baseflight.hex
File diff suppressed because it is too large
View File

4
src/main.c

@ -11,13 +11,15 @@ void throttleCalibration(void)
LED1_ON; LED1_ON;
// write maxthrottle (high)
for (i = offset; i < len; i++) for (i = offset; i < len; i++)
pwmWrite(i, cfg.maxthrottle); pwmWrite(i, cfg.maxthrottle);
delay(3000); // 3s delay on high delay(3000); // 3s delay on high
// write 1000us (low)
for (i = offset; i < len; i++) for (i = offset; i < len; i++)
pwmWrite(i, cfg.minthrottle);
pwmWrite(i, 1000);
// blink leds to show we're calibrated and time to remove bind plug // blink leds to show we're calibrated and time to remove bind plug
failureMode(4); failureMode(4);

Loading…
Cancel
Save