mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-11 18:34:19 -04:00
PX4: make FMUv2 identify itself differently
so we can tell which is which in logs
This commit is contained in:
parent
1d55fa6818
commit
8b80beadc4
@ -111,6 +111,7 @@ struct Location {
|
||||
#define AP_PRODUCT_ID_APM1_2560 0x02 // APM1 with 2560 CPUs
|
||||
#define AP_PRODUCT_ID_SITL 0x03 // Software in the loop
|
||||
#define AP_PRODUCT_ID_PX4 0x04 // PX4 on NuttX
|
||||
#define AP_PRODUCT_ID_PX4_V2 0x05 // PX4 FMU2 on NuttX
|
||||
#define AP_PRODUCT_ID_APM2ES_REV_C4 0x14 // APM2 with MPU6000ES_REV_C4
|
||||
#define AP_PRODUCT_ID_APM2ES_REV_C5 0x15 // APM2 with MPU6000ES_REV_C5
|
||||
#define AP_PRODUCT_ID_APM2ES_REV_D6 0x16 // APM2 with MPU6000ES_REV_D6
|
||||
|
@ -67,7 +67,11 @@ uint16_t AP_InertialSensor_PX4::_init_sensor( Sample_rate sample_rate )
|
||||
|
||||
_set_filter_frequency(_mpu6000_filter);
|
||||
|
||||
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V2)
|
||||
return AP_PRODUCT_ID_PX4_V2;
|
||||
#else
|
||||
return AP_PRODUCT_ID_PX4;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user