1040 User Guide: Difference between revisions

From Phidgets Support
No edit summary
Line 1: Line 1:
[[Category:UserGuide]]
[[Category:UserGuide]]
{{UserguideTOC|1040.jpg|1040}}
==Getting Started==


===Checking the Contents===
===Required Hardware===
{{UGbox|
 
'''You should have received:'''
* A 1040 GPS Phidget
* A PhidgetGPS
* A GPS Antenna
* A GPS Antenna
* A Mini-USB cable
* A USB Cable
* A Hardware Mounting Kit
* A Computer
|
'''In order to test your new Phidget you will also need:'''
* A location that is likely to get a GPS signal
||}}


===Connecting the Pieces===
===Connecting the Pieces===
{{UGbox|
[[Image:1040_Functional.jpg|300px|right|link=]]
# Connect the antenna to the PhidgetGPS
# Connect the GPS antenna to the 1040 GPS Phidget.
# Connect the PhidgetGPS to your computer using the Mini-USB cable.
# Connect the Phidget to your computer using the USB cable.
|
[[File:1040_0_Connecting_The_Hardware.jpg|400px|link=]]
||}}
 
===Testing Using Windows 2000 / XP / Vista / 7===
 
{{UGwin}}
 
===Running Phidgets Sample Program===


{{UGwin2|'''GPS-full'''}}
<br clear="all">
==Testing Using Windows==


{{UGbox|
{{UGcontrolpanel|1040}}
Double Click on the [[File:Ph.jpg|link=]] icon to activate the Phidget Control Panel and make sure that the PhidgetGPS is properly attached to your PC.
|[[File:1040_0_Control_Panel_Screen.jpg|400px|link=]]
|
#Double Click on Phidget GPS in the Phidget Control Panel to bring up GPS-full and check that the box labelled Attached contains the word True.
# A tick mark will appear in the box when a satellite fix has been acquired. If you areinside a building, you might have to go outside to get a satellite fix.
# Displays the latitude.
# Displays the longitude.
# Displays the velocity when the PhidgetGPS is moving.
# Displays the Heading (0 is north) when the PhidgetGPS is moving.
# Displays Time and Date as transmitted by the satellites.
# Opens Google Map and displays the GPS location.  The red dot shows the GPS location on the map. To close the Map click on the Close Map button.
|[[File:1040_0_GPS_Screen.jpg|400px|link=]]
}}


===Testing Using Mac OS X===
{{ugGPS}}


{{UGmac|PhidgetGPS|GPS-full}}
{{UGotheros}}
 
===Using Linux===
 
{{UGlinux}}
 
===Using Windows Mobile / CE 5.0 / CE 6.0===
 
{{UGce}}


