summaryrefslogtreecommitdiffhomepage
path: root/digital/io/tools
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io/tools')
-rw-r--r--digital/io/tools/io/init.py2
-rw-r--r--digital/io/tools/io/mex.py2
-rw-r--r--digital/io/tools/test_simu_aquajim.py2
3 files changed, 4 insertions, 2 deletions
diff --git a/digital/io/tools/io/init.py b/digital/io/tools/io/init.py
index 48934881..a842306c 100644
--- a/digital/io/tools/io/init.py
+++ b/digital/io/tools/io/init.py
@@ -3,5 +3,5 @@ host = dict (
servo_pos = ((1, 255), (1, 255), (1, 255), (1, 255), (1, 255),
(1, 255), (1, 255), (1, 255)),
sharp_threshold = ((0x7f, 0x90), (0x7f, 0x90), (0x7f, 0x90),
- (0x7f, 0x90), (0x7f, 0x90)),
+ (0x7f, 0x90), (0x7f, 0x90), (0x7f, 0x90)),
)
diff --git a/digital/io/tools/io/mex.py b/digital/io/tools/io/mex.py
index 52069db1..6f762ccd 100644
--- a/digital/io/tools/io/mex.py
+++ b/digital/io/tools/io/mex.py
@@ -35,7 +35,7 @@ ID_PWM = 0xb5
SERVO_NB = 6
SERVO_VALUE_MAX = 255
-ADC_NB = 5
+ADC_NB = 6
PWM_NB = 1
PWM_VALUE_MAX = 1024
diff --git a/digital/io/tools/test_simu_aquajim.py b/digital/io/tools/test_simu_aquajim.py
index a9bc82bf..630b35df 100644
--- a/digital/io/tools/test_simu_aquajim.py
+++ b/digital/io/tools/test_simu_aquajim.py
@@ -84,6 +84,8 @@ class TestSimu (InterNode):
self.robot_link)
self.robot_view = robot_view.Bag (self.table, self.actuator_view,
self.sensor_frame, self.robot_model)
+ # Unused ADC.
+ self.robot_link.io.adc[5].value = 0
# Color switch.
self.robot_model.color_switch.register (self.change_color)
self.change_color ()