1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +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:
James Cotton 2011-11-27 18:05:20 -06:00
parent 9357960268
commit 1af66fc3d2
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,6 @@ void PIOS_SYS_Init(void)
/* Init the delay system */
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.

View File

@ -1657,6 +1657,8 @@ void PIOS_Board_Init(void) {
if (PIOS_SPI_Init(&pios_spi_gyro_id, &pios_spi_gyro_cfg)) {
PIOS_DEBUG_Assert(0);
}
PIOS_DELAY_WaitmS(500);
PIOS_MPU6000_Attach(pios_spi_gyro_id);
PIOS_MPU6000_Init(&pios_mpu6000_cfg);