re-added ARMING messages in HIL mode
this is useful as in HIL mode you don't always have blinking lights git-svn-id: https://arducopter.googlecode.com/svn/trunk@3003 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
76972a265a
commit
11cee834b2
@ -25,6 +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
|
||||||
|
gcs.send_text_P(SEVERITY_HIGH, "ARMING MOTORS");
|
||||||
|
#endif
|
||||||
motor_armed = true;
|
motor_armed = true;
|
||||||
arming_counter = ARM_DELAY;
|
arming_counter = ARM_DELAY;
|
||||||
|
|
||||||
@ -66,6 +69,9 @@ static void arm_motors()
|
|||||||
arming_counter = 0;
|
arming_counter = 0;
|
||||||
|
|
||||||
}else if (arming_counter == DISARM_DELAY){
|
}else if (arming_counter == DISARM_DELAY){
|
||||||
|
#if HIL_MODE != HIL_MODE_DISABLED
|
||||||
|
gcs.send_text_P(SEVERITY_HIGH, "DISARMING MOTORS");
|
||||||
|
#endif
|
||||||
motor_armed = false;
|
motor_armed = false;
|
||||||
arming_counter = DISARM_DELAY;
|
arming_counter = DISARM_DELAY;
|
||||||
compass.save_offsets();
|
compass.save_offsets();
|
||||||
|
Loading…
Reference in New Issue
Block a user