void setup() {
Serial.begin(9600);
Serial1.begin(9600);
//to be used by gsm module
Serial1.print("\r");
delay(1000);
//Wait for a second while the modem sends an "OK"
Serial1.print("AT+CMGF=1\r"); //Because we want to send the SMS in text mode
delay(1000);
Serial1.print("AT+CSCA=\"+254733000810\"\r"); //Setting for the SMS Message center number,
delay(1000);
lcd.begin(16, 2);
//16 by 2 LCD innitialization
//Print a message to the LCD.
lcd.print("gps search....");
setupSpeedZones();
// Allow Eb-365 to power up
delay(2000);
}
#include
#include
LiquidCrystallcd(48, 46, 28, 26, 24, 22);
TinyGPSgps;
SpeedZone *speedZones[NSPEEDZONES];
#define DEFAULT_SPEED_LIMIT 55
#define NSPEEDZONES 8
booleandebugMode = true;
boolean speeding = false;
class Vertex {
public:
Vertex(float llat, float llng) {
lat = llat;
lng = llng;
}
floatlat;
floatlng;
};
classSpeedZone {
public:
SpeedZone(int s) {
Do'stlaringiz bilan baham: |