mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 08:53:34 +08:00
sensor_simulator: add possibility to set GPS position rate
one can set the position rate = velocity to obtain consistent gps data
This commit is contained in:
committed by
Mathieu Bresciani
parent
b3dc06d0cb
commit
5d6a72e383
@@ -53,6 +53,7 @@ public:
|
||||
void setData(const gps_message& gps);
|
||||
void stepHeightByMeters(float hgt_change);
|
||||
void stepHorizontalPositionByMeters(Vector2f hpos_change);
|
||||
void setPositionRateNED(const Vector3f& rate) { _gps_pos_rate = rate; }
|
||||
void setAltitude(int32_t alt);
|
||||
void setLatitude(int32_t lat);
|
||||
void setLongitude(int32_t lon);
|
||||
@@ -66,6 +67,7 @@ public:
|
||||
|
||||
private:
|
||||
gps_message _gps_data;
|
||||
Vector3f _gps_pos_rate{};
|
||||
|
||||
void send(uint64_t time) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user