Search found 2 matches
- 08 Feb 2023, 17:09
- Forum: RevPiModIO
- Topic: Negative Values
- Replies: 2
- Views: 8788
- 08 Feb 2023, 06:11
- Forum: RevPiModIO
- Topic: Negative Values
- Replies: 2
- Views: 8788
Negative Values
I'm using an encoder with a RevPiCore, a RevPiDIO, and RevPiModIO. It appears that ct.io.MyEncoder.value returns an unsigned 32 bit, such that when I turn the encoder past zero, instead of getting -1, I get 4294967295. Is there a signed version of .value, or do I need to do my own conversion?