ArduCopter: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
This commit is contained in:
parent
45ba94343d
commit
3e889b005f
@ -1526,13 +1526,11 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
|
|
||||||
send_text(MAV_SEVERITY_WARNING, "Frame: " FRAME_CONFIG_STRING);
|
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
|
// send system ID if we can
|
||||||
char sysid[40];
|
char sysid[40];
|
||||||
if (hal.util->get_system_id(sysid)) {
|
if (hal.util->get_system_id(sysid)) {
|
||||||
send_text(MAV_SEVERITY_WARNING, sysid);
|
send_text(MAV_SEVERITY_WARNING, sysid);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -60,11 +60,6 @@
|
|||||||
|
|
||||||
#define MAGNETOMETER ENABLED
|
#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
|
// run at 400Hz on all systems
|
||||||
# define MAIN_LOOP_RATE 400
|
# define MAIN_LOOP_RATE 400
|
||||||
# define MAIN_LOOP_SECONDS 0.0025f
|
# define MAIN_LOOP_SECONDS 0.0025f
|
||||||
|
Loading…
Reference in New Issue
Block a user