From f9b0f9164ae74155db37c09de4fc8e919d566c8c Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 21 Nov 2016 18:11:05 -0200 Subject: [PATCH] AP_HAL_Linux: add TODO to AnalogIn_Raspilot This is especially bad for raspilot since it has a spi bus shared for all the peripherals. --- libraries/AP_HAL_Linux/AnalogIn_Raspilot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_Linux/AnalogIn_Raspilot.cpp b/libraries/AP_HAL_Linux/AnalogIn_Raspilot.cpp index 178d88aace..bf50bb3a36 100644 --- a/libraries/AP_HAL_Linux/AnalogIn_Raspilot.cpp +++ b/libraries/AP_HAL_Linux/AnalogIn_Raspilot.cpp @@ -97,6 +97,8 @@ bool AnalogIn_Raspilot::_update() /* set raspilotio to read reg4 */ _dev->transfer((uint8_t *)&tx, sizeof(tx), (uint8_t *)&rx, sizeof(rx)); + // TODO: should not delay for such huge values: converting this to a + // state-machine like driver would be better, adjusting the callback timer hal.scheduler->delay_microseconds(200); count = 0;