Browse Source

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.
mission-4.1.18
Lucas De Marchi 8 years ago
parent
commit
f9b0f9164a
  1. 2
      libraries/AP_HAL_Linux/AnalogIn_Raspilot.cpp

2
libraries/AP_HAL_Linux/AnalogIn_Raspilot.cpp

@ -97,6 +97,8 @@ bool AnalogIn_Raspilot::_update() @@ -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;

Loading…
Cancel
Save