| aGPM_GetMagHeadingFrac | Index |
Definition:
#include <aGPM.tea>
| int aGPM_GetMagHeadingFrac( | char addr); |
Parameters:
| addr | - | IIC address of the specified GPM. |
Return Value:
An int with the fractional part of the magnetic heading value from the specified GPM.
Description:
This routine reads the fractional part of the magnetic heading value from a GPM. A GPS provides a magnetic heading value based on current velocity and direction. See the documentation for the GPS Module for more details regarding GPM registers and functions.
| Note: | This routine is defined as a macro that calls the aI2C_ReadChar function. |
Example:
#include <aGPM.tea>
x=aGPM_GetMagHeadingFrac((unsigned char)0xD0);
This would set variable x to the fractional part of the magnetic heading value of the GPM.
Related:
aGPM_Get2DigitInt, aGPM_Get3DigitInt, aGPM_GetYear, aGPM_GetAltitude, aGPM_GetAnalogInput, aGPM_GetHours, aGPM_GetMinutes, aGPM_GetSeconds, aGPM_GetDay, aGPM_GetMonth, aGPM_GetLatitudeDegrees, aGPM_GetLatitudeMinutes, aGPM_GetLatitudeFrac, aGPM_GetLatitudeDirChar, aGPM_GetLongitudeDegrees, aGPM_GetLongitudeMinutes, aGPM_GetLongitudeFrac, aGPM_GetLongitudeDirChar, aGPM_GetGPSQuality, aGPM_GetSatellitesInUse, aGPM_GetHDOP, aGPM_GetTrueHeading, aGPM_GetTrueHeadingFrac, aGPM_GetMagHeading, aGPM_GetSpeed, aGPM_GetSpeedFrac, aGPM_GetSatelliteID, aGPM_GetSatelliteSignalLevel, aGPM_GetDigitalIO, aGPM_GetPosFoundFlag, aGPM_GetStatus, aGPM_SetPortDir, aGPM_SetPortBits
version: 1.0, build 80903
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado. All rights reserved.