Skip to content
Snippets Groups Projects
Commit c00bcbe2 authored by Federico Disarò's avatar Federico Disarò
Browse files

Updated README

parent c03085c4
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,12 @@ The file `main.m` load the logs of a previous flight and then simulates the flig
The second part replicates how the on-board software interacts with the sensors, at each iteration the script gets new sensor measurements and pass them to the function `apogee_detector.m`, which detects the apogee and, on the real rocket, commands the expulsion of the parachute. The available sensor measurements are a barometer, a 6-axis IMU (accelerometer and gyroscope) and a GPS.
The flight phases contained in the log are:
* rocket on the ramp
* ascent phase
* descent phase
The third part is used just to plot the result and display the apogee detection.
**Your task is to develop the function `apogee_detector.m` :**
......@@ -21,6 +27,7 @@ which uses the data measured in real time during the flight as input and outputs
* 1 during the instants where the rocket is considered to be at the apogee
* 0 otherwise
## How organize the work
To organize the work, it's suggested to divide it in 2 tasks:
......@@ -43,6 +50,8 @@ To take into account these factors, the function that you will submit will be te
**data:** it is a support variable that you can use if and however you want, for example it could store previous sensors measurements or counters. It is declared inside `main.m`; if you want to use it you have to declare it there, otherwise you can just leave it as it is.
**timestamp**: the timestamp present in each log is expressed in milliseconds (us)
**pressure_measurement:** the barometer is used to measure the atmospheric pressure during the flight
| pressure |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment