Skip to content
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

GPS driver rewrite #195

Merged
merged 20 commits into from
Feb 15, 2013
Merged

GPS driver rewrite #195

merged 20 commits into from
Feb 15, 2013

Conversation

LorenzMeier
Copy link
Member

This is based on Julian's work, with some additional minor cleanup. Does not reflect the most recent state on Julians branch as not stable.

Before merging this needs more cleanup and work, but its a good time to start the review and actively test it.

*
****************************************************************************/

/* @file U-Blox protocol definitions */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lies!

@julianoes
Copy link
Contributor

Yes I've corrected a lot of stuff in my cleanup which I have no tested yet. But as Lorenz took my old state and started messing around with it, a lot of wrong stuff is back here. There is really no point in checking it in detail yet. I need to merge first and then you review would be helpful.

@julianoes
Copy link
Contributor

No let me correct, thanks for the comments. Most of it is not yet corrected and I can check and correct it.
Just sad that you miss all the comments and cleanup I added, I guess I'll have to include that at first next time.

@julianoes
Copy link
Contributor

Ok, I did the merge, the reason the parser would mess up the checksum was that I removed the returns in the parser and the rx_count got messed up (see 039d394#L3R750).

CPU usage is now at 3% and the gps status info works:

nsh> gps status
state @ 2000c390
gps: protocol: UBX
gps: baudrate: 38400, status: OK
gps: position lock: 3D, last update 0.13 seconds ago
gps: lat: 32XXXXXXX, lon: -117XXXXXXX, alt: 116086
gps: update rate:   5.05 Hz

I'll try to go through px4dev's comments now.

@LorenzMeier
Copy link
Member Author

Thanks Julian, the last two commits really (again) improved things. Lets keep this moving. I've commented the few locations that may need a second pass.

PX4BuildBot added a commit that referenced this pull request Apr 26, 2022
    - libcanard in PX4/Firmware (10dd69e): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request Apr 27, 2022
    - libcanard in PX4/Firmware (9c29877): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request Apr 28, 2022
    - libcanard in PX4/Firmware (a4df1d3): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request Apr 28, 2022
    - libcanard in PX4/Firmware (d11b94a): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request Apr 29, 2022
    - libcanard in PX4/Firmware (a4cb1f9): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request Apr 29, 2022
    - libcanard in PX4/Firmware (f6ccf7e): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request Apr 30, 2022
    - libcanard in PX4/Firmware (fa2cbcf): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 1, 2022
    - libcanard in PX4/Firmware (872ef01): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 2, 2022
    - libcanard in PX4/Firmware (b8706fc): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 2, 2022
    - libcanard in PX4/Firmware (c595c72): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 3, 2022
    - libcanard in PX4/Firmware (504755f): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 3, 2022
    - libcanard in PX4/Firmware (e827051): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 4, 2022
    - libcanard in PX4/Firmware (ff9d8e1): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 5, 2022
    - libcanard in PX4/Firmware (f4b5589): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 5, 2022
    - libcanard in PX4/Firmware (fda5de6): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 6, 2022
    - libcanard in PX4/Firmware (1f64d0b): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 7, 2022
    - libcanard in PX4/Firmware (723396b): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 8, 2022
    - libcanard in PX4/Firmware (d5ac15e): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 8, 2022
    - libcanard in PX4/Firmware (45b6959): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 9, 2022
    - libcanard in PX4/Firmware (ddf5d80): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 10, 2022
    - libcanard in PX4/Firmware (4fe4e23): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
PX4BuildBot added a commit that referenced this pull request May 10, 2022
    - libcanard in PX4/Firmware (7aa8296): OpenCyphal/libcanard@2d44945
    - libcanard current upstream: OpenCyphal/libcanard@db87ea3
    - Changes: OpenCyphal/libcanard@2d44945...db87ea3

    db87ea3 2022-04-12 Kalyan Sriram - readme: update v3.0 release notes (#195)
75bb34c 2022-04-12 Pavel Kirienko - branding: UAVCAN -> OpenCyphal (#194)
d128f4e 2022-03-28 Kalyan Sriram - MISRA/AUTOSAR: remove flexible array (#192)
224adff 2021-12-04 Kalyan Sriram - readme: update canardFilter example typo
cf0a8bc 2021-12-04 Pavel Kirienko - Libcanard v2.0 (#182)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants