AP_ExternalARHS: Don't offer IMU by default

* Since MicroStrain won't support >400Hz yet

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2023-12-17 19:54:25 -07:00 committed by Andrew Tridgell
parent 1e644d56a5
commit dee0ca2f34
1 changed files with 5 additions and 0 deletions

View File

@ -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");
}