Skip to content
Snippets Groups Projects
Commit ba047f23 authored by Roman Bapst's avatar Roman Bapst Committed by Lorenz Meier
Browse files

ekf2 replay: added magic values for range min/max distance (#5268)


- replay was not working without these values as only range measurements
were given to the filter which were between the min/max value

Signed-off-by: default avatarRoman <bapstroman@gmail.com>
parent 393acf22
No related branches found
No related tags found
No related merge requests found
......@@ -429,6 +429,10 @@ void Ekf2Replay::setEstimatorInput(uint8_t *data, uint8_t type)
parseMessage(data, dest_ptr, type);
_range.timestamp = replay_part4.time_rng_usec;
_range.current_distance = replay_part4.range_to_ground;
_range.covariance = 0.0f;
// magic values
_range.min_distance = 0.05f;
_range.max_distance = 30.0f;
_read_part4 = true;
} else if (type == LOG_RPL6_MSG) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment