mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 15:38:29 -04:00
cb4e8144f4
git-svn-id: https://arducopter.googlecode.com/svn/trunk@955 f9c3cf11-9bcb-44bc-f272-b75c42450872
23 lines
303 B
C++
23 lines
303 B
C++
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
|
|
|
|
#include "GPS.h"
|
|
#include "WProgram.h"
|
|
|
|
int
|
|
GPS::status(void)
|
|
{
|
|
if (millis() - _lastTime >= 500){
|
|
return 0;
|
|
} else if (fix == 0) {
|
|
return 1;
|
|
} else {
|
|
return 2;
|
|
}
|
|
}
|
|
|
|
void
|
|
GPS::_setTime(void)
|
|
{
|
|
_lastTime = millis();
|
|
}
|