Skip to content

Commit

Permalink
Clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregwar committed May 30, 2017
1 parent 371f0ee commit e8f1a67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions firmware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Each gauge value is a signed 24 bit value (least significant byte first), result
of 3 bytes. Thus, the values of the four gauges are 12 bytes. These bytes can be read at the
present position address of the dynamixel registers (``0x24`` / 36).

0x24 | 0x27 | 0x2a | 0x2d
0x24-0x26 | 0x27-0x29 | 0x2a-0x2c | 0x2d-0x2f
-------|--------|-------|--------
Jauge 1 | Jauge 2 | Jauge 3 | Jauge 4

Expand All @@ -53,7 +53,8 @@ Here is an example of C code to read the values from one jauge:
#include <stdint.h>

// The bytes are here LSB, the same order that it appear in the dynamixel
// (For instance, jauge 1 values are 0x24 for b0, 0x25 for b1 and 0x26 for b2)
// (For instance, jauge 1 values are at dynamixel addresses 0x24 for b0, 0x25
// for b1 and 0x26 for b2)
int32_t decode24bits(uint8_t b0, uint8_t b1, uint8_t b2)
{
int32_t result = (
Expand Down

0 comments on commit e8f1a67

Please sign in to comment.