Skip to content

Commit

Permalink
AP_InertialSensor: remove ICM42xxx defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Oct 19, 2023
1 parent 2f933cc commit b5c843c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void AP_InertialSensor_Invensensev3::start()
// initially run the bus at low speed
dev->set_speed(AP_HAL::Device::SPEED_LOW);

enum DevTypes devtype;
enum DevTypes devtype = DEVTYPE_INS_ICM42688;
fifo_config1 = 0x07;

switch (inv3_type) {
Expand Down Expand Up @@ -276,7 +276,6 @@ void AP_InertialSensor_Invensensev3::start()
accel_scale = ACCEL_SCALE_32G;
break;
case Invensensev3_Type::ICM40609:
default:
devtype = DEVTYPE_INS_ICM40609;
temp_sensitivity = 1.0 / 2.07;
accel_scale = ACCEL_SCALE_32G;
Expand All @@ -293,7 +292,9 @@ void AP_InertialSensor_Invensensev3::start()
case Invensensev3_Type::ICM45686: // HiRes 20bit
highres_sampling = dev->bus_type() == AP_HAL::Device::BUS_TYPE_SPI;
break;
default:
case Invensensev3_Type::ICM40609: // No HiRes
case Invensensev3_Type::ICM42605:
case Invensensev3_Type::ICM40605:
break;
}
}
Expand Down

0 comments on commit b5c843c

Please sign in to comment.