Browse Source

APM_Control: updates for new AP_Param API

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
5a9ba4aeb4
  1. 4
      libraries/APM_Control/AP_PitchController.h
  2. 4
      libraries/APM_Control/AP_RollController.h
  3. 4
      libraries/APM_Control/AP_YawController.h

4
libraries/APM_Control/AP_PitchController.h

@ -9,6 +9,10 @@ @@ -9,6 +9,10 @@
class AP_PitchController {
public:
AP_PitchController() {
AP_Param::setup_object_defaults(this, var_info);
}
void set_ahrs(AP_AHRS *ahrs) { _ahrs = ahrs; }
int32_t get_servo_out(int32_t angle, float scaler = 1.0, bool stabilize = false);

4
libraries/APM_Control/AP_RollController.h

@ -9,6 +9,10 @@ @@ -9,6 +9,10 @@
class AP_RollController {
public:
AP_RollController() {
AP_Param::setup_object_defaults(this, var_info);
}
void set_ahrs(AP_AHRS *ahrs) { _ahrs = ahrs; }
int32_t get_servo_out(int32_t angle, float scaler=1.0, bool stabilize=false);

4
libraries/APM_Control/AP_YawController.h

@ -9,6 +9,10 @@ @@ -9,6 +9,10 @@
class AP_YawController {
public:
AP_YawController() {
AP_Param::setup_object_defaults(this, var_info);
}
void set_ahrs(AP_AHRS *ahrs) {
_ahrs = ahrs;
_ins = _ahrs->get_ins();

Loading…
Cancel
Save