I’m trying to control gimbal’s yaw axis and move the drone forward using Olympe.
For example, how do you rotate the gimbal’s yaw axis while in a hovering state and then move the drone forward while maintaining that state?
I know I need to unlock the gimbal’s yaw axis, but I don’t understand how specifically.
I checked that post, but how do I send the set_config command in an AirSDK service?
I only know how to use that command in the guidance mode of the sample hello mission.
Please let me know if you have any samples using AirSDK service.
Your initial question concerned olympe, which is why I redirected you to the topic of my first reply. Olympe cannot be used in an AirSDK mission. You need to use libairsdk’s ControlInterface class to send more or less the same commands as Olympe directly from an Air SDK mission.
I apologize for the misunderstanding.
I aim to operate the gimbal with Olympe set_target command.
The post referenced in the reply says to create an AirSDK service to unlock the gimbal.
Below is the relevant part.
You can’t unlock axes with Olympe.
There is another way to unlock the yaw axes. You can create an Air SDK service (in a mission) and send the set_config command to unlock the yaw.
That’s why I want to know how to unlock the gimbal using Air SDK service because I want to change the angle of the gimbal’s yaw axis with Olympe.
so, you can’t unlock axes with Olympe and you need an Air SDK service to unlock the gimbal’s yaw axis. To create a new airsdk mission, you need to install our airsdk-cli tool and follow these steps of this section to build and install a mission into the drone.
I’m trying it based on that information, but there are some things I don’t understand.
I would like to know what I need to include to use “Guidance::AxesCamController::Messages::Command”.
How should I change the code below?
: tracking_example tracking_msghub.hpp
...
#include <cv-tracking-service/cv-tracking-service.msghub.h>
#include <cv-tracking-service/cv-tracking-service.pb.h>
...
#define COMPUTER_VISION_TRACKING_MSGHUB_ADD "unix:/tmp/selkie"
...
class TrackingEventHandler
: public CvTrackingService::Messages::msghub::EventHandler {
...