-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWaypoint.cpp
47 lines (36 loc) · 1.42 KB
/
Waypoint.cpp
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
/*
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
Source 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/
*/
// --------------------------------- Libriaries ----------------------------------
#include "Waypoint.h" // header file for this library
// ------------------------------ Class Definition -------------------------------
/*
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.
*/
Waypoint::Waypoint()
{
// variables
float wlat; // latitude
float wlong; // longitude
float waltitude; // altitude
bool isVisited = false; // boolean for if the point has been visited or not
}