qrome / qliteosd Goto Github PK
View Code? Open in Web Editor NEWArduino based OSD for DJI FPV
License: GNU General Public License v3.0
Arduino based OSD for DJI FPV
License: GNU General Public License v3.0
I downloaded the drivers and the device shows up as com3 but when I try to flash nothing happens. Also when plugged in the blue led flashes and then turns off.
Okay so I got the new d1 board, flashed it but when I plug it in I'm not getting anything. No flashing led when plugged into the board but it does flash when plugged into my computer
No OSD output to Goggles 2 with O3 Air Unit
Hi great project
I see you have Arduino nano as an option as possible hardware on the parts list but no instructions on how to set up. I wanted to use the nano as I have a few lying around Could you add how to use I asked painless 360 as you reference his set-up video but he was not sure ?
Any advice would be appreciated.
The DJI OSD you designed is very good! Can you add current sensor and qmc5883l?
I would expect to have 6s battery(4.2v for Lipo, 4.35 for LiHV) supported in the future release.
I currently have a foxeer m10 wired up and am not getting any gps info.
trying to compile source code after disabling a few of the osd elements and i get the following errors:
In file included from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:39:
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\OSD_positions_config.h:5: warning: "ESP8266" redefined
5 | #define ESP8266 // Uncommment this line if using the ESP8266 (Wemos D1 Mini)
|
<command-line>: note: this is the location of the previous definition
In file included from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:37:
c:\Users\tarc6\Documents\audrino\libraries\MSP/MSP.h:231:32: warning: 'packed' attribute ignored for field of type 'msp_servo_mix_rules_t::<unnamed struct> [16]' [-Wattributes]
231 | } mixRule[MSP_MAX_SERVO_RULES];
| ^
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void setup()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:196:7: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
196 | if (SPIFFS.begin()) {
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'uint32_t logGetNextFileNum()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:644:13: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
644 | Dir dir = SPIFFS.openDir("/");
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void logRemoveOldFiles(uint32_t)':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:661:5: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
661 | SPIFFS.remove(String("/") + String(i));
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:667:5: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
667 | SPIFFS.rename(oldFile,newFile);
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void logFileCreate()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:677:16: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
677 | gpsLogFile = SPIFFS.open(fileName, "w"); //need to test what turning off without closing the file does
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void showFiles()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:767:13: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
767 | Dir dir = SPIFFS.openDir("/");
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:785:3: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
785 | SPIFFS.info(fsInfo);
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void downloadFile()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:821:26: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
821 | File rawDataFile = SPIFFS.open(filename, "r");
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:845:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
845 | char *msecVal = ".000";
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:847:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
847 | msecVal = ".500";
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void deleteFiles()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:863:3: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
863 | SPIFFS.format();
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void send_msp_to_airunit(uint8_t)':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:348:9: warning: 'void* memcpy(void*, const void*, size_t)' writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=]
348 | memcpy(fc_variant.flightControlIdentifier, fcVariant, sizeof(fcVariant));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. Variables and constants in RAM (global, static), used 33500 / 80192 bytes (41%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1636 initialized variables
╠══ RODATA 4072 constants
╚══ BSS 27792 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 63131 / 65536 bytes (96%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 30363 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 348328 / 1048576 bytes (33%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 348328 code in flash
after i comment out lines 5-9 in the osd_positions_config.h i get this error:
In file included from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:37:
c:\Users\tarc6\Documents\audrino\libraries\MSP/MSP.h:231:32: warning: 'packed' attribute ignored for field of type 'msp_servo_mix_rules_t::<unnamed struct> [16]' [-Wattributes]
231 | } mixRule[MSP_MAX_SERVO_RULES];
| ^
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void send_msp_to_airunit(uint8_t)':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:348:9: warning: 'void* memcpy(void*, const void*, size_t)' writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=]
348 | memcpy(fc_variant.flightControlIdentifier, fcVariant, sizeof(fcVariant));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. Variables and constants in RAM (global, static), used 29180 / 80192 bytes (36%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1532 initialized variables
╠══ RODATA 992 constants
╚══ BSS 26656 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 61123 / 65536 bytes (93%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 28355 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 252120 / 1048576 bytes (24%)
I have also used one of the provided bin files to get the osd working but the voltage is not reading correctly even though i have the bec set for 5.9v.
I even tried verifying the code directly out of the zip file and still same errors ...i must be doing something wrong.
Hi there! Thanks for this code. Its working great for me and the DJI air unit arms and starts recording. the issue is that the air unit won't respond to a disarm msp command. Have you seen this issue and do you have any insight?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.