Skip to content

Commit

Permalink
AP_CINS: fixed for new API get_first_usable_gyro()
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Aug 11, 2024
1 parent c802198 commit 37849e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_CINS/AP_CINS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void AP_CINS::update(void)
const auto &ins = dal.ins();

// Get delta angle and convert to gyro rad/s
const uint8_t gyro_index = ins.get_primary_gyro();
const uint8_t gyro_index = ins.get_first_usable_gyro();
Vector3f delta_angle;
float dangle_dt;
if (!ins.get_delta_angle(gyro_index, delta_angle, dangle_dt) || dangle_dt <= 0) {
Expand Down

0 comments on commit 37849e7

Please sign in to comment.