-
Notifications
You must be signed in to change notification settings - Fork 5
Added initial gps logger functionalities #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I'm converting this PR to a draft for now, because significant work remains before it can be safely merged to the primary branch (that's used in production). Continue to develop in this branch for now, and we'll merge when there's a little more stability in the pull. |
@@ -204,6 +206,13 @@ void setup() | |||
|
|||
Serial.printf("DBG: After voltage monitoring start, free heap = %d B, delta = %d B\n", heap.CurrentSize(), heap.DeltaSinceLast()); | |||
|
|||
Serial.println("Starting GPS logger ..."); | |||
GPSLogger = new gps::Logger(logManager); |
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.
We'll want this to be optional so that we don't have to turn it on if the hardware isn't there (or the user isn't interested). Similar code is used for IMU, etc.
bool Logger::begin(void) | ||
{ | ||
// Configure I2C pins for GPS | ||
Wire.begin(33, 36); // SDA, SCL |
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.
Since this is also used by the IMU, we'll have to check that re-initialising this isn't going to cause problems (or vice versa if the IMU is also enabled).
…sing, added I2C Bus properties to class constructor to allow for different clock speeds and increased buffer to accomodate the new variables.
Initial ZED RTK logger functionalities in GPSLogger cpp