From 9ea691c9bce493a8b61aa7e367d168231fdeaaf6 Mon Sep 17 00:00:00 2001 From: Razican Date: Thu, 16 Jun 2016 17:47:00 +0200 Subject: [PATCH] Fixed small issue with constants --- constants.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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