Subversion Repositories FlightCtrl

Rev

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

Rev 1612 Rev 1645
Line 6... Line 6...
6
 
6
 
7
#define AUTOZERO_PORT PORTD
7
#define AUTOZERO_PORT PORTD
8
#define AUTOZERO_DDR DDRD
8
#define AUTOZERO_DDR DDRD
Line -... Line 9...
-
 
9
#define AUTOZERO_BIT 5
-
 
10
 
9
#define AUTOZERO_BIT 5
11
const uint8_t GYROS_REVERSE[2] = {0,0};
10
 
12
 
11
void gyro_calibrate() {
13
void gyro_calibrate() {
12
  // If port not already set to output and high, do it.
14
  // If port not already set to output and high, do it.
13
  if (!(AUTOZERO_DDR & (1<<AUTOZERO_BIT)) || !(AUTOZERO_PORT & (1<<AUTOZERO_BIT))) {
15
  if (!(AUTOZERO_DDR & (1<<AUTOZERO_BIT)) || !(AUTOZERO_PORT & (1<<AUTOZERO_BIT))) {