==Technical Details==
==Technical Details==
Line 70: Line 34:
The 1040 does not support [[GPS Primer#WAAS|WAAS]].
The 1040 does not support [[GPS Primer#WAAS|WAAS]].


==API==
{{UGnext|}}
{{UGapih}}
 
===Data Structures===
 
 
===Functions===
 
{{UGapi|boolean PositionFixStatus [get]
|Returns the position fix status. True indicated that a position fix is available, and latitude, longitude, and altitude can be read. False indicates that no position fix is available.
}}
 
{{UGapi|double Latitude [get] 
|Returns the current latitude of the active antenna in signed decimal degree format.
}}
 
{{UGapi|double Longitude [get]
|Returns the current longitude of the active antenna in signed decimal degree format.
}}
 
{{UGapi|double Altitude [get]
|Returns the current altitude of the active antenna from mean sea level (geoid), range is from -9999.9 to 17999.9. Units are in meters.
}}
 
{{UGapi|double Velocity [get]
|Returns the current speed over ground of the active antenna in km/h. Has a maximum value of 1800.0.
}}
 
{{UGapi|double Heading [get]
|Returns the current true course over ground of the active antenna in degrees (000.0 - 359.9). 000.0 indicates True North, 180.0 indicates True South.
}}
 
{{UGapi|struct Time [get]
|Returns the current time as transmitted by the GPS receiver. Time is in UTC format.
}}
 
{{UGapi|struct Date [get]
|Returns the date of the last received position. Date is in UTC.
}}
 
===Events===
 
{{UGapi|OnPositionChange() [event]
|An event that is issued whenever a change in position occurs. Event arguments are latitude, longitude, altitude, velocity,  heading.
}}


{{UGapi|OnPositionFixChange() [event]
|An event that is issued when a position fix is obtained or lost. The event argument can be used to inform you whether or not you are getting a signal.
}}
==Product History==
==Product History==
{{UGhist}}
{{UGhist}}
{{UGrow|March 2011|0|100|Product Release, requires phidget21 libraries 2.1.8 or newer}}
{{UGrow|March 2011|0|100|Product Release, requires phidget21 libraries 2.1.8 or newer}}
{{UGrow|May 2011|0|101|getLabelString fix for lables > 7 characters}}
{{UGrow|May 2011|0|101|getLabelString fix for lables > 7 characters}}

Revision as of 18:48, 29 August 2016


Required Hardware

  • A 1040 GPS Phidget
  • A GPS Antenna
  • A USB Cable
  • A Computer

Connecting the Pieces

  1. Connect the GPS antenna to the 1040 GPS Phidget.
  2. Connect the Phidget to your computer using the USB cable.


Testing Using Windows

Phidget Control Panel

In order to demonstrate the functionality of the 1040, the Phidget Control Panel running on a Windows machine will be used.


The Phidget Control Panel is available for use on both macOS and Windows machines.

Windows

To open the Phidget Control Panel on Windows, find the Ph.jpg icon in the taskbar. If it is not there, open up the start menu and search for Phidget Control Panel

Windows PhidgetTaskbar.PNG

macOS

To open the Phidget Control Panel on macOS, open Finder and navigate to the Phidget Control Panel in the Applications list. Double click on the Ph.jpg icon to bring up the Phidget Control Panel.


For more information, take a look at the getting started guide for your operating system:


Linux users can follow the getting started with Linux guide and continue reading here for more information about the 1040.

First Look

After plugging the 1040 into your computer and opening the Phidget Control Panel, you will see something like this:

1040 Panel.jpg


The Phidget Control Panel will list all connected Phidgets and associated objects, as well as the following information:

  • Serial number: allows you to differentiate between similar Phidgets.
  • Channel: allows you to differentiate between similar objects on a Phidget.
  • Version number: corresponds to the firmware version your Phidget is running. If your Phidget is listed in red, your firmware is out of date. Update the firmware by double-clicking the entry.


The Phidget Control Panel can also be used to test your device. Double-clicking on an object will open an example.

GPS

Double-click on the GPS object labelled PhidgetGPS in order to run the example:

GPS Example.jpg


General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

  • GPS data will be displayed in real-time once a fix has been acquired.
  • Latitude: the current latitude position of the GPS antenna.
  • Longitude: the current longitude position of the GPS antenna.
  • Altitude: the current altitude of the GPS antenna in meters from mean sea level.
  • Velocity: the current speed over ground of the antenna in km/h.
  • Heading the current true course over ground in degrees.
  • Time and Date: the current time as transmitted by the GPS receiver.


Testing Using Mac OS X

  1. Go to the Quick Downloads section on the Mac OS X page.
  2. Download and run the Phidget OS X Installer
  3. Click on System Preferences >> Phidgets (under Other) to activate the Preference Pane
  4. Make sure your device is properly attached
  5. Double click on your device's objects in the listing to open them. The Preference Pane and examples will function very similarly to the ones described above in the Windows section.

Testing Using Linux

For a general step-by-step guide on getting Phidgets running on Linux, see the Linux page.

Using a Remote OS

We recommend testing your Phidget on a desktop OS before moving on to remote OS. Once you've tested your Phidget, you can go to the PhidgetSBC, or iOS pages to learn how to proceed.

Technical Details

Mounting

The 1040 has been sized so it may be mounted directly on top of the 1056 - PhidgetSpatial 3/3/3 and the 1049 - PhidgetSpatial 0/0/3.

Further Reading

For more information, check out the GPS Primer.

WAAS

The 1040 does not support WAAS.

What to do Next

  • Programming Languages - Find your preferred programming language here and learn how to write your own code with Phidgets!
  • Phidget Programming Basics - Once you have set up Phidgets to work with your programming environment, we recommend you read our page on to learn the fundamentals of programming with Phidgets.


Product History

Template:UGhist Template:UGrow Template:UGrow