palGPSSensor Class Reference
#include <palSensors.h>
List of all members.
|
Public Member Functions |
void | Init (palBody *body, int UTCseconds, float latitude, float longitude) |
void | GetGPSString (char *string) |
Detailed Description
A GPS Sensor A GPS sensor returns the location of the center of the body as a GPS string, eg:
Member Function Documentation
void palGPSSensor::GetGPSString |
( |
char * |
string |
) |
|
Gets the GPS string
- Parameters:
-
| string | A pointer to a valid character buffer |
void palGPSSensor::Init |
( |
palBody * |
body, |
|
|
int |
UTCseconds, |
|
|
float |
latitude, |
|
|
float |
longitude | |
|
) |
| | |
Initializes the GPS sensor. Attaches a GPS sensor to a given body. NOTE: Magnetic variation, Track/Course Made Good, date, are not calculated, and movement is assumed to occur on the equator!
- Parameters:
-
| body | The body which the sensor is attached to. |
| UTCseconds | The initial UTC time total (hours*60*60 + mins*60 + seconds) |
| latitude | The initial latitude position of the sensor (radians, ie: rad(degrees,minutes,seconds)) |
| longitude | The initial longitude position of the sensor (radians, ie: rad(degrees,minutes,seconds)) |
The documentation for this class was generated from the following files:
- /var/www/hosted/adrianboeing.com/pal/current/pal/pal/pal/palSensors.h
- /var/www/hosted/adrianboeing.com/pal/current/pal/pal/pal/palSensors.cpp