mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 11:41:35 +08:00
FlightTask: decline unimplemented callbacks, improve comments
This commit is contained in:
@@ -69,6 +69,7 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the uORB subscriptions using an array
|
* Initialize the uORB subscriptions using an array
|
||||||
|
* @param subscription_array handling uORB subscribtions externally across task switches
|
||||||
* @return true on success, false on error
|
* @return true on success, false on error
|
||||||
*/
|
*/
|
||||||
virtual bool initializeSubscriptions(SubscriptionArray &subscription_array);
|
virtual bool initializeSubscriptions(SubscriptionArray &subscription_array);
|
||||||
@@ -86,9 +87,10 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To be called to adopt parameters from an arrived vehicle command
|
* To be called to adopt parameters from an arrived vehicle command
|
||||||
|
* @param command received command message containing the parameters
|
||||||
* @return true if accepted, false if declined
|
* @return true if accepted, false if declined
|
||||||
*/
|
*/
|
||||||
virtual bool applyCommandParameters(const vehicle_command_s &command) { return true; }
|
virtual bool applyCommandParameters(const vehicle_command_s &command) { return false; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call before activate() or update()
|
* Call before activate() or update()
|
||||||
@@ -105,6 +107,7 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the output data
|
* Get the output data
|
||||||
|
* @return task output setpoints that get executed by the positon controller
|
||||||
*/
|
*/
|
||||||
const vehicle_local_position_setpoint_s getPositionSetpoint();
|
const vehicle_local_position_setpoint_s getPositionSetpoint();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user