kopia lustrzana https://github.com/cyoung/stratux
Use "GPS fix valid" condition instead of GPS ground track valid for isAHRSValid().
rodzic
1756f77433
commit
9a495c964a
|
@ -2102,7 +2102,7 @@ func isGPSClockValid() bool {
|
|||
func isAHRSValid() bool {
|
||||
// If attitude information gets to be over 1 second old, declare invalid.
|
||||
// If no GPS then we won't use or send attitude information.
|
||||
return isGPSGroundTrackValid() && stratuxClock.Since(mySituation.AHRSLastAttitudeTime) < 1*time.Second
|
||||
return isGPSValid() && stratuxClock.Since(mySituation.AHRSLastAttitudeTime) < 1*time.Second
|
||||
}
|
||||
|
||||
func isTempPressValid() bool {
|
||||
|
|
Ładowanie…
Reference in New Issue