branch for tests with T265

Dependencies:   Lib_Cntrl AHRS Lib_Misc

Committer:
altb2
Date:
Wed Oct 02 15:31:12 2019 +0000
Revision:
0:a479dc61e931
first setup, not running!!!!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
altb2 0:a479dc61e931 1 // -------- States -------
altb2 0:a479dc61e931 2 #define INIT 0
altb2 0:a479dc61e931 3 #define INIT_MOTORS 5
altb2 0:a479dc61e931 4 #define WAIT_ARMING 10
altb2 0:a479dc61e931 5 #define ARMING 20
altb2 0:a479dc61e931 6 #define START_MOTORS 30
altb2 0:a479dc61e931 7 #define FLIGHT 40
altb2 0:a479dc61e931 8 #define MOTOR_STOPPED 50
altb2 0:a479dc61e931 9
altb2 0:a479dc61e931 10 // -------- Motor Types -------
altb2 0:a479dc61e931 11 #define AIRGEAR350 1 // small TIgerMotor 4er set 9.5" CarbonProps
altb2 0:a479dc61e931 12 #define AIRGEAR350_8k4 2 // small TIgerMotor 4er set
altb2 0:a479dc61e931 13
altb2 0:a479dc61e931 14 // --------- UAV Types --------
altb2 0:a479dc61e931 15 #define QUAD1 1 // Ruprechts 1.2kg quad, Copter von altb Plus
altb2 0:a479dc61e931 16 #define QUAD2 2 // 40cm 1.1kg quad Plus, Juni 2019
altb2 0:a479dc61e931 17
altb2 0:a479dc61e931 18 #define X 1 //
altb2 0:a479dc61e931 19 #define PLUS 2 //
altb2 0:a479dc61e931 20
altb2 0:a479dc61e931 21
altb2 0:a479dc61e931 22 // --------- Flight Modes --------
altb2 0:a479dc61e931 23 #define STABILIZED 1 // Stabalized mode, control RP rate and angle, Yaw rate
altb2 0:a479dc61e931 24 #define ALT_HOLD 2 // (was "2"), stabalized + Altitude with US Sensor
altb2 0:a479dc61e931 25 #define POS_US 11 // does not work
altb2 0:a479dc61e931 26 #define VEL_OF_Z_POS 12 // xy velocity in body frame with optical flow
altb2 0:a479dc61e931 27 #define LOITER 4
altb2 0:a479dc61e931 28 #define AUTO 5
altb2 0:a479dc61e931 29 #define RTL 6
altb2 0:a479dc61e931 30 #define ACRO 7
altb2 0:a479dc61e931 31
altb2 0:a479dc61e931 32 // --------- Assumed UAV States --------
altb2 0:a479dc61e931 33 #define ONGROUND 1
altb2 0:a479dc61e931 34 #define LIFTOFF 2
altb2 0:a479dc61e931 35 #define FLYING 3
altb2 0:a479dc61e931 36 #define CRASHED 4
altb2 0:a479dc61e931 37 #define LANDING 5