|
|
|
@ -374,6 +374,22 @@ static void pre_arm_checks(bool display_failure)
@@ -374,6 +374,22 @@ static void pre_arm_checks(bool display_failure)
|
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if INS_MAX_INSTANCES > 1 |
|
|
|
|
// check all gyros are consistent |
|
|
|
|
if (ins.get_gyro_count() > 1) { |
|
|
|
|
for(uint8_t i=0; i<ins.get_gyro_count(); i++) { |
|
|
|
|
// get rotation rate difference between gyro #i and primary gyro |
|
|
|
|
Vector3f vec_diff = ins.get_gyro(i) - ins.get_gyro(); |
|
|
|
|
if (vec_diff.length() > PREARM_MAX_GYRO_VECTOR_DIFF) { |
|
|
|
|
if (display_failure) { |
|
|
|
|
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: Gyros inconsistent")); |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
#if CONFIG_HAL_BOARD != HAL_BOARD_VRBRAIN |
|
|
|
|
#ifndef CONFIG_ARCH_BOARD_PX4FMU_V1 |
|
|
|
|