Copter: use define for pre-arm compass offset check

This commit is contained in:
Randy Mackay 2014-10-03 13:59:31 +09:00
parent 8aa267f75f
commit 68a9286086
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ static void pre_arm_checks(bool display_failure)
// check for unreasonable compass offsets
Vector3f offsets = compass.get_offsets();
if(offsets.length() > 500) {
if(offsets.length() > COMPASS_OFFSETS_MAX) {
if (display_failure) {
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: Compass offsets too high"));
}