mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Code tidy and addition of GPL headers
This commit is contained in:
parent
31b6e7e024
commit
a7a428a5bb
41 changed files with 424 additions and 180 deletions
|
@ -34,16 +34,16 @@ typedef enum {
|
|||
OSD_GPS_SPEED,
|
||||
OSD_GPS_SATS,
|
||||
OSD_ALTITUDE,
|
||||
OSD_MAX_ITEMS, // MUST BE LAST
|
||||
} osd_items_t;
|
||||
OSD_ITEM_COUNT // MUST BE LAST
|
||||
} osd_items_e;
|
||||
|
||||
typedef enum {
|
||||
OSD_UNIT_IMPERIAL,
|
||||
OSD_UNIT_METRIC
|
||||
} osd_unit_t;
|
||||
} osd_unit_e;
|
||||
|
||||
typedef struct {
|
||||
uint16_t item_pos[OSD_MAX_ITEMS];
|
||||
typedef struct osd_profile_s {
|
||||
uint16_t item_pos[OSD_ITEM_COUNT];
|
||||
|
||||
// Alarms
|
||||
uint8_t rssi_alarm;
|
||||
|
@ -54,26 +54,14 @@ typedef struct {
|
|||
uint8_t video_system;
|
||||
uint8_t row_shiftdown;
|
||||
|
||||
osd_unit_t units;
|
||||
osd_unit_e units;
|
||||
} osd_profile_t;
|
||||
|
||||
typedef struct {
|
||||
int16_t max_speed;
|
||||
int16_t min_voltage; // /10
|
||||
int16_t max_current; // /10
|
||||
int16_t min_rssi;
|
||||
int16_t max_altitude;
|
||||
} statistic_t;
|
||||
|
||||
void updateOsd(uint32_t currentTime);
|
||||
void osdInit(void);
|
||||
void resetOsdConfig(osd_profile_t *osdProfile);
|
||||
void osdResetAlarms(void);
|
||||
|
||||
#ifdef CMS
|
||||
void osdCmsInit(displayPort_t *);
|
||||
#endif
|
||||
|
||||
// Character coordinate and attributes
|
||||
|
||||
#define OSD_POS(x,y) (x | (y << 5))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue