Skip to content

ThomasDavid0/UAVPerformanceMeasurement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArduPlane Performance Testing LUA Scripts

This is a WIP project intended to assess the performance characteristics of a fixed wing UAV using ArduPlane.

LUA scripts are included to perform manoeuvres designed to seperate the drag (both lift dependent and cd0) from thrust. Python code is also included to use the PyFlightCoach packages to analyse process the data.

The project is setup so that it should run in sitl and jsbsim (assuming you have set sitl up according to https://ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html).

The lua scripts are written with modules, which are not supported by ardupilot. The intention is to use a lua bundler to put them into single files. https://github.com/Benjamin-Dobell/luabundler

To bundle the lua scripts:

lua_bundler LUA_SCRIPT sitl/scripts/bundle.lua

To run the simulation:

$ sh run_simulation -p MAVLINK_SCRIPT -l LUA_SCRIPT

Adding Mavlink Message

  • add to XML Definition in mavlink
  • build plane
  • edit libraries/GCS_MAVLink/ap_message.h
  • link ID in libraries/GCS_MAVLink/GCS_Common.cpp mavlink_id_to_ap_message_id
  • add function to create the message libraries/GCS_MAVLink/GCS.h
  • call function in GCS_MAVLINK::try_send_message /libraries/GCS_MAVLink/GCS_Common.cpp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published