mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:13:33 +08:00
mavlink: stream rename GROUND_TRUTH -> HIL_STATE_QUATERNION
This commit is contained in:
+7
-7
@@ -31,15 +31,15 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef GROUND_TRUTH_HPP
|
||||
#define GROUND_TRUTH_HPP
|
||||
#ifndef HIL_STATE_QUATERNION_HPP
|
||||
#define HIL_STATE_QUATERNION_HPP
|
||||
|
||||
class MavlinkStreamGroundTruth : public MavlinkStream
|
||||
class MavlinkStreamHILStateQuaternion : public MavlinkStream
|
||||
{
|
||||
public:
|
||||
static MavlinkStream *new_instance(Mavlink *mavlink) { return new MavlinkStreamGroundTruth(mavlink); }
|
||||
static MavlinkStream *new_instance(Mavlink *mavlink) { return new MavlinkStreamHILStateQuaternion(mavlink); }
|
||||
|
||||
static constexpr const char *get_name_static() { return "GROUND_TRUTH"; }
|
||||
static constexpr const char *get_name_static() { return "HIL_STATE_QUATERNION"; }
|
||||
static constexpr uint16_t get_id_static() { return MAVLINK_MSG_ID_HIL_STATE_QUATERNION; }
|
||||
|
||||
const char *get_name() const override { return get_name_static(); }
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
explicit MavlinkStreamGroundTruth(Mavlink *mavlink) : MavlinkStream(mavlink) {}
|
||||
explicit MavlinkStreamHILStateQuaternion(Mavlink *mavlink) : MavlinkStream(mavlink) {}
|
||||
|
||||
uORB::Subscription _angular_velocity_sub{ORB_ID(vehicle_angular_velocity_groundtruth)};
|
||||
uORB::Subscription _att_sub{ORB_ID(vehicle_attitude_groundtruth)};
|
||||
@@ -111,4 +111,4 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
#endif // GROUND_TRUTH_HPP
|
||||
#endif // HIL_STATE_QUATERNION_HPP
|
||||
Reference in New Issue
Block a user