mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 10:33:33 +08:00
IMU: parameterize IMU integration time (IMU_INTEG_RATE)
- default integration rate now 200 Hz (5000 us interval) - set update rate for all drivers and simulators using PX4Accelerometer/PX4Gyroscope
This commit is contained in:
@@ -2196,6 +2196,9 @@ MavlinkReceiver::handle_message_hil_sensor(mavlink_message_t *msg)
|
||||
|
||||
if (_px4_gyro == nullptr) {
|
||||
PX4_ERR("PX4Gyroscope alloc failed");
|
||||
|
||||
} else {
|
||||
_px4_gyro->set_update_rate(200); // TODO: measure actual
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2213,6 +2216,9 @@ MavlinkReceiver::handle_message_hil_sensor(mavlink_message_t *msg)
|
||||
|
||||
if (_px4_accel == nullptr) {
|
||||
PX4_ERR("PX4Accelerometer alloc failed");
|
||||
|
||||
} else {
|
||||
_px4_accel->set_update_rate(200); // TODO: measure actual
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user