Skip to content

Commit

Permalink
AP_ExternalARHS: Don't offer IMU by default
Browse files Browse the repository at this point in the history
* Since MicroStrain won't support >400Hz yet

Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 authored and tridge committed Dec 18, 2023
1 parent 1e644d5 commit dee0ca2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_ExternalAHRS/AP_ExternalAHRS_MicroStrain7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ AP_ExternalAHRS_MicroStrain7::AP_ExternalAHRS_MicroStrain7(AP_ExternalAHRS *_fro
AP_BoardConfig::allocation_error("MicroStrain7 failed to allocate ExternalAHRS update thread");
}

// don't offer IMU by default, at 100Hz it is too slow for many aircraft
set_default_sensors(uint16_t(AP_ExternalAHRS::AvailableSensor::GPS) |
uint16_t(AP_ExternalAHRS::AvailableSensor::BARO) |
uint16_t(AP_ExternalAHRS::AvailableSensor::COMPASS));

hal.scheduler->delay(5000);
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "MicroStrain7 ExternalAHRS initialised");
}
Expand Down

0 comments on commit dee0ca2

Please sign in to comment.