mirror of https://github.com/ArduPilot/ardupilot
hack to fix Motor lights when arming after init.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3100 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
6b2139221d
commit
75114aa93f
|
@ -25,9 +25,9 @@ static void arm_motors()
|
||||||
arming_counter = 0;
|
arming_counter = 0;
|
||||||
|
|
||||||
}else if (arming_counter == ARM_DELAY){
|
}else if (arming_counter == ARM_DELAY){
|
||||||
#if HIL_MODE != HIL_MODE_DISABLED
|
#if HIL_MODE != HIL_MODE_DISABLED
|
||||||
hil.send_text_P(SEVERITY_HIGH, PSTR("ARMING MOTORS"));
|
hil.send_text_P(SEVERITY_HIGH, PSTR("ARMING MOTORS"));
|
||||||
#endif
|
#endif
|
||||||
motor_armed = true;
|
motor_armed = true;
|
||||||
arming_counter = ARM_DELAY;
|
arming_counter = ARM_DELAY;
|
||||||
|
|
||||||
|
@ -49,6 +49,10 @@ static void arm_motors()
|
||||||
startup_ground();
|
startup_ground();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// temp hack
|
||||||
|
motor_light = true;
|
||||||
|
digitalWrite(A_LED_PIN, HIGH);
|
||||||
|
|
||||||
// tune down compass
|
// tune down compass
|
||||||
// -----------------
|
// -----------------
|
||||||
dcm.kp_yaw(0.08);
|
dcm.kp_yaw(0.08);
|
||||||
|
|
Loading…
Reference in New Issue