mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 05:50:34 +08:00
FlightTasks: Introduce the empty setpoint to reset the setpoint for every loop iteration and return it in case of no task running
This commit is contained in:
@@ -53,8 +53,8 @@ FlightTaskOrbit::FlightTaskOrbit(control::SuperBlock *parent, const char *name)
|
||||
|
||||
bool FlightTaskOrbit::applyCommandParameters(vehicle_command_s command)
|
||||
{
|
||||
float &r = command.param3;
|
||||
float &v = command.param4;
|
||||
float &r = command.param3; /**< commanded radius */
|
||||
float &v = command.param4; /**< commanded velocity */
|
||||
|
||||
if (math::isInRange(r, 5.f, 50.f) &&
|
||||
fabs(v) < 10.f) {
|
||||
|
||||
Reference in New Issue
Block a user