-
Notifications
You must be signed in to change notification settings - Fork 50
Header file for VN300 #168
base: devel
Are you sure you want to change the base?
Conversation
| public: | ||
|
|
||
| //added to make sure people dont accidentally initialize | ||
| VN300_GPS(const VN300_GPS*) = delete; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait what does this do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not gonna lie I don't fully remember.
I copied this over from a previous singleton I wrote a while back - If I cant remember the reason for it I'll delete it
| void setGPSData(); | ||
|
|
||
| //Returns GPS data struct | ||
| VN300_GPSData getGPSData(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get a bit more info on the gps data struct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm it's above I found it i'm stupid
| //Private constructor to prevent multiple instances | ||
| VN300_GPS(); | ||
|
|
||
| int registerID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what would registerID do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly not too sure yet - I just left it there incase its eventually needed.
Will remove it if its not.
|
Looks good to me? Seems logical and functional. |
|
This wont build yet because of the exceptions issue. If you run it with "-fexceptions" appended at the end of the the build command it'll work tho. I will go back and handle the exceptions once i know everything works. Also, not all the VN library files are needed. I can go in and delete these once I figure out which ones we need and which ones we dont. |
Description
Wrote up a quick header file to interface with the VN300 - mainly just GPS driver for now.
Asana Task: https://app.asana.com/0/187002107997407/1201573609333245/f