mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 21:11:36 +08:00
vehicle_local_position: rename yaw -> heading and add reset logic
- vehicle_global_position yaw removed (redundant)
This commit is contained in:
committed by
Mathieu Bresciani
parent
33fb9d0c62
commit
97fc1db768
@@ -137,7 +137,7 @@ private:
|
||||
|
||||
void esc_status_check(const esc_status_s &esc_status);
|
||||
|
||||
void estimator_check();
|
||||
void estimator_check(const vehicle_status_flags_s &status_flags);
|
||||
|
||||
bool handle_command(vehicle_status_s *status, const vehicle_command_s &cmd, actuator_armed_s *armed,
|
||||
uORB::PublicationQueued<vehicle_command_ack_s> &command_ack_pub);
|
||||
@@ -156,7 +156,6 @@ private:
|
||||
bool set_home_position();
|
||||
bool set_home_position_alt_only();
|
||||
void updateHomePositionYaw(float yaw);
|
||||
void checkEkfResetCounters();
|
||||
|
||||
void update_control_mode();
|
||||
|
||||
@@ -362,7 +361,7 @@ private:
|
||||
hrt_abstime _timestamp_engine_healthy{0}; ///< absolute time when engine was healty
|
||||
|
||||
uint32_t _counter{0};
|
||||
uint8_t _quat_reset_counter{0};
|
||||
uint8_t _heading_reset_counter{0};
|
||||
|
||||
bool _status_changed{true};
|
||||
bool _arm_tune_played{false};
|
||||
@@ -423,7 +422,6 @@ private:
|
||||
uORB::SubscriptionData<offboard_control_mode_s> _offboard_control_mode_sub{ORB_ID(offboard_control_mode)};
|
||||
uORB::SubscriptionData<vehicle_global_position_s> _global_position_sub{ORB_ID(vehicle_global_position)};
|
||||
uORB::SubscriptionData<vehicle_local_position_s> _local_position_sub{ORB_ID(vehicle_local_position)};
|
||||
uORB::SubscriptionData<vehicle_attitude_s> _attitude_sub{ORB_ID(vehicle_attitude)};
|
||||
|
||||
// Publications
|
||||
uORB::Publication<actuator_armed_s> _armed_pub{ORB_ID(actuator_armed)};
|
||||
|
||||
Reference in New Issue
Block a user