GPS4Palm

Source Code Documentation


HandleMessage.c File Reference

#include <PalmOS.h>
#include <PalmCompatibility.h>
#include "ResourceDefines.h"
#include "MathLib.h"
#include "Sinetab.h"
#include "HandleMessage.h"
#include "GPS.h"
#include "NavigationForm.h"
#include "SkyviewForm.h"
#include "Utils.h"
#include "common.h"
#include "fp.h"
#include "utm.h"
#include "geo.h"

Include dependency graph for HandleMessage.c:

Go to the source code of this file.

Classes

struct  SatType

Functions

Boolean HandleMessage (Char *message)
void UpdateStatus (UInt16 status)

Variables

PrefsType gPrefs
 Preferences data structure.
GPSType gGPSData
UInt32 gLastSuccessfulReception
 tickCount of last time we read data from GPS
UInt32 gLastTimeDisplay
 tickCount of last time we displayed GPS data on the Palm device
UInt32 gNextReadTime
 tickCount of the next scheduled read
WinHandle gNavigationH
 Navigation window handle for save-behind (Compass).
WinHandle gSkyViewH
 SkyView window handle for save-behind (Sky View Plot).
Boolean gHdFtrSet
 High-Density Display Feature Set available.
struct {
   char *   unit
   double   conv
   char *   unit
dst_c []
struct {
   char *   unit
   double   conv
   char *   unit
alt_c []
struct {
   char *   unit
   double   conv
spd_c []


Function Documentation

Boolean HandleMessage Char *  message  ) 
 

Definition at line 195 of file HandleMessage.c.

References BatField, GPSType::cmg, CMGField, cvt_atof(), DebugForm, MapPrefsType::fetch, FETCH_READY, FETCH_START, format_number(), gGPSData, gHdFtrSet, gLastSuccessfulReception, gLastTimeDisplay, gMaxTicksWithoutTime, gNavigationH, gNextReadTime, gPrefs, GPSMainForm, gTicksPerSecond, h, icos, isin(), GPSType::lat, GPSType::lon, MagField, MapForm, PrefsType::mapprefs, NAV_R1, NAV_R2, NAV_R3, NAV_X, NAV_Y, NavigationForm, SEL_USER, MapPrefsType::select, SetFieldText(), SkyviewForm, GPSType::sog, spd_c, UnitsType::spd_unit, SpeedField, STAT_OK, STAT_WARNING, StrCopy, StrLen, GPSType::time, TimeField, PrefsType::units, UpdateStatus(), GPSType::valid, and w.

Referenced by ReadFromGPS().

void UpdateStatus UInt16  status  ) 
 

Definition at line 1067 of file HandleMessage.c.

References GPSLostStr, GPSMainForm, GPSOkStr, GPSWarnStr, MapForm, NavigationForm, NavigationStatusField, PositionStatusField, SetFieldText(), SkyviewForm, SkyViewStatusField, STAT_NO_GPS, STAT_OK, STAT_REDRAW, and STAT_WARNING.

Referenced by HandleMessage(), MainFormHandleEvent(), MapFormHandleEvent(), NavigationFormHandleEvent(), and SkyviewFormHandleEvent().


Variable Documentation

const { ... } alt_c[]
 

double conv
 

Definition at line 167 of file HandleMessage.c.

double conv
 

Definition at line 158 of file HandleMessage.c.

double conv
 

Definition at line 148 of file HandleMessage.c.

const { ... } dst_c[]
 

GPSType gGPSData
 

Definition at line 129 of file HandleMessage.c.

Boolean gHdFtrSet
 

High-Density Display Feature Set available.

Definition at line 269 of file GPS.c.

UInt32 gLastSuccessfulReception
 

tickCount of last time we read data from GPS

Definition at line 235 of file GPS.c.

Referenced by HandleMessage().

UInt32 gLastTimeDisplay
 

tickCount of last time we displayed GPS data on the Palm device

Definition at line 238 of file GPS.c.

Referenced by HandleMessage().

WinHandle gNavigationH
 

Navigation window handle for save-behind (Compass).

Definition at line 121 of file NavigationForm.c.

Referenced by HandleMessage(), and NavigationFormHandleEvent().

UInt32 gNextReadTime
 

tickCount of the next scheduled read

Definition at line 241 of file GPS.c.

Referenced by HandleMessage().

PrefsType gPrefs
 

Preferences data structure.

Definition at line 279 of file GPS.c.

WinHandle gSkyViewH
 

SkyView window handle for save-behind (Sky View Plot).

Definition at line 92 of file SkyviewForm.c.

Referenced by SkyviewFormHandleEvent().

const { ... } spd_c[]
 

Referenced by HandleMessage(), and NavigationFormHandleEvent().

char* unit
 

Definition at line 166 of file HandleMessage.c.

char* unit
 

Definition at line 157 of file HandleMessage.c.

char* unit
 

Definition at line 147 of file HandleMessage.c.


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke