Skip to content

Problem when casting messages from callback in C #611

@feemi

Description

@feemi

I use version 2.4.1 and communicate piksi according to c example. But when i cast msg to data type values are irrelevant. But when i access value directly from byte array it seems correct.

MSG_POS_LLH message
Example: msg[32] for n_sats -> it returns correct value

bad example:
/ msg_pos_llh_t position_message = (msg_pos_llh_t ) &msg;
position_message->lat
position_message->lon
position_message->n_sats
none of the above returns correct vaue.

Could this problem be related to little-endian thing ?

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