Test Flight¶
Contents
This section outlines the distributed systems test flight procedure.
192.168.0.21 - NUC is static IP
192.168.0.50 - attena tracker
Pre-arrival Checklist¶
- Make sure you build most recent version of ground-test before getting to the field (no internet), NEVER EXIT ACTIVATOR SHELL
- Bring Targets (Shapes and Alphanumerics)
Ground Setup Checklist¶
- Setup all the targets in the field and record gps lat/long and orientation coordinates
- Open compass app and take screen shot
- Make sure that you restart compass app when you go to new target location
- Make sure database is empty (run a test in the activator shell)
- Do “run” in activator shell
- Turn on nuc, gimbal, and comms (on left side, down is on)
- Turn on button on top left of dashboard (should turn green)
- Take off lens cap from camera
- Set focus of camera on plane to infinity
- Make sure antenna tracker is on
- Set a static IP address for yourself
- Open 4 other terminals
- Start Gimbal server:
ssh@192.168.0.21 cd odysseus/gimbal-server ./run.py -a 8001
- Start Camera server:
ssh@192.168.0.21 cd odysseus/camera-server ./app.py -dh <your-static-ip> -dp 9000
- Start Plane Autopilot server:
ssh@192.168.0.21 cd MAVProxy2/MAVProxy source venv/bin/activate python mavproxy.py —-master=/dev/ttyUSB0 57600
- Try USB1 and USB2
- To see which one is communicating data, do a cat on any of those USB files
- DON’T TYPE ANYTHING
- Access Database
sql -U postgres plaedalus
- Extra Terminal for pinging NUC (192.168.0.21)
- If connection to NUC ever goes down, restart all above servers
Ground Pre-Flight Test¶
- Open localhost:9000 (MDLC)
- Test gimbal - point at ground and retract
- Make sure you enter numbers in for point-at-gps coordinates or the request will fail
- Ensure that the gimbal rotates and the motor works
- Check in the database (select * from gimbal_settings) to see when your request goes from queued to sent
- Test camera
- Start taking pictures
- Stop taking pictures
- Check in database
Select * from camera_settings;
- Check that requests are getting sent
Select * from images;
- Check that we are receiving images
- Check that they have a gimbal_id and telemetry_id (autopilot)
- Ask for notification when about to land (to retract gimbal)
Ground Test Flight¶
- A couple seconds before take off, start taking pictures
- Once plane takes off, set gimbal to point at ground
- When they’re about to land, retract gimbal
- Stop taking pictures
Post Flight¶
- Stop ground server ONCE all images are received using
CTRL D - Dump database
pg_dump -U postgres plaedalus > 05_11_2016_1.sql
- Move all images to pictures file
- Create
<date_testflight#>folder with
- Folder of all pictures
- Sql file
- Logs file
Debugging¶
- Trying to ssh into NUC
- Possible error: Connection refused
- NUC is still powering on
- Possible error: No route to host
- Switch connecting you to the LAN is down
- Can do “-h” for running anything and it’ll specify parameters
For Connecting Through Ethernet¶
- Connect to NUC through Ethernet
- Change your local network settings to the following:
- IP Address: 192.168.1.26
- Subnet Mask: 255.255.255.0
- Router: 192.168.0.1
- In Terminal, type
ssh cuair@192.168.0.21. The password isaeolus. You should be able to access and run any programs on the NUC. - To get all the pictures captured by the NUC, go into another Terminal window and type:
scp "cuair@192.168.0.21:~/odysseus/camera-server/*.jpg” ~/<path to the folder you want to put the pictures in>
- Make sure to keep the quotation marks where they are so that the regex works