2013-05-29 20:51:34 -03:00
|
|
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2012-04-02 05:26:37 -03:00
|
|
|
|
|
|
|
/// @file AP_MotorsY6.h
|
|
|
|
/// @brief Motor control class for Y6 frames
|
|
|
|
|
2012-10-26 20:59:07 -03:00
|
|
|
#ifndef __AP_MOTORS_Y6_H__
|
|
|
|
#define __AP_MOTORS_Y6_H__
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2015-08-11 03:28:44 -03:00
|
|
|
#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
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2012-08-17 03:20:27 -03:00
|
|
|
#define AP_MOTORS_Y6_YAW_DIRECTION 1 // this really should be a user selectable parameter
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2012-08-17 03:20:27 -03:00
|
|
|
/// @class AP_MotorsY6
|
2012-04-02 05:26:37 -03:00
|
|
|
class AP_MotorsY6 : public AP_MotorsMatrix {
|
2012-08-17 03:20:27 -03:00
|
|
|
public:
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2012-08-17 03:20:27 -03:00
|
|
|
/// Constructor
|
2015-05-14 22:00:46 -03:00
|
|
|
AP_MotorsY6(uint16_t loop_rate, uint16_t speed_hz = AP_MOTORS_SPEED_DEFAULT) :
|
|
|
|
AP_MotorsMatrix(loop_rate, speed_hz)
|
|
|
|
{ };
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2015-04-05 20:25:27 -03:00
|
|
|
// setup_motors - configures the motors for a Y6
|
2012-08-17 03:20:27 -03:00
|
|
|
virtual void setup_motors();
|
2012-04-02 05:26:37 -03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2012-08-17 03:20:27 -03:00
|
|
|
};
|
2012-04-02 05:26:37 -03:00
|
|
|
|
2012-10-26 20:59:07 -03:00
|
|
|
#endif // AP_MOTORSY6
|