onboardsdk
Loading...
Searching...
No Matches
ITiltControl.hpp
1#pragma once
2
3#include <optional>
4
5namespace blunux::tilt {
6
8 public:
14 virtual bool calibrate() = 0;
15
21 virtual std::optional<float> get_angle() const = 0;
22
28 virtual void set_stabilization(bool stabilization_active) = 0;
29
35 virtual void set_velocity(double angular_velocity_factor) = 0;
36
42 virtual void set_angle(double angle) = 0;
43
52 virtual void set_pitch(double pitch) = 0;
53
63 virtual bool is_stabilized() const = 0;
64
75 virtual bool is_calibrated() const = 0;
76};
77
78} // namespace blunux::tilt
Definition ITiltControl.hpp:7
virtual bool is_stabilized() const =0
Check if the tilt control is stabilized.
virtual void set_stabilization(bool stabilization_active)=0
Activate/deactivate the tilt stabilization.
virtual void set_pitch(double pitch)=0
Set the pitch of the drone.
virtual void set_angle(double angle)=0
Set the tilt angle. Tilt needs to be initialized.
virtual std::optional< float > get_angle() const =0
Get the tilt angle. Tilt needs to be initialized.
virtual void set_velocity(double angular_velocity_factor)=0
Set the tilt velocity. Tilt needs to be initialized.
virtual bool calibrate()=0
Initialize and calibrate the tilt motor.
virtual bool is_calibrated() const =0
Check if the tilt control is calibrated.