Proxim RangeLAN2 7920 Bedienungsanleitung Seite 72

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 103
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 71
57
//Flush serial port B & C input buffer
serBrdFlush();
serCrdFlush();
//Wait for the Heading message from compass card and convert to an integer
while ((n = serBread(HeadIn, MAXSIZE-1, TIMEOUT)) == 0) ;
HeadIn[n] = 0;
HDGMAG = atoi(HeadIn);
CTS = WPHEAD;
printf("cts = %f\n",CTS);
/*Apply magnetic dev and var corrections and determine velocity and time average hdg.*/
HDGTRU = HDGMAG + DEV + VAR;
if (SOG > 1) Speed = SOG;
else Speed = 0;
if (fabs(AVGCSE - HDGTRU) >= 20) AVGCSE = HDGTRU;
AVGCSE = (AVGCSE + HDGTRU + Speed*COG)/(2+Speed);
ABSDIFF = fabs(AVGCSE-CTS);
DIFF =(AVGCSE-CTS);
}
}
Seitenansicht 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 102 103

Kommentare zu diesen Handbüchern

Keine Kommentare