mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
Get rid of 500 ms delay in startup for the pios_sys so that servos start
properly but a delay is still needs to get MPU6000 up right. Fucking POS.
This commit is contained in:
parent
9357960268
commit
1af66fc3d2
@ -58,7 +58,6 @@ void PIOS_SYS_Init(void)
|
|||||||
|
|
||||||
/* Init the delay system */
|
/* Init the delay system */
|
||||||
PIOS_DELAY_Init();
|
PIOS_DELAY_Init();
|
||||||
PIOS_DELAY_WaitmS(500); /* XXX wait for the OpenOCD DCC stuff to get its act together */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Turn on all the peripheral clocks.
|
* Turn on all the peripheral clocks.
|
||||||
|
@ -1657,6 +1657,8 @@ void PIOS_Board_Init(void) {
|
|||||||
if (PIOS_SPI_Init(&pios_spi_gyro_id, &pios_spi_gyro_cfg)) {
|
if (PIOS_SPI_Init(&pios_spi_gyro_id, &pios_spi_gyro_cfg)) {
|
||||||
PIOS_DEBUG_Assert(0);
|
PIOS_DEBUG_Assert(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PIOS_DELAY_WaitmS(500);
|
||||||
|
|
||||||
PIOS_MPU6000_Attach(pios_spi_gyro_id);
|
PIOS_MPU6000_Attach(pios_spi_gyro_id);
|
||||||
PIOS_MPU6000_Init(&pios_mpu6000_cfg);
|
PIOS_MPU6000_Init(&pios_mpu6000_cfg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user