uavcan module cleanup

- move most orb to uORB::Publication and uORB::Subscription
 - update legacy message handling (warn to PX4_INFO, PX4_WARN, PX4_ERR)
 - add perf counters
 - sensors/mag support newer `uavcan::equipment::ahrs::MagneticFieldStrength2` message
 - sensors/gps support `uavcan::equipment::gnss::Auxiliary` for hdop and vdop
 - sensors delete obsolete ioctl and read methods
 - use PublicationMulti for actuator_outputs and esc_reports (to coexist with other output modules)
 - add GNSS parameter metadata (parameters_injected.xml)
This commit is contained in:
Daniel Agar
2019-10-28 19:57:50 -04:00
committed by GitHub
parent 47dd312b57
commit 375fc4a75c
22 changed files with 705 additions and 677 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ public:
I2C(I2C &&) = delete;
I2C &operator=(I2C &&) = delete;
virtual int init();
virtual int init() override;
protected:
/**
@@ -106,7 +106,7 @@ protected:
*/
int transfer(const uint8_t *send, const unsigned send_len, uint8_t *recv, const unsigned recv_len);
bool external() { return px4_i2c_bus_external(_device_id.devid_s.bus); }
virtual bool external() const override { return px4_i2c_bus_external(_device_id.devid_s.bus); }
private:
int _fd{-1};
+2 -2
View File
@@ -95,7 +95,7 @@ protected:
LOCK_NONE /**< perform no locking, only safe if the bus is entirely private */
};
virtual int init();
virtual int init() override;
/**
* Check for the presence of the device on the bus.
@@ -179,7 +179,7 @@ protected:
int _transferhword(uint16_t *send, uint16_t *recv, unsigned len);
bool external() { return px4_spi_bus_external(get_device_bus()); }
virtual bool external() const override { return px4_spi_bus_external(get_device_bus()); }
};