ArduCopter: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1

This commit is contained in:
Lucas De Marchi 2015-11-03 11:46:30 -02:00 committed by Andrew Tridgell
parent 45ba94343d
commit 3e889b005f
2 changed files with 0 additions and 7 deletions

View File

@ -1526,13 +1526,11 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
send_text(MAV_SEVERITY_WARNING, "Frame: " FRAME_CONFIG_STRING);
#if CONFIG_HAL_BOARD != HAL_BOARD_APM1 && CONFIG_HAL_BOARD != HAL_BOARD_APM2
// send system ID if we can
char sysid[40];
if (hal.util->get_system_id(sysid)) {
send_text(MAV_SEVERITY_WARNING, sysid);
}
#endif
break;
}

View File

@ -60,11 +60,6 @@
#define MAGNETOMETER ENABLED
// low power cpus are not supported
#if HAL_CPU_CLASS < HAL_CPU_CLASS_75
# error ArduCopter ver3.3 and higher is not supported on APM1, APM2 boards
#endif
// run at 400Hz on all systems
# define MAIN_LOOP_RATE 400
# define MAIN_LOOP_SECONDS 0.0025f