mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Merge pull request #826 from digitalentity/betaflight-mavlink-telem
MAVLink telemetry support
This commit is contained in:
commit
e21e1f50aa
131 changed files with 49963 additions and 2 deletions
|
@ -41,6 +41,8 @@
|
|||
#include "telemetry/smartport.h"
|
||||
#include "telemetry/ltm.h"
|
||||
#include "telemetry/jetiexbus.h"
|
||||
#include "telemetry/mavlink.h"
|
||||
#include "rx/jetiexbus.h"
|
||||
|
||||
static telemetryConfig_t *telemetryConfig;
|
||||
|
||||
|
@ -57,6 +59,10 @@ void telemetryInit(void)
|
|||
initLtmTelemetry(telemetryConfig);
|
||||
initJetiExBusTelemetry(telemetryConfig);
|
||||
|
||||
#if defined(TELEMETRY_MAVLINK)
|
||||
initMAVLinkTelemetry();
|
||||
#endif
|
||||
|
||||
telemetryCheckState();
|
||||
}
|
||||
|
||||
|
@ -88,6 +94,10 @@ void telemetryCheckState(void)
|
|||
checkSmartPortTelemetryState();
|
||||
checkLtmTelemetryState();
|
||||
checkJetiExBusTelemetryState();
|
||||
|
||||
#if defined(TELEMETRY_MAVLINK)
|
||||
checkMAVLinkTelemetryState();
|
||||
#endif
|
||||
}
|
||||
|
||||
void telemetryProcess(uint32_t currentTime, rxConfig_t *rxConfig, uint16_t deadband3d_throttle)
|
||||
|
@ -97,6 +107,10 @@ void telemetryProcess(uint32_t currentTime, rxConfig_t *rxConfig, uint16_t deadb
|
|||
handleSmartPortTelemetry();
|
||||
handleLtmTelemetry();
|
||||
handleJetiExBusTelemetry();
|
||||
|
||||
#if defined(TELEMETRY_MAVLINK)
|
||||
handleMAVLinkTelemetry();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue