Skip to content

How to acess the flags in the data packet structures. #7

Closed
@bvernham

Description

@bvernham

Subject of the issue

Describe your issue here. If you reference a datasheet please specify which one and in which section (ie, the protocol manual, section 5.1.2). Additionally, screenshots are easy to paste into github.
You have a union of a struct and a variable inside another structure. This is beyond my knowledge of C.

For example: myGNSS.packetUBXHNRPVT->data.flags.gpsFixOK How do I access gpsFixOK? I have tried 10 different ways....
Thanks

Your workbench

  • What development board or microcontroller are you using?
  • What version of hardware or breakout board are you using?
  • How is the breakout board wired to your microcontroller?
  • How is everything being powered?
  • Are there any additional details that may help us help you?

Steps to reproduce

Tell us how to reproduce this issue. Please post stripped down example code demonstrating your issue.

Expected behavior

Tell us what should happen

Actual behavior

Tell us what happens instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions