Subversion Repositories FlightCtrl

Rev

Rev 2135 | Rev 2140 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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