Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tdogb committed Oct 10, 2024
1 parent a25cfe7 commit 7f39dc8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions libraries/AP_Airspeed/AP_Airspeed_AUAV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ bool AP_Airspeed_AUAV::init()
return false;

found_sensor:
_dev_multiplexer->set_device_type(uint8_t(DevType::MULTIPLEXER));
_dev->set_device_type(uint8_t(DevType::AUAV));
set_bus_id(_dev->get_bus_id());

Expand Down Expand Up @@ -302,8 +301,6 @@ void AP_Airspeed_AUAV::_timer()
_measure();
}

float diff_pressure_i = get_differential_pressure_i();
float abs_pressure_i = get_abs_pressure_i();
if ((AP_HAL::millis() - _measurement_started_ms) > 10) {
_collect();
_collect_abs();
Expand Down
6 changes: 0 additions & 6 deletions libraries/AP_Airspeed/AP_Airspeed_AUAV.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class AP_Airspeed_AUAV : public AP_Airspeed_Backend
uint32_t _measurement_started_ms;
AP_HAL::OwnPtr<AP_HAL::I2CDevice> _dev;
AP_HAL::OwnPtr<AP_HAL::I2CDevice> _dev_abs;
AP_HAL::OwnPtr<AP_HAL::I2CDevice> _dev_multiplexer;

bool measuring_abs;

Expand All @@ -84,11 +83,6 @@ class AP_Airspeed_AUAV : public AP_Airspeed_Backend
float pressure_digital;
float pressure_abs_L;
float temp;

float diff_press_mbar;
float abs_press_L_mbar;
uint8_t sensor_working;
// float abs_press_H_mbar;
};

#endif // AP_Airspeed_AUAV_ENABLED
1 change: 0 additions & 1 deletion libraries/AP_Airspeed/AP_Airspeed_Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class AP_Airspeed_Backend {
NMEA = 0x09,
ASP5033 = 0x0A,
AUAV = 0x0B,
MULTIPLEXER = 0X0C,
};

private:
Expand Down

0 comments on commit 7f39dc8

Please sign in to comment.