發表文章

目前顯示的是 2月 23, 2020的文章

Auto flight using a Qualcomm Snapdragon Flight platform (4-1) - ROS Camera streaming

圖片
1. Build the camera streaming application within Docker ROS (1) Create a new workspace cd $HOME (Docker home: refer to docker container ) mkdir -p ros/src && cd ros/src catkin_init_workspace cd ../ source /opt/ros/indigo/setup.bash (Important!) catkin_make source $HOME/ros/devel/setup.bash (2) Clone the example repo on github cd $HOME/ros/src git clone https://github.com/ATLFlight/snap_cam_ros.git git clone https://github.com/ATLFlight/snap_msgs.git cd snap_cam_ros (The "mirrored" directory on the host) git submodule init (Do this on the host) git submodule update  (Do this on the host) (3) Build cd $HOME/ros/ catkin_make -DCMAKE_BUILD_TYPE=Release -DQC_SOC_TARGET=APQ8096 install 2. Flight pro configuration (1) Archive the contents of prebuilt ROS folder on the development machine and push to the Flight Pro platform. tar -cvzf ros.tgz ros/ adb shell mkdir -p /home/username/ adb push ros.tgz /home/ username adb shell tar -xvzf /home/ user

Auto flight using a Qualcomm Snapdragon Flight platform (3) - WiFi mode switching

There are two WiFi mode available, they could be switched according to the following operations: 1. Access Point Mode Configuration(default): adb shell cd /data/misc/wifi/ vi wpa_supplicant.conf *SSID - QsoftAP *Password 1234567890 (psk) echo softap > wlan_mode Reboot 2. Station Mode Configuration: adb shell cd /data/misc/wifi/ vi wpa_supplicant.conf *Modify the wpa supplicant settings to match the WiFi network you wish to connect. echo station > wlan_mode Reboot *SSH over Wi-Fi: $ ssh root@<IP address of target> password: oelinux123

Auto flight using a Qualcomm Snapdragon Flight platform (2) - docker container

圖片
1. Install Docker on the host development machine [1], and then test the installation. (1) Check version docker version (2) Add user to docker group sudo groupadd docker sudo usermod -a -G docker {username} 2. Download Flight Pro Docker Image [2] 3. Import Flight Pro Docker Image docker load < excelsior-arm-sdk-sfpro_docker.tar docker images 4. Setup a Docker workspace cd $HOME  mkdir -p docker/flight_pro  cp ~/Downloads/run_docker.sh $HOME/docker/flight_pro  export SPRINT="null"  ./run_docker.sh atlflight/excelsior-arm-sdk-sfpro_docker   *This will launch you into a Docker bash shell running the same variant of Linux as the Flight Pro hardware as shown in the following picture. This script also creates a sdk_home directory in your docker workspace on your Host machine. Any changes you make within Docker $HOME will be mirrored to the sdk_home host workspace directory. 5. Build & test (1) download the SDKHelloWorld.zip from the  F