Subversion Repositories FlightCtrl

Rev

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

Rev 2036 Rev 2051
Line 4... Line 4...
4
 
4
 
5
#include "analog.h"
5
#include "analog.h"
6
#include "attitude.h"
6
#include "attitude.h"
7
#include "sensors.h"
7
#include "sensors.h"
-
 
8
#include "printf_P.h"
Line 8... Line 9...
8
#include "printf_P.h"
9
#include "mk3mag.h"
9
 
10
 
Line 10... Line 11...
10
// for Delay functions
11
// for Delay functions
Line 43... Line 44...
43
 */
44
 */
44
int16_t gyro_PID[2];
45
int16_t gyro_PID[2];
45
int16_t gyro_ATT[2];
46
int16_t gyro_ATT[2];
46
int16_t gyroD[2];
47
int16_t gyroD[2];
47
int16_t yawGyro;
48
int16_t yawGyro;
-
 
49
int16_t magneticHeading;
Line 48... Line 50...
48
 
50
 
Line 49... Line 51...
49
int32_t groundPressure;
51
int32_t groundPressure;
50
 
52
 
Line 488... Line 490...
488
void analog_update(void) {
490
void analog_update(void) {
489
  analog_updateGyros();
491
  analog_updateGyros();
490
  analog_updateAccelerometers();
492
  analog_updateAccelerometers();
491
  analog_updateAirPressure();
493
  analog_updateAirPressure();
492
  analog_updateBatteryVoltage();
494
  analog_updateBatteryVoltage();
-
 
495
  debugOut.analog[12] = magneticHeading = volatileMagneticHeading;
493
}
496
}
Line 494... Line 497...
494
 
497
 
495
void analog_setNeutral() {
498
void analog_setNeutral() {