mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_BoardConfig: removed unused startup functions for Pixracer
This commit is contained in:
parent
3d5c57c5dc
commit
73122adb78
@ -109,7 +109,6 @@ private:
|
||||
void px4_start_common_sensors(void);
|
||||
void px4_start_fmuv1_sensors(void);
|
||||
void px4_start_fmuv2_sensors(void);
|
||||
void px4_start_fmuv4_sensors(void);
|
||||
void px4_start_optional_sensors(void);
|
||||
#endif
|
||||
|
||||
|
@ -407,35 +407,12 @@ void AP_BoardConfig::px4_start_fmuv1_sensors(void)
|
||||
#endif // CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||
}
|
||||
|
||||
/*
|
||||
setup sensors for FMUv4
|
||||
*/
|
||||
void AP_BoardConfig::px4_start_fmuv4_sensors(void)
|
||||
{
|
||||
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
|
||||
printf("Starting FMUv4 sensors\n");
|
||||
if (px4_start_driver(hmc5883_main, "hmc5883", "-C -T -S -R 2 start")) {
|
||||
printf("Have SPI hmc5883\n");
|
||||
} else {
|
||||
printf("No SPI hmc5883\n");
|
||||
}
|
||||
|
||||
if (px4_start_driver(mpu6000_main, "mpu6000", "-R 2 -T 20608 start")) {
|
||||
printf("Found ICM-20608 internal\n");
|
||||
}
|
||||
|
||||
if (px4_start_driver(mpu9250_main, "mpu9250", "-R 2 start")) {
|
||||
printf("Found mpu9250 internal\n");
|
||||
}
|
||||
px4.board_type.set_and_notify(PX4_BOARD_PIXRACER);
|
||||
#endif // CONFIG_ARCH_BOARD_PX4FMU_V4
|
||||
}
|
||||
|
||||
/*
|
||||
setup common sensors
|
||||
*/
|
||||
void AP_BoardConfig::px4_start_common_sensors(void)
|
||||
{
|
||||
#ifndef CONFIG_ARCH_BOARD_PX4FMU_V4
|
||||
if (px4_start_driver(ms5611_main, "ms5611", "start")) {
|
||||
printf("ms5611 started OK\n");
|
||||
} else {
|
||||
@ -446,6 +423,7 @@ void AP_BoardConfig::px4_start_common_sensors(void)
|
||||
} else {
|
||||
printf("No external hmc5883\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -644,7 +622,6 @@ void AP_BoardConfig::px4_setup_drivers(void)
|
||||
default:
|
||||
px4_start_fmuv1_sensors();
|
||||
px4_start_fmuv2_sensors();
|
||||
px4_start_fmuv4_sensors();
|
||||
break;
|
||||
}
|
||||
px4_start_optional_sensors();
|
||||
|
Loading…
Reference in New Issue
Block a user