-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
develepment_notes.txt
67 lines (49 loc) · 2.45 KB
/
develepment_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# to compile for desktop
sudo apt-get update
sudo apt-get install libevent-dev
make
sudo apt-get install gdb
# on desktop test, enable USB to serial
sudo systemctl stop brltty
sudo systemctl disable --now brltty brltty-udev
sudo systemctl mask brltty brltty-udev
sudo chmod 666 /dev/ttyUSB3
msposd --channels 7 --master /dev/ttyUSB0 --baudrate 115200 --out 127.0.0.1:14550 -a 9 -f /tmp -t --osd
#msp needs two-way communication
make osd-x86 VERBOSE=1
./build.sh star6e
./build.sh x86
cc msposd.c -I ./include -L/usr/lib/x86_64-linux-gnu/ -lcsfml-graphics -lcsfml-window -lcsfml-system -O1 -g -fsanitize=address -fno-omit-frame-pointer -Wall -Wextra -D_x86 -g -fsanitize=address -levent_core -o msposd
#copy on cam
scp -O ./release/star6e/msposd [email protected]:/usr/bin/msposd
scp -O ./msposd_star6e [email protected]:/usr/bin/msposd
on the camera
msposd --channels 7 --master /dev/ttyS2 --baudrate 115200 --osd --matrix 11 --ahi 3 -r 30
#show text
echo "Custom Message... &L04 &F22 CPU:&C &B temp:&T" >/tmp/MSPOSD.msg
echo "Custom Message... &L03 &F28 CPU:&C &B temp:&T" >./MSPOSD.msg
echo "40fps/MCS3/15Mb imx415_tipo.bin qpDelta:-6 &L05 &F22 CPU:&C &B temp:&T &p" >./MSPOSD.msg
#test
echo "1586 packets dropped" > ./wfb.log
#betaflight fonts download
curl -L -o /usr/bin/font.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/betaflight/font.png
curl -L -o /usr/bin/font_hd.png https://raw.githubusercontent.com/openipc/msposd/main/fonts/betaflight/font_hd.png
--matrix 11
will enable second font size - small font for FHD mode.
Will Line 1,2, 10,11, 19,20 will be Large font, the rest will be small, and aligned to the adjacent corner.
--ahi 3
Enhanced AHI ladder, home indicator on the main AHI line
--on PC read serial
msposd --channels 7 --master /dev/ttyUSB0 --baudrate 115200 --osd --matrix 11 --ahi 3 -r 30 -v
--on PC read serial and forward to test air no OSD mode
msposd_x86 --channels 7 --master /dev/ttyUSB0 --baudrate 115200 --out 127.0.0.1:14550 --matrix 11 --ahi 3 -r 50 -v
--on CAM read serial and forward via mavlink port
msposd --channels 7 --master /dev/ttyS2 --baudrate 115200 --out 127.0.0.1:14550 --matrix 11 --ahi 3 -r 30
--on PC render
/home/home/src/msposd/msposd --master 127.0.0.1:14550 --osd -r 50 --ahi 3 --matrix 11 -v
-- obsolete, copy binaries to release folser
./build.sh x86
cp ./msposd_x86 ./release/x86/msposd
cp ./msposd_star6e ./release/star6e/msposd
cp ./msposd_goke ./release/goke/msposd
cp ./msposd_hisi ./release/hisi/msposd