Documentation Center

  • Trial Software
  • Product Updates

Contents

LEGO MINDSTORMS NXT GPS Sensor

Measure latitude and longitude, or heading and distance to GPS position

Library

Simulink Support Package for LEGO MINDSTORMS NXT Hardware

Description

This block requires a dGPS GPS Sensor for Mindstorms NXT from Dexter Industries.

Dialog Box

NXT brick input port

Select the NXT sensor port to which the sensor is connected. Avoid assigning multiple devices to the same port. The options are 1, 2, 3, or 4.

Operation mode

Select the mode of operation:

GPS Read sends the latitude and longitude of the GPS sensor to the Lat and Lon outputs on the block. The values are expressed as positive or negative integer values.

GPS Navigation sends the distance and angle from the current GPS sensor position to the Destination latitude and Destination longitude to the Dst and Agl outputs on the block.

Destination latitude

When Operation mode is GPS Navigation, specify the latitude of the destination. Get the latitude in decimal degrees format, remove the decimal point, and enter the value using 8 integers. The two left-most integers are the degrees latitude. Use zero as a placeholder for unused integers. Use a hyphen to indicate negative latitudes.

For example:

  • The latitude of MathWorks in Natick, Massachusetts, USA, expressed in decimal degrees, is 42.300135. For Destination latitude, enter this latitude as 42300135.

  • The latitude of Cape Town, South Africa, expressed in decimal degrees, is -33.924868. For Destination latitude, enter this as -33924868.

Destination longitude

When Operation mode is GPS Navigation, specify the longitude of the destination. Get the longitude in decimal degrees format, remove the decimal point, and enter the value using 9 integers. The three left-most integers are the degrees longitude. Use zero as a placeholder for unused integers. Use a hyphen to indicate negative longitudes.

For example:

  • The longitude of MathWorks in Natick, Massachusetts, USA, expressed in decimal degrees, is -71.3503011. For Destination longitude, enter this longitude as -071350301

  • The longitude of Cape Town, South Africa, expressed in decimal degrees, is 18.424055. For Destination longitude, enter this as 018424055.

Sample time

Specify how often the block reads sensor values.

Smaller values require the processor to complete the same number of instructions in less time, which can cause task overruns.

See Also

|

External Web Sites

Was this topic helpful?