Method
|
Description
|
Return Value
|
__init__(port, baud, parity='None', stopbits=1, databits=8)
|
Create object, initialize port to the requested state, and start
service thread.
|
GPS_Serial.GPS object
|
baud(baud) |
Change port baud rate to new value.
|
None |
close() |
Release any OS resources for port, and halt service thread.
|
None |
write(str, cnt=None) |
Write data out the port. |
None |
read(size=1) |
Block until the specified number of bytes is received from
port.
|
String of bytes read |
readline() |
read() until a newline is received. |
String of bytes read |
Description
|
Object Method
|
Arguments
|
Return Value
|
Chk
|
Instantiate object and connect to serial port. |
__init__(gps) |
gps: GPS_Serial.GPS object |
Eagle.Eagle object |
Yes |
Disconnect from GPS receiver and release resources |
close() |
None |
None |
Yes |
Send LSI 100 command properly formatted with checksums, then wait
for response with a 5-second time-out
Increments error counters as necessary.
|
SendCmd(cmd, info) |
cmd: |
LSI-100 command byte |
info: |
list of (type, data) pairs, where type is:
b: |
byte data |
w: |
word (2 bytes) |
l: |
long (4 bytes) |
|
|
GPS receiver's response to command as a string of bytes
|
Yes |
Return generic ASCII description of unit software |
Undoc01() |
None |
String |
Yes |
Read from a memory location |
ReadMemLoc(addr, cnt, cart) |
addr: |
starting address of memory read |
cnt: |
number of bytes to be read (maximum 256) |
cart: |
cartridge slot |
|
String of bytes read from memory |
No |
Write to a memory location |
WriteMemLoc(addr, cnt, cart) |
addr: |
starting address of memory read |
cnt: |
number of bytes to be read (maximum 256) |
cart: |
cartridge slot |
|
Number of bytes written |
No |
Determine successful communications with GPS receiver |
Login() |
None |
None |
No |
Change NMEA baud rate |
ChangeBaudRate(rate) |
rate: |
integer in the range 1-5 where:
0: |
1200 baud |
1: |
2400 baud |
2: |
4800 baud |
3: |
9600 baud |
4: |
19200 baud |
5: |
38400 baud |
|
|
Unknown |
No |
Request screen pointer to download the current screen,
and freeze screen
|
RqstScrPtr() |
None |
width: |
screen width in pixels |
height: |
screen height in pixels |
black_addr: |
memory address of black pixel plane |
black_len: |
number of bytes in black pixel plane |
grey_addr: |
memory address of grey pixel plane |
grey_len: |
number of bytes in grey pixel plane |
|
Yes |
Unfreeze the screen after RqstScrPtr() call |
Unfreeze() |
None |
None |
Yes |
Get a waypoint |
GetWaypoint(wyptno) |
wyptno: index of waypoint to retrieve |
num: |
waypoint index |
stat: |
|
symbol: |
icon symbol index |
lat: |
waypoint latitude (Mercator Meters) |
lon: |
waypoint longitude (Mercator Meters) |
name: |
waypoint label (13 character maximum) |
date: |
number of seconds since 00:00 01-JAN-1992 |
|
Yes |
Send a waypoint |
SendWaypoint(wyptno, stat, symbol=None, lat=None,
lon=None, name=None, date=None)
|
wyptno: |
waypoint index |
stat: |
|
symbol: |
icon symbol index |
lat: |
waypoint latitude (Mercator Meters) |
lon: |
waypoint longitude (Mercator Meters) |
name: |
waypoint label (13 character maximum) |
date: |
number of seconds since 00:00 01-JAN-1992 |
|
Unknown |
No |
Get a route |
GetRoute(routeno) |
routeno: route index |
name: |
route label (13 character maximum) |
wypts: |
list of waypoint indexes in route |
|
Yes |
Send a route |
SendRoute(routeno) |
routeno: route index |
Unknown |
No |
Get plot trail pointer |
GetTrailPtr(trailno) |
trailno: trail index |
Unknown |
No |
Get number of icons |
GetNoIcons() |
Unknown |
Unknown |
No |
Get icon |
GetIcon(iconno) |
iconno: icon index |
Unknown |
No |
Set number of icons |
SetNumIcons() |
iconcnt |
Unknown |
No |
Send icon |
SendIcon() |
Unknown |
Unknown |
No |
Get number of symbols |
GetNoSymbols() |
Unknown |
Unknown |
No |
Get icon symbol |
GetIconSym() |
Unknown |
Unknown |
No |
Get product information |
GetProductInfo() |
None |
prod_id: |
1: |
GlobalMap |
2: |
AirMap |
3: |
AccuMap |
4: |
GlobalNav 310 |
5: |
Eagle View |
6: |
Eagle Explorer |
7: |
GlobalNav 200 |
8: |
Expedition II |
9: |
GlobalNav 212 |
10: |
GlobalMap 12 |
12: |
AccuMap 12 |
|
|
|
proto_ver: |
0: |
version 1.0 |
1: |
version 2.0 |
|
|
|
scr_type: |
0: |
black plane only |
1: |
black and grey planes |
2: |
packed pixels |
|
|
|
scr_x: |
width of screen in pixels |
scr_y: |
height of screen in pixels |
wypt_cnt: |
maximum number of waypoints |
icon_cnt: |
maximum number of icons |
route_cnt: |
maximum number of routes |
wypts_route: |
maximum number of waypoints per route |
trail_cnt: |
maximum number of plot trails |
sym_cnt: |
maximum number of icon symbols |
scr_angle: |
0: |
0° |
1: |
90° |
2: |
180° |
3: |
270° |
|
|
|
runtime: |
length of time unit has been running, in seconds |
|
Yes |
Get plot trail origin (protocol version 2.0 only) |
GetTrailOrigin() |
Unknown |
Unknown |
Yes |
Get plot trail deltas (protocol version 2.0 only) |
GetTrailDeltas() |
Unknown |
Unknown |
Yes |
Get entire plot trail |
GetTrail() |
Unknown |
Unknown |
Yes |
Get all valid routes |
GetRoutes() |
Unknown |
Unknown |
Yes |
Get all valid waypoints |
GetWayPoints() |
Unknown |
Unknown |
Yes |
Get screen display bitmap |
GetScreen() |
Unknown |
Unknown |
Yes |
Get icon symbol bitmap |
GetSymbol() |
Unknown |
Unknown |
No |
Get large block of memory by performing multiple
ReadMemLoc() calls
|
GetBlock() |
Unknown |
Unknown |
No |
Write large block of memory by performing multiple
WriteMemLoc() calls
|
WriteBlock() |
Unknown |
Unknown |
No |