From f294fcada06f6df17fa960739a7c388be4afb401 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 28 Apr 2013 10:39:20 +0200 Subject: digital/io-hub/src/apbirthday: update according to spoke resistance --- digital/io-hub/src/apbirthday/robot.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'digital/io-hub/src/apbirthday/robot.cc') diff --git a/digital/io-hub/src/apbirthday/robot.cc b/digital/io-hub/src/apbirthday/robot.cc index 08222e22..fa654e98 100644 --- a/digital/io-hub/src/apbirthday/robot.cc +++ b/digital/io-hub/src/apbirthday/robot.cc @@ -53,10 +53,14 @@ Robot::Robot () jack (hardware.raw_jack, 50), demo (false), usdist_control_ (2), - usdist0_ (usdist_control_, hardware.adc_dist0, hardware.dist0_sync, 100, 700, 650), - usdist1_ (usdist_control_, hardware.adc_dist1, hardware.dist1_sync, 100, 700, 650), - usdist2_ (usdist_control_, hardware.adc_dist2, hardware.dist2_sync, 100, 700, 650), - usdist3_ (usdist_control_, hardware.adc_dist3, hardware.dist3_sync, 100, 700, 650), + usdist0_ (usdist_control_, hardware.adc_dist0, hardware.dist0_sync, 100, 700, 650, + hardware.adc_dist0.get_resolution () * 2040 / 3300), + usdist1_ (usdist_control_, hardware.adc_dist1, hardware.dist1_sync, 100, 700, 650, + hardware.adc_dist1.get_resolution () * 2040 / 3300), + usdist2_ (usdist_control_, hardware.adc_dist2, hardware.dist2_sync, 100, 700, 650, + hardware.adc_dist2.get_resolution () * 2040 / 3300), + usdist3_ (usdist_control_, hardware.adc_dist3, hardware.dist3_sync, 100, 700, 650, + hardware.adc_dist3.get_resolution () * 2040 / 3300), radar_ (usdist0_, usdist1_, usdist2_, usdist3_), candles (1), fsm_debug_state_ (FSM_DEBUG_RUN), -- cgit v1.2.3