mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 02:03:34 +08:00
sensors: removed unused variable
This commit is contained in:
@@ -252,7 +252,6 @@ private:
|
|||||||
math::Matrix<3, 3> _board_rotation; /**< rotation matrix for the orientation that the board is mounted */
|
math::Matrix<3, 3> _board_rotation; /**< rotation matrix for the orientation that the board is mounted */
|
||||||
math::Matrix<3, 3> _mag_rotation[3]; /**< rotation matrix for the orientation that the external mag0 is mounted */
|
math::Matrix<3, 3> _mag_rotation[3]; /**< rotation matrix for the orientation that the external mag0 is mounted */
|
||||||
|
|
||||||
uint64_t _battery_discharged; /**< battery discharged current in mA*ms */
|
|
||||||
hrt_abstime _battery_current_timestamp; /**< timestamp of last battery current reading */
|
hrt_abstime _battery_current_timestamp; /**< timestamp of last battery current reading */
|
||||||
|
|
||||||
Battery _battery; /**< Helper lib to publish battery_status topic. */
|
Battery _battery; /**< Helper lib to publish battery_status topic. */
|
||||||
@@ -557,7 +556,6 @@ Sensors::Sensors() :
|
|||||||
_board_rotation{},
|
_board_rotation{},
|
||||||
_mag_rotation{},
|
_mag_rotation{},
|
||||||
|
|
||||||
_battery_discharged(0),
|
|
||||||
_battery_current_timestamp(0)
|
_battery_current_timestamp(0)
|
||||||
{
|
{
|
||||||
/* initialize subscriptions */
|
/* initialize subscriptions */
|
||||||
|
|||||||
Reference in New Issue
Block a user