Sub: Complete motor reversing parameters.

Added the parameter stuff needed to actually include the parameters and make them updatable by the GCS.
This commit is contained in:
Rustom Jehangir 2016-01-16 12:32:13 -08:00
parent 47e6f37183
commit 08a4bfc832
2 changed files with 8 additions and 1 deletions

View File

@ -1037,6 +1037,11 @@ const AP_Param::Info Sub::var_info[] = {
// @Path: ../libraries/AP_Motors/AP_MotorsTri.cpp
GOBJECT(motors, "MOT_", AP_MotorsTri),
#elif FRAME_CONFIG == BLUEROV
// @Group: MOT_
// @Path: ../libraries/AP_Motors/AP_Motors6DOF.cpp
GOBJECT(motors, "MOT_", AP_Motors6DOF),
#else
// @Group: MOT_
// @Path: ../libraries/AP_Motors/AP_MotorsMulticopter.cpp

View File

@ -20,7 +20,9 @@ public:
/// Constructor
AP_Motors6DOF(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);
};
void output_min() override;