GPS4Palm

Source Code Documentation


ApproachForm.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define APPROACH_SECTION   __attribute__ ((section ("nav")))

Functions

Boolean ApproachFormHandleEvent (EventPtr event) APPROACH_SECTION
 Approach Form event handler.


Define Documentation

#define APPROACH_SECTION   __attribute__ ((section ("nav")))
 

Definition at line 30 of file ApproachForm.h.


Function Documentation

Boolean ApproachFormHandleEvent EventPtr  eventP  ) 
 

Approach Form event handler.

The Approach Form shows the Active Waypoint's ID and the current distance to the waypoint. If the GPS data is valid, the distance display is updated periodically. If enabled in the application preferences, an alarm sound is generated periodically.

Parameters:
eventP Pointer to event structure
Returns:
Status flag: event handled

Definition at line 100 of file ApproachForm.c.

References PrefsType::act_wpt, PrefsType::approach_sound, ApproachDstField, ApproachOKButton, ApproachWptField, calcR(), DoReceiveFlush(), PrefsType::form, format_number(), gc_dist_sphere(), gGPSData, gPortID, gPrefs, gWaypointDB, D104_Wpt_Type::ident, GPSType::lat, Semicircle_Type::lat, GPSType::lon, Semicircle_Type::lon, D104_Wpt_Type::posn, ReadFromGPS(), semi2deg(), SetFieldText(), UnpackWaypoint(), GPSType::valid, and ActWayptType::waypointID.


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