Skip to content

Commit cabc6b8

Browse files
committed
Choose correct font depending on Flight Controller SW.
1 parent 6de16b2 commit cabc6b8

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

README.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -137,23 +137,28 @@ Prebuild binaries for x86, SigmaStar, Goke and Hisilicon are at release/ folder.
137137
curl -L -o /usr/bin/msposd https://github.com/OpenIPC/msposd/releases/download/latest/msposd_star6e
138138
chmod 755 /usr/bin/msposd
139139
```
140-
Copy the font files for your flight controller firmware INAV/ Betaflight/ ArduPilot from here https://github.com/openipc/msposd/tree/main/fonts
141140

141+
***Since Nov 2024 ***
142+
Program automatically selects the appropriate font file for the FC software used.
143+
font_inav.png/font_inav_hd.png | font_btfl.png/font_btfl_hd.png | font_ardu.png/font_ardu_hd.png files must be present in ```/usr/share/fonts/```
144+
145+
146+
***If you prefer, you can copy only the fong files for the FC software you plan to use***
147+
Copy the font files for your flight controller firmware INAV/ Betaflight/ ArduPilot from here https://github.com/openipc/msposd/tree/main/fonts
142148
**For INAV**:
143149
```
144150
mkdir /usr/share/fonts
145-
curl -k -L -o /usr/share/fonts/font.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/inav/font.png
146-
curl -k -L -o /usr/share/fonts/font_hd.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/inav/font_hd.png
151+
curl -k -L -o /usr/share/fonts/font.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/font_inav.png
152+
curl -k -L -o /usr/share/fonts/font_hd.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/font_inav_hd.png
147153
```
148154

149155
**For Betaflight**: preinstalled in OpenIPC firmware since Oct 2024
150156
```
151157
mkdir /usr/share/fonts
152-
curl -k -L -o /usr/share/fonts/font.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/betaflight/font.png
153-
curl -k -L -o /usr/share/fonts/font_hd.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/betaflight/font_hd.png
158+
curl -k -L -o /usr/share/fonts/font.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/font_btfl.png
159+
curl -k -L -o /usr/share/fonts/font_hd.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/font_btfl_hd.png
154160
```
155161

156-
157162
**For Ardupilot**:
158163
Set
159164
```SERIALx_PROTOCOL = 42``` replace x with the UART number.
@@ -162,8 +167,8 @@ To use betaflight fonts, set ```MSP_OPTIONS = 5``` and copy fonts for betaflight
162167
If you prefer to use ardupilot "native" fonts (more icons), then set ```MSP_OPTIONS = 0``` and copy the fonts below.
163168
```
164169
mkdir /usr/share/fonts
165-
curl -k -L -o /usr/share/fonts/font.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/ardupilot/font.png
166-
curl -k -L -o /usr/share/fonts/font_hd.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/ardupilot/font_hd.png
170+
curl -k -L -o /usr/share/fonts/font.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/font_ardu.png
171+
curl -k -L -o /usr/share/fonts/font_hd.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/font_ardu_hd.png
167172
```
168173

169174
Start msposd or reference it in OpenIPC boot scripts.

fonts/font_ardu.png

-48 Bytes
Loading

0 commit comments

Comments
 (0)