mirror of https://github.com/ArduPilot/ardupilot
25 lines
684 B
C++
25 lines
684 B
C++
/// @file AP_MotorsQuad.h
|
|
/// @brief Motor control class for Quadcopters
|
|
#pragma once
|
|
|
|
#include <AP_Common/AP_Common.h>
|
|
#include <AP_Math/AP_Math.h> // ArduPilot Mega Vector/Matrix math Library
|
|
#include <RC_Channel/RC_Channel.h> // RC Channel Library
|
|
#include "AP_MotorsMatrix.h" // Parent Motors Matrix library
|
|
|
|
/// @class AP_MotorsQuad
|
|
class AP_MotorsQuad : public AP_MotorsMatrix {
|
|
public:
|
|
|
|
/// Constructor
|
|
AP_MotorsQuad(uint16_t loop_rate, uint16_t speed_hz = AP_MOTORS_SPEED_DEFAULT) :
|
|
AP_MotorsMatrix(loop_rate, speed_hz)
|
|
{ };
|
|
|
|
// setup_motors - configures the motors for a quad
|
|
virtual void setup_motors();
|
|
|
|
protected:
|
|
|
|
};
|