Subversion Repositories FlightCtrl

Rev

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

Rev 1887 Rev 1908
Line 52... Line 52...
52
#include <avr/io.h>
52
#include <avr/io.h>
53
#include <avr/interrupt.h>
53
#include <avr/interrupt.h>
54
#include "eeprom.h"
54
#include "eeprom.h"
55
#include "analog.h"
55
#include "analog.h"
Line -... Line 56...
-
 
56
 
56
 
57
#include "timer0.h"
57
// for debugging!
58
// for debugging!
58
#include "uart0.h"
59
#include "uart0.h"
Line 59... Line 60...
59
#include "output.h"
60
#include "output.h"
Line 64... Line 65...
64
 
65
 
65
volatile uint16_t millisecondsCount = 0;
66
volatile uint16_t millisecondsCount = 0;
66
volatile uint8_t  runFlightControl = 0;
67
volatile uint8_t  runFlightControl = 0;
67
volatile uint16_t cntKompass = 0;
68
volatile uint16_t cntKompass = 0;
68
volatile uint16_t beepTime = 0;
69
volatile uint16_t beepTime = 0;
Line 69... Line 70...
69
volatile uint16_t beepModulation = 0xFFFF;
70
volatile uint16_t beepModulation = BEEP_MODULATION_NONE;
70
 
71
 
71
#ifdef USE_NAVICTRL
72
#ifdef USE_NAVICTRL
Line 162... Line 163...
162
      beeper_On = 1;
163
      beeper_On = 1;
163
    else
164
    else
164
      beeper_On = 0;
165
      beeper_On = 0;
165
  } else { // beeper off if duration is over
166
  } else { // beeper off if duration is over
166
    beeper_On = 0;
167
    beeper_On = 0;
167
    beepModulation = 0xFFFF;
168
    beepModulation = BEEP_MODULATION_NONE;
168
  }
169
  }
Line 169... Line 170...
169
 
170
 
170
  // if beeper is on
171
  // if beeper is on
171
  if (beeper_On) {
172
  if (beeper_On) {