kopia lustrzana https://github.com/DL7AD/pecanpico9
Changed GPS switch decisions
rodzic
41461aa4c6
commit
c358234b6b
|
@ -393,7 +393,7 @@ bool GPS_Init(void) {
|
|||
void GPS_Deinit(void)
|
||||
{
|
||||
// Switch MOSFET
|
||||
//TRACE_INFO("GPS > Switch off");
|
||||
//palClearLine(LINE_GPS_EN);
|
||||
TRACE_INFO("GPS > Switch off");
|
||||
palClearLine(LINE_GPS_EN);
|
||||
}
|
||||
|
||||
|
|
|
@ -250,8 +250,10 @@ THD_FUNCTION(trackingThread, arg) {
|
|||
|
||||
if(isGPSLocked(&gpsFix)) { // GPS locked
|
||||
|
||||
// Switch off GPS
|
||||
// Switch off GPS (if cycle time is more than 60 seconds)
|
||||
#if TRACK_CYCLE_TIME > 60
|
||||
GPS_Deinit();
|
||||
#endif
|
||||
|
||||
// Debug
|
||||
TRACE_INFO("TRAC > GPS sampling finished GPS LOCK");
|
||||
|
|
Ładowanie…
Reference in New Issue