mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
HAL_Linux: run threads a bit more slowly
this was just wasting cycles
This commit is contained in:
parent
8f79a03c25
commit
0d682e74c1
@ -214,7 +214,7 @@ void *LinuxScheduler::_timer_thread(void)
|
|||||||
{
|
{
|
||||||
_setup_realtime(32768);
|
_setup_realtime(32768);
|
||||||
while (true) {
|
while (true) {
|
||||||
_microsleep(1000);
|
_microsleep(5000);
|
||||||
|
|
||||||
// run registered timers
|
// run registered timers
|
||||||
_run_timers(true);
|
_run_timers(true);
|
||||||
@ -246,7 +246,7 @@ void *LinuxScheduler::_uart_thread(void)
|
|||||||
{
|
{
|
||||||
_setup_realtime(32768);
|
_setup_realtime(32768);
|
||||||
while (true) {
|
while (true) {
|
||||||
_microsleep(1000);
|
_microsleep(10000);
|
||||||
|
|
||||||
// process any pending serial bytes
|
// process any pending serial bytes
|
||||||
((LinuxUARTDriver *)hal.uartA)->_timer_tick();
|
((LinuxUARTDriver *)hal.uartA)->_timer_tick();
|
||||||
@ -260,7 +260,7 @@ void *LinuxScheduler::_io_thread(void)
|
|||||||
{
|
{
|
||||||
_setup_realtime(32768);
|
_setup_realtime(32768);
|
||||||
while (true) {
|
while (true) {
|
||||||
_microsleep(1000);
|
_microsleep(20000);
|
||||||
|
|
||||||
// process any pending storage writes
|
// process any pending storage writes
|
||||||
((LinuxStorage *)hal.storage)->_timer_tick();
|
((LinuxStorage *)hal.storage)->_timer_tick();
|
||||||
|
Loading…
Reference in New Issue
Block a user