|
|
@ -65,9 +65,10 @@ |
|
|
|
#define SW_ARM 1 |
|
|
|
#define SW_AUX 2 |
|
|
|
|
|
|
|
// ESPNow Defaule channel |
|
|
|
// ESPNow Default channel |
|
|
|
#define ESPNOW_DEFAULT_CHANNEL 1 |
|
|
|
#define EEPROM_SIZE 7 |
|
|
|
#define ESPNOW_MAX_CHANNEL 14 |
|
|
|
#define EEPROM_SIZE 4096 |
|
|
|
|
|
|
|
#include <esp_adc_cal.h> |
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0) |
|
|
@ -96,16 +97,19 @@ |
|
|
|
#include "battery_3.h" |
|
|
|
#include "battery_2.h" |
|
|
|
#include "battery_1.h" |
|
|
|
#include <EEPROM.h> |
|
|
|
|
|
|
|
// #include "FS.h" |
|
|
|
// #include "FFat.h" |
|
|
|
|
|
|
|
// #include <LITTLEFS.h> |
|
|
|
// #define FORMAT_LITTLEFS_IF_FAILED true |
|
|
|
|
|
|
|
|
|
|
|
enum screen_names { |
|
|
|
SCREEN_INTRO, |
|
|
|
SCREEN_MAINSCREEN, |
|
|
|
SCREEN_RCCONTROLLER, |
|
|
|
SCREEN_SETTINGS, |
|
|
|
SCREEN_LAST, |
|
|
|
}; |
|
|
|
|
|
|
@ -182,11 +186,18 @@ void screen_tools_3(void); |
|
|
|
|
|
|
|
void init_storage(void); |
|
|
|
|
|
|
|
void printMAC(const uint8_t * mac_addr); |
|
|
|
void on_data_sent(const uint8_t *mac_addr, esp_now_send_status_t status); |
|
|
|
void on_data_recv(const uint8_t * mac_addr, const uint8_t *incoming_data, int len); |
|
|
|
void connect_bridge(void); |
|
|
|
PairingStatus auto_pairing(void); |
|
|
|
|
|
|
|
// void screen_gps(void); |
|
|
|
void screen_system(void); |
|
|
|
// void display_info(void); |
|
|
|
void load_mainscreen(void); |
|
|
|
void load_rccontroller(void); |
|
|
|
void load_rcsettings(void); |
|
|
|
|
|
|
|
void draw_gimbal_huge(uint16_t x, uint16_t y); |
|
|
|
int16_t get_median(uint8_t gimbal); |
|
|
|