In this assignment you will write a script in R that imports the data feed from a flight of the Parrot AR.Drone 2.0 and reproduce a flight path in a 3D graph.
Timestamp, Pitch_theta, Roll_phi, Yaw_psi, Alt_cm, Vx, Vy, Vz),where
Timestamp is the number of seconds passed since the Drone’s boot-up,
Pitch_theta is the angle (in degrees) of the drone around the horizontal axis (ie. lateral axis),
Roll_phi is the angle (in degrees) of the drone around the longitudinal axis (ie. it’s own axis),
Yaw_psi is the angle (in degrees) of the drone around the vertical axis
Alt_cm is the altitude of the drone (in cm) relative the ground, and
Vx, Vy, Vz are the linear velocities of the drone in the x, y and z directions (mm/s).
Assume that your starting position is at the origin. The following 3D graph is an example of the output. You can interact with this graph (ie. spin it, and zoom in and out). This was all created in the R environment.
Plot the points on the flight path that are the maximum turning points in each direction (ie. similar to the green points in the above graph).
Calculate the total time and distance covered and annotate on the graph (as in the above graph for total time).
Calculate the point at which the drone achieved the fastest velocity and plot a point at this position. Add some text to the graph to indicate the speed of the drone at this point.
You are required to submit your R script (saved as surname_firstname.r), with appropriate commenting in the code. Also include the output of your 3D graph, using the data uploaded to Bb for this assessment task as the example input.
Completed assignments will be graded according to the following assessment criteria:
DUE DATE Monday Week 13 – May 30, 2016, 8am.
PROCEDURE: Please submit your assignment via safe assign, as instructed on Blackboard.
To prepare for this task you will be implementing various elements required for its completion that are part of your lectures and workshops.
The following elements will be required:
SEARCH TECHNIQUES
All of the modules on R of this course will be of use in searching for the inevitable questions that will come to mind.
R COMMANDS AND PACKAGES:
The commands and packages required for this assignment are covered in the material provided for topics 6, 7 and 9. Because of the public holidays this semester you were required to work through topics 6 and 7 independently. To ensure you have sufficient background to commence this assignment we will revise topics 6 and 7 and commence on topic 9 in Week 10. Topic 8 will be covered in Week 11.
3D graphics:
There are several packages in R that produce 3D graphics, which are covered in topic 9. Your choice of which of these packages will depend on ease of use, data format and ability to configure the output to produce a graph you want.
References and links that will be helpful for this assessment:
Modules on Bb
How do I know what packages to use? Look through the material covered in topics 6, 7 and 9 of the course and re-read the assignment instructions. Use the ‘chunking’ technique to break down the problem into simpler parts.
What if I hand my assignment in late? Late submission of assessment tasks will be penalised at the following maximum rate:
5% (of the assessment task’s identified value) per day for the first two days from the date identified as the due date for the assessment task.
10% (of the assessment task’s identified value) for the third day.
20% (of the assessment task’s identified value) for the fourth day and subsequent days up to and including seven days from the date identified as the due date for the assessment task.
A result of zero is awarded for an assessment task submitted after seven days from the date identified as the due date for the assessment task.
Weekdays and weekends are included in the calculation of days late.
To request an extension you must contact Helen Fairweather (hfairwea@usc.edu.au) PRIOR TO THE DUE DATE to negotiate an outcome.