Subversion Repositories FlightCtrl

Rev

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

Rev 794 Rev 806
Line 314... Line 314...
314
                else // no 3D-SATFIX
314
                else // no 3D-SATFIX
315
                {       // disable gps control
315
                {       // disable gps control
316
                        GPS_Neutral();
316
                        GPS_Neutral();
317
                        if(GPS_Task != TSK_IDLE)
317
                        if(GPS_Task != TSK_IDLE)
318
                        {
318
                        {
319
                                satbeep = 1800 - (int16_t)GPSInfo.satnum * 225; // is zero at 8 sats
319
                                satbeep = 1600 - (int16_t)GPSInfo.satnum * 200; // is zero at 8 sats
320
                                if (satbeep < 0) satbeep = 0;
320
                                if (satbeep < 0) satbeep = 0;
321
                                BeepTime = 50 + (uint16_t)satbeep; // max 1850 * 0.1 ms =
321
                                BeepTime = 50 + (uint16_t)satbeep; // max 1650 * 0.1 ms =
322
                        }
322
                        }
323
                }
323
                }
324
                // set current data as processed to avoid further calculations on the same gps data
324
                // set current data as processed to avoid further calculations on the same gps data
325
                GPSInfo.status = PROCESSED;
325
                GPSInfo.status = PROCESSED;
326
                break;
326
                break;