APM_Control: updates for new AP_Param API

This commit is contained in:
Andrew Tridgell 2012-12-13 08:41:12 +11:00
parent 95d4cc2ce9
commit 5a9ba4aeb4
3 changed files with 12 additions and 0 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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();