mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 13:58:53 +08:00
add warning about afbr spi comms
This commit is contained in:
@@ -281,7 +281,6 @@ void AFBRS50::Run()
|
|||||||
status_t status = Argus_TriggerMeasurement(_hnd, measurementReadyCallback);
|
status_t status = Argus_TriggerMeasurement(_hnd, measurementReadyCallback);
|
||||||
|
|
||||||
if (status != STATUS_OK) {
|
if (status != STATUS_OK) {
|
||||||
// PX4_ERR("Argus_TriggerMeasurement status not okay: %i", (int)status);
|
|
||||||
perf_count(_not_ready_perf);
|
perf_count(_not_ready_perf);
|
||||||
// Reschedule another trigger
|
// Reschedule another trigger
|
||||||
_state = STATE::TRIGGER;
|
_state = STATE::TRIGGER;
|
||||||
@@ -305,6 +304,7 @@ void AFBRS50::Run()
|
|||||||
|
|
||||||
if (elapsed > _measurement_inverval) {
|
if (elapsed > _measurement_inverval) {
|
||||||
ScheduleNow();
|
ScheduleNow();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ScheduleDelayed(_measurement_inverval - elapsed);
|
ScheduleDelayed(_measurement_inverval - elapsed);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,6 +70,8 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
AFBRS50_SPI::AFBRS50_SPI():
|
AFBRS50_SPI::AFBRS50_SPI():
|
||||||
|
// WARNING: SPI0 only exists for nxp and raspberry pi, so we hijack it here
|
||||||
|
|
||||||
// NOTE: we use SPI0 WQ since it is the 2nd highest priority thread (behind rate_ctrl).
|
// NOTE: we use SPI0 WQ since it is the 2nd highest priority thread (behind rate_ctrl).
|
||||||
// TODO: we should fix how SPI comms work. Async SPI comms is
|
// TODO: we should fix how SPI comms work. Async SPI comms is
|
||||||
// undesirable. We should use SPI TX DMA complete callback
|
// undesirable. We should use SPI TX DMA complete callback
|
||||||
|
|||||||
Reference in New Issue
Block a user