diff --git a/constants.h b/constants.h index bdf5705..d82e622 100644 --- a/constants.h +++ b/constants.h @@ -1,10 +1,10 @@ #ifndef CONSTANTS_H_ #define CONSTANTS_H_ - #define FLIGHT_LENGTH 1.1*3600 // Seconds + #define FLIGHT_LENGTH 1.1 // Hours #define FLIGHT_MAX_HEIGHT 12500 // Meters #define ASCENT_VELOCITY 5.74 // m/s - #define DESCENT_VELOCITY FLIGHT_MAX_HEIGHT/(FLIGHT_LENGTH-FLIGHT_MAX_HEIGHT/ASCENT_VELOCITY) // m/s + #define DESCENT_VELOCITY FLIGHT_MAX_HEIGHT/(FLIGHT_LENGTH*3600-FLIGHT_MAX_HEIGHT/ASCENT_VELOCITY) // m/s #define BAT_GSM_MAX 4.2 #define BAT_GSM_MIN 3.7