AP_Mount: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1

This commit is contained in:
Lucas De Marchi 2015-11-03 11:46:29 -02:00 committed by Andrew Tridgell
parent 3941bb7347
commit ad094b9073
2 changed files with 2 additions and 2 deletions

View File

@ -583,7 +583,7 @@ MAV_MOUNT_MODE AP_Mount::get_mode(uint8_t instance) const
} }
// set_mode_to_default - restores the mode to it's default mode held in the MNT_MODE parameter // set_mode_to_default - restores the mode to it's default mode held in the MNT_MODE parameter
// this operation requires 230us on an APM2, 60us on a Pixhawk/PX4 // this operation requires 60us on a Pixhawk/PX4
void AP_Mount::set_mode_to_default(uint8_t instance) void AP_Mount::set_mode_to_default(uint8_t instance)
{ {
set_mode(instance, (enum MAV_MOUNT_MODE)state[instance]._default_mode.get()); set_mode(instance, (enum MAV_MOUNT_MODE)state[instance]._default_mode.get());

View File

@ -102,7 +102,7 @@ public:
void set_mode(uint8_t instance, enum MAV_MOUNT_MODE mode); void set_mode(uint8_t instance, enum MAV_MOUNT_MODE mode);
// set_mode_to_default - restores the mode to it's default mode held in the MNT_DEFLT_MODE parameter // set_mode_to_default - restores the mode to it's default mode held in the MNT_DEFLT_MODE parameter
// this operation requires 230us on an APM2, 60us on a Pixhawk/PX4 // this operation requires 60us on a Pixhawk/PX4
void set_mode_to_default() { set_mode_to_default(_primary); } void set_mode_to_default() { set_mode_to_default(_primary); }
void set_mode_to_default(uint8_t instance); void set_mode_to_default(uint8_t instance);