mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 05:50:34 +08:00
ekf2_test: use motion_planning for dynamic yaw emergency test
This commit is contained in:
@@ -366,6 +366,13 @@ void SensorSimulator::setSensorDataFromTrajectory()
|
||||
-vel_body(0) * flow_sample.dt / distance_to_ground);
|
||||
_flow.setData(flow_sample);
|
||||
}
|
||||
|
||||
if (_gps.isRunning()) {
|
||||
/* _gps.setAltitude(); */
|
||||
/* _gps.setLatitude(); */
|
||||
/* _gps.setLongitude(); */
|
||||
_gps.setVelocity(vel_world);
|
||||
}
|
||||
}
|
||||
|
||||
void SensorSimulator::setGpsLatitude(const double latitude)
|
||||
|
||||
@@ -113,6 +113,8 @@ public:
|
||||
void setImuBias(Vector3f accel_bias, Vector3f gyro_bias);
|
||||
|
||||
void simulateOrientation(Quatf orientation);
|
||||
void setOrientation(const Quatf &orientation) { _R_body_to_world = Dcmf(orientation); }
|
||||
void setOrientation(const Dcmf &orientation) { _R_body_to_world = orientation; }
|
||||
|
||||
void loadSensorDataFromFile(std::string filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user