mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:23:35 +08:00
iSentek IST8308 magnetometer driver
This commit is contained in:
@@ -52,6 +52,7 @@ public:
|
||||
|
||||
void set_device_type(uint8_t devtype);
|
||||
void set_error_count(uint64_t error_count) { _sensor_mag_pub.get().error_count = error_count; }
|
||||
void increase_error_count() { _sensor_mag_pub.get().error_count++; }
|
||||
void set_scale(float scale) { _sensor_mag_pub.get().scaling = scale; }
|
||||
void set_temperature(float temperature) { _sensor_mag_pub.get().temperature = temperature; }
|
||||
void set_external(bool external) { _sensor_mag_pub.get().is_external = external; }
|
||||
|
||||
Reference in New Issue
Block a user