mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Allow MAVLink telemetry only for targets with >128K flash
This commit is contained in:
parent
09140cfdef
commit
8e249ce187
3 changed files with 13 additions and 1 deletions
|
@ -55,6 +55,7 @@
|
|||
|
||||
#if (FLASH_SIZE > 128)
|
||||
#define DISPLAY
|
||||
#define TELEMETRY_MAVLINK
|
||||
#else
|
||||
#define SKIP_CLI_COMMAND_HELP
|
||||
#define SKIP_RX_MSP
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#if defined(TELEMETRY)
|
||||
#if defined(TELEMETRY) && defined(TELEMETRY_MAVLINK)
|
||||
|
||||
#include "common/maths.h"
|
||||
#include "common/axis.h"
|
||||
|
@ -456,6 +456,7 @@ void mavlinkSendHUDAndHeartbeat(void)
|
|||
break;
|
||||
case MIXER_FLYING_WING:
|
||||
case MIXER_AIRPLANE:
|
||||
case MIXER_CUSTOM_AIRPLANE:
|
||||
mavSystemType = MAV_TYPE_FIXED_WING;
|
||||
break;
|
||||
case MIXER_HELI_120_CCPM:
|
||||
|
|
|
@ -59,6 +59,10 @@ void telemetryInit(void)
|
|||
initLtmTelemetry(telemetryConfig);
|
||||
initJetiExBusTelemetry(telemetryConfig);
|
||||
|
||||
#if defined(TELEMETRY_MAVLINK)
|
||||
initMAVLinkTelemetry();
|
||||
#endif
|
||||
|
||||
telemetryCheckState();
|
||||
}
|
||||
|
||||
|
@ -90,7 +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)
|
||||
|
@ -100,7 +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