GPS tracker code documentation
 All Classes Files Functions Variables Macros Pages
Functions
gps.h File Reference

GPS functions' prototypes and definition of related parameters. More...

#include "sim808.h"
Include dependency graph for gps.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t enable_gps ()
 enables the GPS functionality of the SIM808 module More...
 
uint8_t get_gps_location (char *position)
 checks if the module has a GPS fix, if yes, it querries the GPS module for the current position. The format of the output is longitude,latitude Example: 3937.656010,1406.059400 More...
 
uint8_t sim_gps_get_speed (char *speed)
 returns the speed relative to ground. More...
 
uint8_t sim_gps_disable ()
 disables the GPS functionality of the SIM808 module and the active antenna power supply More...
 

Detailed Description

GPS functions' prototypes and definition of related parameters.

Author
Mohamed Boubaker

Function Documentation

uint8_t enable_gps ( )

enables the GPS functionality of the SIM808 module

Returns
1 if the GPS is successfully enabled, 0 otherwise

Here is the call graph for this function:

uint8_t get_gps_location ( char *  position)

checks if the module has a GPS fix, if yes, it querries the GPS module for the current position. The format of the output is longitude,latitude Example: 3937.656010,1406.059400

Parameters
coordinatesis an array that will store the GPS position.
Returns
1 if the GPS position is calculated correctly, 0 if the module doesn't have a fix or an error occurs.

Here is the call graph for this function:

uint8_t sim_gps_disable ( )

disables the GPS functionality of the SIM808 module and the active antenna power supply

Returns
1 if the GPS is successfully disabled, 0 otherwise
uint8_t sim_gps_get_speed ( char *  speed)

returns the speed relative to ground.

Parameters
speedis used to store speed.
Returns
always returns 1.