nasa-jpl / jsd

Just SOEM Drivers
Other
18 stars 15 forks source link

fix: resolve off-by-one issue #79

Closed preston-rogers closed 1 year ago

preston-rogers commented 1 year ago

It was discovered that digital_output_index did not correspond to the indices expected for the ELMO digital output pins (OUT1 through OUT4) as well as the indices associated with the object (OB[1-4]). To fix this, one less bit shift is required.

Tested the new indexing on the testbed and confirmed this new shifting coincides with the expected index'ing pattern.