FlightTasks: replace setpoint setters with members

I realized that instead of using the setpoint setters inline
in real world tasks everyone started to have its own setpoint
member variable and only call the setter in the end for all the
privatly generate setpoints. This makes the setter useless and
therefore I switched to member setpoints in the architecture.
They bring more felxibility which is obviously needed but also
less structure which is the price to pay.
This commit is contained in:
Matthias Grob
2018-02-28 09:30:20 +01:00
committed by Beat Küng
parent e15240d3ad
commit 309237c4a2
6 changed files with 51 additions and 44 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ bool FlightTasks::update()
return false;
}
const vehicle_local_position_setpoint_s &FlightTasks::getPositionSetpoint()
const vehicle_local_position_setpoint_s FlightTasks::getPositionSetpoint()
{
if (isAnyTaskActive()) {
return _current_task->getPositionSetpoint();