summaryrefslogtreecommitdiff
path: root/digital/asserv/src
diff options
context:
space:
mode:
authorNicolas Schodet2008-04-20 19:16:43 +0200
committerNicolas Schodet2008-04-20 19:16:43 +0200
commit1d6b510b0394562c6e9d52990986b4ddbd0263c5 (patch)
treedc486043195213b6ce0ff05dd951d2c3a93a4b27 /digital/asserv/src
parentda78eed17f4ca0950f4b5a8cd6686c93ade2f899 (diff)
* digital/asserv/src/asserv:
- lowered dead band.
Diffstat (limited to 'digital/asserv/src')
-rw-r--r--digital/asserv/src/asserv/pwm_mp.avr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/digital/asserv/src/asserv/pwm_mp.avr.c b/digital/asserv/src/asserv/pwm_mp.avr.c
index e79fd0ef..d170bfb8 100644
--- a/digital/asserv/src/asserv/pwm_mp.avr.c
+++ b/digital/asserv/src/asserv/pwm_mp.avr.c
@@ -72,9 +72,9 @@ pwm_mp_send (int16_t pwm1, int16_t pwm2)
/* Convert to 12 bits. */
int16_t pwm1c = pwm1 << 1;
int16_t pwm2c = pwm2 << 1;
- if (UTILS_ABS (pwm1c) < 0x20)
+ if (UTILS_ABS (pwm1c) < 0x10)
pwm1c = 0;
- if (UTILS_ABS (pwm2c) < 0x20)
+ if (UTILS_ABS (pwm2c) < 0x10)
pwm2c = 0;
/* Send, computing checksum on the way. */
cks = 0x42;