mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
INS: disable INS AP_Param table when not on APM1 hardware
this could cause overwriting of memory with default values
This commit is contained in:
parent
3a92509b18
commit
35c88dd418
@ -309,7 +309,9 @@ const AP_Param::Info var_info[] PROGMEM = {
|
||||
|
||||
// @Group: INS_
|
||||
// @Path: ../libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.cpp
|
||||
#if HIL_MODE == HIL_MODE_DISABLED && CONFIG_APM_HARDWARE == APM_HARDWARE_APM1
|
||||
GOBJECT(ins, "INS_", AP_InertialSensor_Oilpan),
|
||||
#endif
|
||||
|
||||
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
|
||||
GOBJECT(gcs3, "SR3_", GCS_MAVLINK),
|
||||
|
@ -524,7 +524,7 @@ const AP_Param::Info var_info[] PROGMEM = {
|
||||
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
|
||||
GOBJECT(gcs3, "SR3_", GCS_MAVLINK),
|
||||
|
||||
#if HIL_MODE == HIL_MODE_DISABLED
|
||||
#if HIL_MODE == HIL_MODE_DISABLED && CONFIG_APM_HARDWARE == APM_HARDWARE_APM1
|
||||
// @Group: INS_
|
||||
// @Path: ../libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.cpp
|
||||
GOBJECT(ins, "INS_", AP_InertialSensor_Oilpan),
|
||||
|
Loading…
Reference in New Issue
Block a user