kopia lustrzana https://github.com/YohanHadji/R2Home
Update version and SEP_ALT
Changed my mind, it's better to have SEP_ALT relative to the sea level. Because if for a reason it reboots in flight, it'll take the actual altitude as ground altitude and never separate. While if we use sea level as a reference, whatever the reboot altitude is, it'll always deploy daughter at the right altitude.main
rodzic
763564ca6e
commit
320e73eeb4
|
@ -36,7 +36,7 @@
|
|||
#define OPENING_TIMER 3000
|
||||
#define SPIRAL_RECOVER 5000
|
||||
#define DEP_ALT 300 // m above ground altitude
|
||||
#define SEP_ALT 10 // m above ground altitude
|
||||
#define SEP_ALT 10 // m above sea level
|
||||
#define VUP 1 // m/s
|
||||
#define VDOWN -1 // m/s
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ void flight_init() {
|
|||
ground_altitude = constrain(ground_altitude, 0, 2000);
|
||||
|
||||
dep_altitude = (DEP_ALT+ground_altitude);
|
||||
sep_altitude = (SEP_ALT+ground_altitude);
|
||||
sep_altitude = SEP_ALT;
|
||||
|
||||
setcam(1, 60, 60);
|
||||
newfile();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This code is V3.05
|
||||
// Updated and tested on April 10th 9h55 UTC
|
||||
// This code is V3.06
|
||||
// Updated and tested on April 10th 10h05 UTC
|
||||
// Ready for flight
|
||||
|
||||
#include <movingAvg.h>
|
||||
|
|
Ładowanie…
Reference in New Issue