Rev 1645 | Rev 2035 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1645 | Rev 1775 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | #include "configuration.h" |
10 | #include "configuration.h" |
Line 11... | Line 11... | ||
11 | 11 | ||
12 | #define PITCH 0 |
12 | #define PITCH 0 |
Line -... | Line 13... | ||
- | 13 | #define ROLL 1 |
|
- | 14 | ||
- | 15 | /* |
|
- | 16 | * The output BLC throttles can be set in an [0..256[ interval. Some staticParams limits |
|
- | 17 | * (min, throttle, max throttle etc) are in a [0..256[ interval. |
|
- | 18 | * The calculation of motor throttle values from sensor and control information (basically |
|
- | 19 | * flight.c) take place in an [0..1024[ interval for better precision. |
|
- | 20 | * This is the conversion factor. |
|
- | 21 | * --> Replaced back again by CONTROL_SCALING. Even though the 2 things are not quite the |
|
- | 22 | * same, they are unseperable anyway. |
|
13 | #define ROLL 1 |
23 | */ |
Line 14... | Line 24... | ||
14 | 24 | ||
15 | extern uint8_t RequiredMotors; |
25 | extern uint8_t RequiredMotors; |
Line 16... | Line 26... | ||
16 | 26 | ||
17 | // looping params |
27 | // looping params |
18 | // extern long TurnOver180Nick, TurnOver180Roll; |
- | |
19 | 28 | // extern long TurnOver180Nick, TurnOver180Roll; |
|
Line -... | Line 29... | ||
- | 29 | ||
- | 30 | // external control |
|
20 | // external control |
31 | // extern int16_t ExternStickNick, ExternStickRoll, ExternStickYaw; |
- | 32 | // extern int16_t naviAccPitch, naviAccRoll, naviCntAcc; |
|
Line 21... | Line 33... | ||
21 | extern int16_t ExternStickNick, ExternStickRoll, ExternStickYaw; |
33 | |
22 | 34 | // TODO: Rip em up, replace by a flight-state machine. |
|
23 | extern int16_t naviAccPitch, naviAccRoll, naviCntAcc; |
35 | // OK first step: Move to control mixer, where the state machine will be located anyway. |
Line 24... | Line 36... | ||
24 | 36 | // extern volatile uint8_t MKFlags; |