Subversion Repositories FlightCtrl

Rev

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

Rev 2052 Rev 2158
Line 14... Line 14...
14
// Takes 380 - 400 usec. Way too slow.
14
// Takes 380 - 400 usec. Way too slow.
15
// With static MINPROJECTION: 220 usec.
15
// With static MINPROJECTION: 220 usec.
16
void AC_getPRTY(int16_t* PRTY) {
16
void AC_getPRTY(int16_t* PRTY) {
17
  int16_t throttle = PRTY[CONTROL_THROTTLE];
17
  int16_t throttle = PRTY[CONTROL_THROTTLE];
18
  int32_t projection;
18
  int32_t projection;
19
  uint8_t effect = dynamicParams.attitudeControl; // Userparam 3
19
  uint8_t effect = dynamicParams.attitudeControl;
20
  int16_t deltaThrottle, y;
20
  int16_t deltaThrottle, y;
Line 21... Line 21...
21
 
21
 
22
  int16_t rollAngleInDegrees = attitude[ROLL]/GYRO_DEG_FACTOR_PITCHROLL;
22
  int16_t rollAngleInDegrees = attitude[ROLL]/GYRO_DEG_FACTOR_PITCHROLL;