mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
sensor_simulator: initialize VelocitySmoothing with desired limits
This commit is contained in:
@@ -15,6 +15,12 @@ SensorSimulator::SensorSimulator(std::shared_ptr<Ekf> ekf):
|
||||
setSensorRateToDefault();
|
||||
setSensorDataToDefault();
|
||||
startBasicSensor();
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
_trajectory[i].setMaxJerk(22.f);
|
||||
_trajectory[i].setMaxAccel(8.f);
|
||||
_trajectory[i].setMaxVel(6.f);
|
||||
}
|
||||
}
|
||||
|
||||
void SensorSimulator::loadSensorDataFromFile(std::string file_name)
|
||||
|
||||
@@ -146,7 +146,7 @@ private:
|
||||
bool _has_replay_data{false};
|
||||
|
||||
uint64_t _current_replay_data_index{0};
|
||||
uint64_t _time{0}; // microseconds
|
||||
uint64_t _time{0}; // microseconds
|
||||
|
||||
Dcmf _R_body_to_world{};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user