mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_HAL_Linux: Improve loading firmware
This commit is contained in:
parent
4f7246c432
commit
f00d4f0b3e
@ -51,13 +51,12 @@ void RCOutput_AioPRU::init(void* machtnicht)
|
|||||||
|
|
||||||
// Reset PRU 1
|
// Reset PRU 1
|
||||||
*ctrl = 0;
|
*ctrl = 0;
|
||||||
hal.scheduler->delay(1);
|
|
||||||
|
|
||||||
// Load firmware
|
// Load firmware
|
||||||
memcpy(iram, PRUcode, sizeof(PRUcode));
|
memcpy(iram, PRUcode, sizeof(PRUcode));
|
||||||
|
|
||||||
// Start PRU 1
|
// Start PRU 1
|
||||||
*ctrl = 3;
|
*ctrl |= 2;
|
||||||
|
|
||||||
// all outputs default to 50Hz, the top level vehicle code
|
// all outputs default to 50Hz, the top level vehicle code
|
||||||
// overrides this when necessary
|
// overrides this when necessary
|
||||||
|
Loading…
Reference in New Issue
Block a user