mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
First cut of CRSF RX and telemetry code
This commit is contained in:
parent
935547fe50
commit
890eab203b
18 changed files with 1290 additions and 4 deletions
|
@ -44,6 +44,7 @@
|
|||
#include "telemetry/ltm.h"
|
||||
#include "telemetry/jetiexbus.h"
|
||||
#include "telemetry/mavlink.h"
|
||||
#include "telemetry/crsf.h"
|
||||
|
||||
static telemetryConfig_t *telemetryConfig;
|
||||
|
||||
|
@ -72,6 +73,9 @@ void telemetryInit(void)
|
|||
#ifdef TELEMETRY_MAVLINK
|
||||
initMAVLinkTelemetry();
|
||||
#endif
|
||||
#ifdef TELEMETRY_CRSF
|
||||
initCrsfTelemetry();
|
||||
#endif
|
||||
|
||||
telemetryCheckState();
|
||||
}
|
||||
|
@ -117,6 +121,9 @@ void telemetryCheckState(void)
|
|||
#ifdef TELEMETRY_MAVLINK
|
||||
checkMAVLinkTelemetryState();
|
||||
#endif
|
||||
#ifdef TELEMETRY_CRSF
|
||||
checkCrsfTelemetryState();
|
||||
#endif
|
||||
}
|
||||
|
||||
void telemetryProcess(uint32_t currentTime, rxConfig_t *rxConfig, uint16_t deadband3d_throttle)
|
||||
|
@ -144,6 +151,9 @@ void telemetryProcess(uint32_t currentTime, rxConfig_t *rxConfig, uint16_t deadb
|
|||
#ifdef TELEMETRY_MAVLINK
|
||||
handleMAVLinkTelemetry();
|
||||
#endif
|
||||
#ifdef TELEMETRY_CRSF
|
||||
handleCrsfTelemetry(currentTime);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue