Midair activation
For the cases of flight where you need the aircraft to either activate in the air or be flight-ready on the ground without having to perform a take-off procedure, you can use the midair activation feature. To use this, follow this procedure:
- In your custom configuration file, set the controller and tracker you desire to be used when midair activation is called:
midair_activation:
after_activation:
controller: "MpcController"
tracker: "NullTracker"
- Arm your UAV.
- Call midair activation using the service call
rosservice call /<vehicle_name>/uav_manager/midair_activation
. This service will request the underlyinghw_api
to switch to offboard and when the status is confirmed, it will switch to the controller and tracker specified in the configuration file. - The UAV will now be engaged with the controller and tracker specified in the configuration file.