mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
Copter: reduce timer speed to 500 on APM2
this reduces the cost of timer interrupts
This commit is contained in:
parent
a5788dde8f
commit
b69f08c03e
@ -107,6 +107,14 @@ static void init_ardupilot()
|
||||
"\n\nFree RAM: %u\n"),
|
||||
memcheck_available_memory());
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
/*
|
||||
run the timer a bit slower on APM2 to reduce the interrupt load
|
||||
on the CPU
|
||||
*/
|
||||
hal.scheduler->set_timer_speed(500);
|
||||
#endif
|
||||
|
||||
//
|
||||
// Report firmware version code expect on console (check of actual EEPROM format version is done in load_parameters function)
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user