mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
Removed rssi extern from .c files
This commit is contained in:
parent
c407554db7
commit
3fa5669c7c
7 changed files with 3 additions and 10 deletions
|
@ -290,9 +290,6 @@ typedef struct blackboxSlowState_s {
|
||||||
//From mixer.c:
|
//From mixer.c:
|
||||||
extern uint8_t motorCount;
|
extern uint8_t motorCount;
|
||||||
|
|
||||||
//From rx.c:
|
|
||||||
extern uint16_t rssi;
|
|
||||||
|
|
||||||
//From rc_controls.c
|
//From rc_controls.c
|
||||||
extern uint32_t rcModeActivationMask;
|
extern uint32_t rcModeActivationMask;
|
||||||
|
|
||||||
|
|
|
@ -169,9 +169,6 @@ void updateLedStrip(uint32_t currentTime);
|
||||||
|
|
||||||
bool setModeColor(ledModeIndex_e modeIndex, int modeColorIndex, int colorIndex);
|
bool setModeColor(ledModeIndex_e modeIndex, int modeColorIndex, int colorIndex);
|
||||||
|
|
||||||
extern uint16_t rssi; // FIXME dependency on mw.c
|
|
||||||
|
|
||||||
|
|
||||||
void applyDefaultLedStripConfig(ledConfig_t *ledConfig);
|
void applyDefaultLedStripConfig(ledConfig_t *ledConfig);
|
||||||
void applyDefaultColors(hsvColor_t *colors);
|
void applyDefaultColors(hsvColor_t *colors);
|
||||||
void applyDefaultModeColors(modeColorIndexes_t *modeColors);
|
void applyDefaultModeColors(modeColorIndexes_t *modeColors);
|
||||||
|
|
|
@ -1433,7 +1433,7 @@ void osdDrawElements(void)
|
||||||
#define AH_MAX_ROLL 400 // Specify maximum AHI roll value displayed. Default 400 = 40.0 degrees
|
#define AH_MAX_ROLL 400 // Specify maximum AHI roll value displayed. Default 400 = 40.0 degrees
|
||||||
#define AH_SIDEBAR_WIDTH_POS 7
|
#define AH_SIDEBAR_WIDTH_POS 7
|
||||||
#define AH_SIDEBAR_HEIGHT_POS 3
|
#define AH_SIDEBAR_HEIGHT_POS 3
|
||||||
extern uint16_t rssi; // FIXME dependency on mw.c
|
|
||||||
|
|
||||||
void osdDrawSingleElement(uint8_t item)
|
void osdDrawSingleElement(uint8_t item)
|
||||||
{
|
{
|
||||||
|
|
|
@ -108,7 +108,6 @@
|
||||||
#include "io/serial_4way.h"
|
#include "io/serial_4way.h"
|
||||||
|
|
||||||
extern uint16_t cycleTime; // FIXME dependency on mw.c
|
extern uint16_t cycleTime; // FIXME dependency on mw.c
|
||||||
extern uint16_t rssi; // FIXME dependency on mw.c
|
|
||||||
extern void resetProfile(profile_t *profile);
|
extern void resetProfile(profile_t *profile);
|
||||||
|
|
||||||
void useRcControlsConfig(modeActivationCondition_t *modeActivationConditions, motorConfig_t *motorConfigToUse, pidProfile_t *pidProfileToUse);
|
void useRcControlsConfig(modeActivationCondition_t *modeActivationConditions, motorConfig_t *motorConfigToUse, pidProfile_t *pidProfileToUse);
|
||||||
|
|
|
@ -73,6 +73,8 @@ typedef enum {
|
||||||
#define MAX_SUPPORTED_RX_PARALLEL_PWM_OR_PPM_CHANNEL_COUNT MAX_SUPPORTED_RC_PPM_CHANNEL_COUNT
|
#define MAX_SUPPORTED_RX_PARALLEL_PWM_OR_PPM_CHANNEL_COUNT MAX_SUPPORTED_RC_PPM_CHANNEL_COUNT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern uint16_t rssi;
|
||||||
|
|
||||||
extern const char rcChannelLetters[];
|
extern const char rcChannelLetters[];
|
||||||
|
|
||||||
extern int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]; // interval [1000;2000]
|
extern int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]; // interval [1000;2000]
|
||||||
|
|
|
@ -270,7 +270,6 @@ static const char * const boardIdentifier = TARGET_BOARD_IDENTIFIER;
|
||||||
extern volatile uint8_t CRC8;
|
extern volatile uint8_t CRC8;
|
||||||
extern volatile bool coreProReady;
|
extern volatile bool coreProReady;
|
||||||
extern uint16_t cycleTime; // FIXME dependency on mw.c
|
extern uint16_t cycleTime; // FIXME dependency on mw.c
|
||||||
extern uint16_t rssi; // FIXME dependency on mw.c
|
|
||||||
|
|
||||||
// this is calculated at startup based on enabled features.
|
// this is calculated at startup based on enabled features.
|
||||||
static uint8_t activeBoxIds[CHECKBOX_ITEM_COUNT];
|
static uint8_t activeBoxIds[CHECKBOX_ITEM_COUNT];
|
||||||
|
|
|
@ -84,7 +84,6 @@
|
||||||
#define TELEMETRY_LTM_INITIAL_PORT_MODE MODE_TX
|
#define TELEMETRY_LTM_INITIAL_PORT_MODE MODE_TX
|
||||||
#define LTM_CYCLETIME 100
|
#define LTM_CYCLETIME 100
|
||||||
|
|
||||||
extern uint16_t rssi; // FIXME dependency on mw.c
|
|
||||||
static serialPort_t *ltmPort;
|
static serialPort_t *ltmPort;
|
||||||
static serialPortConfig_t *portConfig;
|
static serialPortConfig_t *portConfig;
|
||||||
static telemetryConfig_t *telemetryConfig;
|
static telemetryConfig_t *telemetryConfig;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue