Subversion Repositories Projects

Rev

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

Rev 333 Rev 340
Line 15... Line 15...
15
#include "gps.h"
15
#include "gps.h"
16
#include "button.h"
16
#include "button.h"
Line 17... Line 17...
17
 
17
 
-
 
18
 
Line 18... Line 19...
18
 
19
#define FOLLOWME_INTERVAL 1000 // 1 second update
19
#define FOLLOWME_INTERVAL 1000 // 1 second update
20
#define CELLUNDERVOLTAGE 31 // lowest allowed voltage/cell; 31 = 3.1V
20
 
21
 
21
#ifdef USE_FOLLOWME
22
#ifdef USE_FOLLOWME
Line 192... Line 193...
192
                                delay = 0;
193
                                delay = 0;
193
                        }
194
                        }
194
                        if(delay < 1500) delay++;
195
                        if(delay < 1500) delay++;
Line 195... Line 196...
195
 
196
 
196
                        // monitor battery undervoltage
197
                        // monitor battery undervoltage
197
                        if((UBat < Zellenzahl * 31) && (PowerOn >= 100))
198
                        if((UBat < Zellenzahl * CELLUNDERVOLTAGE) && (PowerOn >= 100))
198
                        {   // sound for low battery
199
                        {   // sound for low battery
199
                                BeepModulation = 0x0300;
200
                                BeepModulation = 0x0300;
200
                                if(!BeepTime)
201
                                if(!BeepTime)
201
                                {
202
                                {