Rev 2140 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2140 | Rev 2142 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | FLIGHT_MODE_MANUAL, |
63 | FLIGHT_MODE_MANUAL, |
64 | FLIGHT_MODE_RATE, |
64 | FLIGHT_MODE_RATE, |
65 | FLIGHT_MODE_ANGLES |
65 | FLIGHT_MODE_ANGLES |
66 | } FlightMode_t; |
66 | } FlightMode_t; |
Line 67... | Line -... | ||
67 | - | ||
68 | #define CONTROL_SERVO_REVERSE_ELEVATOR 1 |
- | |
69 | #define CONTROL_SERVO_REVERSE_AILERONS 2 |
- | |
70 | #define CONTROL_SERVO_REVERSE_RUDDER 4 |
- | |
71 | 67 | ||
72 | typedef struct { |
68 | typedef struct { |
73 | uint8_t SWMajor; |
69 | uint8_t SWMajor; |
74 | uint8_t SWMinor; |
70 | uint8_t SWMinor; |
75 | uint8_t protoMajor; |
71 | uint8_t protoMajor; |
Line 89... | Line 85... | ||
89 | 85 | ||
90 | // Output and servo |
86 | // Output and servo |
91 | /*PMM*/uint8_t output0Timing; |
87 | /*PMM*/uint8_t output0Timing; |
Line 92... | Line -... | ||
92 | /*PMM*/uint8_t output1Timing; |
- | |
93 | - | ||
94 | uint8_t gimbalServoManualControl[2]; |
88 | /*PMM*/uint8_t output1Timing; |
95 | 89 | ||
Line 96... | Line 90... | ||
96 | /* P */uint8_t userParams[8]; |
90 | /* P */uint8_t userParams[8]; |
Line 97... | Line 91... | ||
97 | } DynamicParams_t; |
91 | } DynamicParams_t; |
98 | 92 | ||
99 | extern volatile DynamicParams_t dynamicParams; |
93 | extern volatile DynamicParams_t dynamicParams; |
100 | 94 | ||
Line 101... | Line -... | ||
101 | typedef struct { |
- | |
102 | uint8_t sourceIdx, targetIdx; |
- | |
103 | uint8_t min, max; |
- | |
104 | } MMXLATION; |
- | |
105 | - | ||
106 | /* |
- | |
107 | typedef struct { |
95 | typedef struct { |
108 | uint8_t sourceIdx, targetIdx; |
96 | uint8_t sourceIdx, targetIdx; |
109 | } XLATION; |
97 | uint8_t min, max; |
110 | */ |
98 | } MMXLATION; |
111 | 99 | ||
Line 127... | Line 115... | ||
127 | typedef struct { |
115 | typedef struct { |
128 | int16_t offsets[3]; |
116 | int16_t offsets[3]; |
129 | } sensorOffset_t; |
117 | } sensorOffset_t; |
Line 130... | Line 118... | ||
130 | 118 | ||
131 | typedef struct { |
119 | typedef struct { |
132 | uint8_t manualControl; |
- | |
133 | uint8_t stabilizationFactor; |
120 | uint8_t reverse; |
134 | uint8_t minValue; |
121 | int8_t minValue; |
135 | uint8_t maxValue; |
- | |
136 | uint8_t flags; |
122 | int8_t maxValue; |
Line 137... | Line 123... | ||
137 | } Servo_t; |
123 | } Servo_t; |
Line 138... | Line 124... | ||
138 | 124 | ||
Line 165... | Line 151... | ||
165 | uint8_t airspeedCorrection; |
151 | uint8_t airspeedCorrection; |
166 | uint8_t isFlyingThreshold; |
152 | uint8_t isFlyingThreshold; |
Line 167... | Line 153... | ||
167 | 153 | ||
168 | // Servos |
154 | // Servos |
169 | uint8_t servoCount; |
155 | uint8_t servoCount; |
170 | uint8_t servosReverse; |
- | |
171 | - | ||
172 | uint8_t controlServoMinValue; |
- | |
173 | uint8_t controlServoMaxValue; |
- | |
174 | - | ||
175 | uint8_t gimbalServoMaxManualSpeed; |
- | |
Line 176... | Line 156... | ||
176 | Servo_t gimbalServoConfigurations[2]; // [PITCH, ROLL] |
156 | Servo_t servos[3]; |
177 | 157 | ||
178 | // Outputs |
158 | // Outputs |
179 | output_flash_t outputFlash[2]; |
159 | output_flash_t outputFlash[2]; |