ardupilot/libraries/AP_Motors/AP_MotorsMatrixTS.h

29 lines
924 B
C++

/// @file AP_MotorsMatrixTS.h
/// @brief Motor control class for tailsitters with multicopter motor configurations
#pragma once
#include <AP_Common/AP_Common.h>
#include <AP_Math/AP_Math.h>
#include <SRV_Channel/SRV_Channel.h>
#include "AP_MotorsMatrix.h"
/// @class AP_MotorsMatrix
class AP_MotorsMatrixTS : public AP_MotorsMatrix {
public:
AP_MotorsMatrixTS(uint16_t loop_rate, uint16_t speed_hz = AP_MOTORS_SPEED_DEFAULT) :
AP_MotorsMatrix(loop_rate, speed_hz) {
AP_Param::setup_object_defaults(this, var_info);
};
protected:
bool use_standard_matrix; // True to use normal matrix mixers with yaw torque
// configures the motors for the defined frame_class and frame_type
virtual void setup_motors(motor_frame_class frame_class, motor_frame_type frame_type) override;
// calculate motor outputs
void output_armed_stabilizing() override;
};