mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 14:20:35 +08:00
Refactor velocity reset (#788)
* Refactor velocity reset * Add unit tests for velocity resets * Expand updates to vertical buffer to velocity resets outside of resetHeight * Improve matrix library usage * Improve naming of vertical output samples * Fix update of output_vert_new during reset * Improve naming of vertical output samples 2
This commit is contained in:
@@ -104,7 +104,7 @@ void SensorSimulator::loadSensorDataFromFile(std::string file_name)
|
||||
_has_replay_data = true;
|
||||
}
|
||||
|
||||
void SensorSimulator::setSensorDataToDefault()
|
||||
void SensorSimulator::setSensorRateToDefault()
|
||||
{
|
||||
_imu.setRateHz(250);
|
||||
_mag.setRateHz(80);
|
||||
@@ -115,7 +115,7 @@ void SensorSimulator::setSensorDataToDefault()
|
||||
_vio.setRateHz(30);
|
||||
_airspeed.setRateHz(100);
|
||||
}
|
||||
void SensorSimulator::setSensorRateToDefault()
|
||||
void SensorSimulator::setSensorDataToDefault()
|
||||
{
|
||||
_imu.setData(Vector3f{0.0f,0.0f,-CONSTANTS_ONE_G},
|
||||
Vector3f{0.0f,0.0f,0.0f});
|
||||
|
||||
Reference in New Issue
Block a user