-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Add and use AP_NMEA_Input #17153
base: master
Are you sure you want to change the base?
Add and use AP_NMEA_Input #17153
Conversation
I should note that if we didn't want to do the multiple-inheritance thing then we could do something like
Pete Hall also tried this here: #12289 |
By the way, I'm planning to add consumption of temperature to the rangefinder library's NMEA driver which is normally used for depth sounders. A number of users have asked to be able to retrieve and log the water temperature. If you wanted me to try and modify the RangeFinder library to try and use this I perhaps could. |
@rmackay9 We can already read the |
I was going to basically duplicate that consumption of the MTW sentence in the AP_RangeFinder_NMEA driver.. and then make it accessible with a method that returns a bool on success. It would only ever be called when we go to log the DPTH message. |
@rmackay9 sounds good - I'll probably try to convert AP_GPS_NMEA - happen to have a GPS that produces that on my desk ATM. |
8e8ae1b
to
50683ff
Compare
50683ff
to
eb0f1aa
Compare
eb0f1aa
to
46b813a
Compare
46b813a
to
a1f69c8
Compare
Nice, seems like a lot less code duplication. Were you able to run the size compare? |
a1f69c8
to
6b5afda
Compare
This factors out the NMEA parsing code from AP_Windvane_NMEA, in an attempt to reduce the number of NMEA parsers we have in our code.
Anything that wants to parse NMEA inherits from
AP_NMEA_Input
(multiple inheritance, typically, yech, but...) and implements these methods:Tested only as far as "it compiles" (and whatever is in autotest, now :-) )
@IamPete1