Skip to content
Snippets Groups Projects
Commit 948635c9 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

LandDetector: call param_notify_changes() instead of param_save_default()

param_save_default() could take something like 0.5s, and because the
LandDetector is running on the HP work queue, this would block other
tasks, like RC handling or drivers.
parent f6d9d77f
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ void LandDetector::_cycle()
param_set_no_notification(_p_total_flight_time_high, &flight_time);
flight_time = _total_flight_time & 0xffffffff;
param_set_no_notification(_p_total_flight_time_low, &flight_time);
param_save_default();
param_notify_changes(); // this will notify the commander, who will save the params
}
_landDetected.timestamp = hrt_absolute_time();
......
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