2012-04-02 05:26:37 -03:00
|
|
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
|
|
|
|
|
|
|
|
/// @file AP_MotorsHexa.h
|
|
|
|
/// @brief Motor control class for Hexacopters
|
|
|
|
|
2012-10-26 20:59:07 -03:00
|
|
|
#ifndef __AP_MOTORS_HEXA_H__
|
|
|
|
#define __AP_MOTORS_HEXA_H__
|
2012-04-02 05:26:37 -03:00
|
|
|
|
|
|
|
#include <AP_Common.h>
|
|
|
|
#include <AP_Math.h> // ArduPilot Mega Vector/Matrix math Library
|
|
|
|
#include <RC_Channel.h> // RC Channel Library
|
2012-10-26 20:59:07 -03:00
|
|
|
#include "AP_MotorsMatrix.h" // Parent Motors Matrix library
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2012-08-17 03:20:26 -03:00
|
|
|
/// @class AP_MotorsHexa
|
2012-04-02 05:26:37 -03:00
|
|
|
class AP_MotorsHexa : public AP_MotorsMatrix {
|
2012-08-17 03:20:26 -03:00
|
|
|
public:
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2012-08-17 03:20:26 -03:00
|
|
|
/// Constructor
|
2013-01-02 00:27:58 -04:00
|
|
|
AP_MotorsHexa( RC_Channel* rc_roll, RC_Channel* rc_pitch, RC_Channel* rc_throttle, RC_Channel* rc_yaw, uint16_t speed_hz = AP_MOTORS_SPEED_DEFAULT) : AP_MotorsMatrix(rc_roll, rc_pitch, rc_throttle, rc_yaw, speed_hz) {
|
2012-08-17 03:20:26 -03:00
|
|
|
};
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2012-08-17 03:20:26 -03:00
|
|
|
// setup_motors - configures the motors for a quad
|
|
|
|
virtual void setup_motors();
|
2012-04-02 05:26:37 -03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2012-08-17 03:20:26 -03:00
|
|
|
};
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2012-10-26 20:59:07 -03:00
|
|
|
#endif // AP_MOTORSHEXA
|