Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1854 → Rev 1864

/branches/dongfang_FC_rewrite/analog.c
51,8 → 51,9
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
 
#include "analog.h"
 
#include "attitude.h"
#include "sensors.h"
 
// for Delay functions
446,7 → 447,7
// Battery. The measured value is: (V * 1k/11k)/3v * 1024 = 31.03 counts per volt (max. measurable is 33v).
// This is divided by 3 --> 10.34 counts per volt.
UBat = (3 * UBat + sensorInputs[AD_UBAT] / 3) / 4;
DebugOut.Analog[11] = UBat;
DebugOut.Analog[11] = HIRES_GYRO_INTEGRATION_FACTOR;//UBat;
analogDataReady = 1; // mark
ADCycleCount++;
// Stop the sampling. Cycle is over.