mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
MPU6000: unadvertises the accel and gyro uORB topics in destructor
This commit is contained in:
committed by
Daniel Agar
parent
cb30d66cef
commit
d952fe028e
@@ -594,6 +594,9 @@ MPU6000::~MPU6000()
|
|||||||
/* make sure we are truly inactive */
|
/* make sure we are truly inactive */
|
||||||
stop();
|
stop();
|
||||||
|
|
||||||
|
orb_unadvertise(_accel_topic);
|
||||||
|
orb_unadvertise(_gyro->_gyro_topic);
|
||||||
|
|
||||||
/* delete the gyro subdriver */
|
/* delete the gyro subdriver */
|
||||||
delete _gyro;
|
delete _gyro;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user