forked from orocos/rtt_soem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soem_beckhoff_drivers: Consistently use 2^n-1 for the range value
Previously, 2^n was used (where n is resolution of the module). The EL4002 will be used as an example. The EL4002 is an analog output module which supports 0 to 10V output. When 2^n is used as the range of this module, 0V will be the output as a result of module.write(10) due to integer overflow. The module does support 10V output. When 2^n-1 is used, the module does indeed output 10V as a result of module.write(10). Signed-off-by: Johan Robben <[email protected]>
- Loading branch information
Johan Robben
committed
Apr 27, 2015
1 parent
a174b97
commit 76c1c6f
Showing
4 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters