Panteltje's GPS page


This code is released under the GPL license

C soure code for use with the Linux operating system.

gpspc
A program to display NMEA data from an EM-411 GPS module.
Added some functionality:
support for the SPC01 pressure, altitude, magnetic heading, and temperature module,
and support for the MPU6050 acceleraton, rotation and temperature module.
Both are connected to the PC par port using iic protocol.
So now there are 2 temperature sensors and indications...

NEW
Added open GL display with fancy airplane.

The airplane responds to the acceleration and rotation sensors :-).

Click here to download gpspc-0.7.tgz
Click here for the lsm info file.


Example of output in an rxvt, updated once per second:
*coordinates have been made unreadble

# gpspc -a -b /root/waypoints.test -x -d /dev/ttyUSB1
Panteltje (c) gpspc-0.7 for EM-411 GPS receiver board

control C exits.

latitude aa degrees bb.bbbb minutes N (cc.cccc degrees N)
longitude 5 degrees dd.dddd minutes E (ee.eee degrees E)
altitude above sea level 16.2000 M geoid_separation 46.6000 M
gps speed 3.52 knots (nautical miles/h)
gps speed 6.52 km/h
gps heading 36.15 degrees
date and time 2012 8 20 14:59-59 UTC

next waypoint 1 named amsterdam is 52 degrees 22.7749 minutes N 4 degrees 53.8671 minutes E altitude 10.00 m

heading to next waypoint 1 yyy.yyy degrees
distance to next waypoint 1 xxxxx.x km
altitude next waypoint 1 10 meter


WARNING GPS AIR SPEED LOW ***STALL***, GPS air speed 6.52 km/h, this is lower than 180
WARNING GPS heading differs from magnetic heading by 53.85 degrees, this is more than 5
WARNING GPS altitude differs from pressure altitude by 56 meters, this is more than 10

*** WARNING AUTO PILOT DISABLED ***

Mode 3D
GPS SPS Mode, fix valid
pdop 3.5
hdop 2.2
vdop 2.8
satellites used 5 ( 16 30 29 18 21 )
satellites in view 12
id 30 * elevation 69 azimuth 206 snr 0
id 21 * elevation 67 azimuth 99 snr 16
id 16 * elevation 60 azimuth 289 snr 28
id 6 elevation 44 azimuth 272 snr 0
id 3 elevation 26 azimuth 275 snr 0
id 18 * elevation 21 azimuth 135 snr 25
id 29 * elevation 19 azimuth 85 snr 0
id 31 elevation 9 azimuth 201 snr 0
id 5 elevation 8 azimuth 25 snr 0
id 7 elevation 6 azimuth 338 snr 0
id 13 elevation 2 azimuth 310 snr 0
id 19 elevation 0 azimuth 265 snr 0

acceleration_x 10 mg
acceleration_y -7 mg
acceleration_z 948 mg

rotation_x -2 degrees per second
rotation_y -1 degrees per second
rotation_z -1 degrees per second

mpu6050_temperature=27.44

air pressure 1023.19 hPa (millibar)
pressure altitude -82 m
magnetic heading 192 degrees
spc01_temperature 27.50 C












Click here for some programs I make available under the GPL.


Click here to send mail