Skip to content

How to enter negative speed with ESF-MEAS #164

Answered by semuadmin
FSet89 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you're right, however according to the application notes the speed is signed (section 6.1.2): https://content.u-blox.com/sites/default/files/documents/ZED-F9R-GettingStarted_AppNote_UBX-22035176.pdf

OK so clearly a discrepancy between different u-blox documentation sources!

In point of fact, different ESF-MEAS dataTypes have different attribute types (some are signed, some are unsigned, some use individual bitflags), so the dataField attribute is actually implemented in pyubx2 as generic X24 (24-bit binary data). This means that, to enter a -ve number, you have to use what's known as the "two's complement" binary representation of the number, e.g. -10 in 24-bit two's complement form…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@semuadmin
Comment options

Answer selected by semuadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
expected behaviour Working as expected
2 participants
Converted from issue

This discussion was converted from issue #163 on November 03, 2024 09:32.