Subversion Repositories FlightCtrl

Rev

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

Rev 2044 Rev 2052
Line 54... Line 54...
54
#include "eeprom.h"
54
#include "eeprom.h"
55
#include "analog.h"
55
#include "analog.h"
56
#include "controlMixer.h"
56
#include "controlMixer.h"
Line 57... Line 57...
57
 
57
 
58
#include "timer0.h"
-
 
59
// for debugging!
-
 
60
#include "uart0.h"
58
#include "timer0.h"
Line 61... Line 59...
61
#include "output.h"
59
#include "output.h"
62
 
60
 
63
#ifdef USE_DIRECT_GPS
61
#ifdef USE_MK3MAG
Line 64... Line 62...
64
#include "mk3mag.h"
62
#include "mk3mag.h"
65
#endif
63
#endif
Line 181... Line 179...
181
      PORTD &= ~(1 << PORTD2);// Speaker at PD2
179
      PORTD &= ~(1 << PORTD2);// Speaker at PD2
182
    else
180
    else
183
      PORTC &= ~(1 << PORTC7);// Speaker at PC7
181
      PORTC &= ~(1 << PORTC7);// Speaker at PC7
184
  }
182
  }
Line 185... Line 183...
185
 
183
 
186
#ifdef USE_DIRECT_GPS
184
#ifdef USE_MK3MAG
187
  // update compass value if this option is enabled in the settings
185
  // update compass value if this option is enabled in the settings
188
  if (staticParams.bitConfig & (CFG_COMPASS_ACTIVE | CFG_GPS_ACTIVE)) {
186
  if (staticParams.bitConfig & (CFG_COMPASS_ENABLED | CFG_GPS_ENABLED)) {
189
    MK3MAG_periodicTask(); // read out mk3mag pwm
-
 
190
#endif
187
    MK3MAG_periodicTask(); // read out mk3mag pwm
-
 
188
  }
191
  }
189
#endif
Line 192... Line 190...
192
}
190
}
193
 
191
 
194
// -----------------------------------------------------------------------
192
// -----------------------------------------------------------------------