Data Collection and Simulation Comparison

From Distributed Autonomous and Networked Control Lab
Revision as of 19:40, 1 August 2016 by Pfuhing (talk | contribs)
Jump to navigation Jump to search

This page will take you though setting up and testing RADA, retrieving the log file and other necessary data to run a simulation of that test and processing the data in MATLAB. Then actually running the simulation of RADA in Simulink.

Setting Up a RADA Test

Testing RADA is not overly difficult once you get the hang of the steps to setup RADA. The following steps may seem like a long process to go from starting the testing process to having completed simulation and plotting of the test results but this whole test procedure (with the exception of battery charging) can be completed in about 15-20 minutes. These steps are meant to be as detailed as possible in order to help new users of RADA to get up and running as quickly as possible.

NOTE: Always run RADA with at least 2 people! The pendulum arm can crash into the ground if the network starts to drop packets and one person cannot give commands to RADA and spot the pendulum. This is a safety issue for both you and the RADA platform.

Charging batteries

The lab currently uses mostly Hyperion batteries. We charge our batteries with a Hyperion EOS 1420i Net3 battery charger. For some general information about how to use this charger see this video.. In the lab we power this charger using the old Kepco Power supplu because it is the only power supply that we have that can supply enough current. Make sure that the power supply is set to an output voltage between 10.5V-29V.

A high level overview of the Crazyflie Platform

Setting up the camera system

Building Software

Turing on RADA

Connecting to RADA

Testing RADA

Running the first test after power up

Running additional tests

Measuring battery voltages

Locating and retrieving log files

Post processing and Simulation

Using the MATLAB data parsing tool

Adding additional data for simulations

Setting up the MATLAB workspace for simulation

Running simulations and storing results

Plotting results