diff --git a/README.md b/README.md index cec57fe67ae0fb07fb9289157eed3c83056c3b1e..90cb1b0809b4c1c783a031b4855b975063355055 100644 --- a/README.md +++ b/README.md @@ -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 |