1 / 16

Running Piccolo Log on Flightgear

Running Piccolo Log on Flightgear. Young Mo Kang ECE @ UIUC. Piccolo?. A family of autopilot systems from Cloud Cap Technology Loaded on UAVs (Unmanned Aerial Vehicles). http://www.cloudcaptech.com/piccolo.htm. What?. Sensors (accelerometer, gyroscope, … ) GPS

seth-barr
Download Presentation

Running Piccolo Log on Flightgear

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Running Piccolo Log on Flightgear Young Mo Kang ECE @ UIUC

  2. Piccolo? • A family of autopilot systems from Cloud Cap Technology • Loaded on UAVs (Unmanned Aerial Vehicles) http://www.cloudcaptech.com/piccolo.htm

  3. What? • Sensors (accelerometer, gyroscope, …) • GPS • Communications link for data transfer UAV Ground station

  4. And… • Piccolo sends real-time telemetry data to the ground station computer • The ground station computer logs the data on a text file Sample log file

  5. What about Flightgear? • An open source flight simulations program • Simulates a flight http://www.flightgear.org

  6. How? • It has to read in data via • File • Socket (TCP or UDP) • Namedpipe • Serial

  7. Setup • A server broadcasting data • A client running Flightgear server Network connection client

  8. Tasks • Convert the Piccolo log file into a replay file • Broadcast the replay file to client

  9. Conversion • From Piccolo log file • To FGNetFDM data structure defined in net_fdm.hxx of Flightgear source file • Simple task if all correlations between Piccolo log file and FGNetFDM data structure are figured out

  10. Correlations • Many can be directly retrieved from the log • Some need to be calculated from other values • And others to be figured out

  11. Once figured out • Data values are assembled into the structure • Little endian to Big endian byte-order swapping • Saved as a replay file

  12. Broadcast • Reads in the replay file just created • Whenever Flightgear receives the packet, it will display on the screen immediately • Data need to be transmitted at the same rate as they were logged • Decide whether to broadcast a packet of data or wait

  13. Time stamps • cur_time stores the UNIX time value • Broadcasting program needs to refer to the value for each time frame data • However, UNIX time is accurate up to 1 sec • MAX 1 frame per sec • Causes abrupt changes in scenery on Flightgear

  14. Solution • Instead of UNIX time, Piccolo’s system clock time is stored in cur_time during conversion process • clock time is accurate up to 1 ms • x1000 more frames per sec possible • Smooth scenery transition (of course, only if data were logged at high enough frequency)

  15. Testing client server

  16. Thoughts • Can replay test flights with/without manipulations of the log file • Can be implemented to any type of log formats NOT RESTRICTED TO Piccolo with slight modifications • Can be used to test and simulate optic flow algorithms by changing to cockpit’s view

More Related