MAVProxy! Raspberry PI에서 설치 실행하기!

Peloton·2023년 10월 26일
0
post-thumbnail
post-custom-banner

Source Code 갖고오기

sudo apt-get install git
pip uninstall MAVProxy
git clone https://github.com/ArduPilot/MAVProxy.git

빌드 의존성 설치

sudo apt-get install libxml2-dev libxslt-dev python-dev
sudo apt-get install python-lxml
sudo port install py27-lxml

설치

sudo python setup.py build install --user
  • Outputs

    Using /root/.local/lib/python2.7/site-packages/pymavlink-2.4.8-py2.7-linux-armv7l.egg
    Searching for lxml==4.3.2
    Best match: lxml 4.3.2
    Adding lxml 4.3.2 to easy-install.pth file
    
    Using /usr/lib/python2.7/dist-packages
    Finished processing dependencies for MAVProxy==1.8.19

실행

아래 예제와 같이 실행하면 됩니다. (아래는 RaspberryPI에서 구동):

sudo /root/.local/bin/mavproxy.py --master=/dev/ttyFC,57600  --out=/dev/ttyTelem,57600 --out_filter=/dev/ttyFilter,57600 --aircraft MyCopter
sudo /root/.local/bin/mavproxy.py --master=/dev/ttyFC,115200  --out=/dev/ttyTelem,57600 --out_filter=/dev/ttyFilter,57600 --aircraft MyCopter
--out=udp:192.168.1.1:14550
sudo /root/.local/bin/mavproxy.py --master=/dev/ttyFC,115200  --out=/dev/ttyTelem,57600 --out=udp:192.168.30.60:14550 --aircraft MyCopter
sudo /root/.local/bin/mavproxy.py --master=/dev/ttyFC,57600  --out=/dev/ttyTelem,57600 --out=udp:192.168.30.60:14550 --aircraft MyCopter
sudo /root/.local/bin/mavproxy.py --master=/dev/ttyFC,57600  --out=/dev/ttyTelem,57600 --out=udp:223.171.57.152:14550 --aircraft MyCopter
profile
Software Engineeeeer
post-custom-banner

0개의 댓글