Members
-
<readonly> latitude :number
-
Description
The most recent measured latitudeDetails
-
<readonly> longitude :number
-
Description
The most recent measured longitudeDetails
-
<readonly> altitude :number
-
Description
The most recent measured altitudeDetails
-
<readonly> sat :object
-
Description
Satellite operation details {pdop, hdop, vdop}Details
-
<readonly> speed :number
-
Description
The most recent measured ground speedDetails
-
<readonly> course :number
-
Description
The most recent measured courseDetails
-
<readonly> time :number
-
Description
Time of last fixDetails
-
frequency :number
-
Description
Frequency of updates in hzDetails
Methods
-
config( [ options ] ) → {GPS}
-
Description
Configure a GPSParameters
Name Type Attributes Default Description options
object <optional> {} An object containing device options Name Type Attributes Default Description frequency
number <optional> 1 The frequency of updates in Hz fixed
number <optional> 6 Precision for latitude and longitude readings Returns
Examples
import GPS from "j5e/gps"; const gps = await new GPS({ transmit: 17, receive: 16, port: 2, baud: 9600 }); gps.configure({ frequency: 2 });
Details