-
Notifications
You must be signed in to change notification settings - Fork 0
/
Waypoint.h
58 lines (43 loc) · 1.55 KB
/
Waypoint.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
Autonomous Arduino-based Research Vehicle In Nature (AARVIN)
Hayley Spencer Leavitt 2022
Version 1.0
Built for Sphero RVR, Arduino, with Adafruit mini spy camera module,
Sparkfun Qwiic GPS, Mini Magnetometer, and Distance Sensor.
Waypoint
Header File
The Waypoint object is a class written to contain all of the information
about a waypoint that we want AARVIN to visit along its route. Each waypoint
will consist of a latitude and longitude.
To be used in conjuction with the Route class.
Sources:
https://www.arduino.cc/reference/en/
https://github.com/sphero-inc/sphero-sdk-arduino-cpp
https://github.com/mikalhart/TinyGPSPlus
https://bitbucket.org/rmerriam/rvr-cpp/src/master/
*/
// -------------------------------- Header Info ----------------------------------
#ifndef Waypoint_h
#define Waypoint_h
// --------------------------------- Libriaries ----------------------------------
#include "Arduino.h"
// --------------------------------- Class Info ----------------------------------
/*
CLASS: Waypoint()
ARGUMENTS: None
DESCRIPTION:
Waypoint contains all the information about a single waypoint, including the
latitude and longitude of the point, and if it has been visited.
*/
class Waypoint
{
public:
// the class
Waypoint();
// the variables
float wlat; // latitude
float wlong; // longitude
float walititude; // altitude
bool isvisited; // boolean for if the waypoint has been visited or not
};
#endif