From a654f7db862dea24549c0dbe08ebe27950bfc484 Mon Sep 17 00:00:00 2001 From: Adrian Kelly Date: Sun, 25 Oct 2015 23:15:53 -0400 Subject: [PATCH] Centered neutral throttle in bidirectional mode --- tgy.asm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tgy.asm b/tgy.asm index a540350..3a7d989 100644 --- a/tgy.asm +++ b/tgy.asm @@ -208,8 +208,8 @@ ; These are now defaults which can be adjusted via throttle calibration ; (stick high, stick low, (stick neutral) at start). ; These might be a bit wide for most radios, but lines up with POWER_RANGE. -.equ STOP_RC_PULS = 1060 ; Stop motor at or below this pulse length -.equ FULL_RC_PULS = 1860 ; Full speed at or above this pulse length +.equ STOP_RC_PULS = 1100 ; Stop motor at or below this pulse length +.equ FULL_RC_PULS = 1900 ; Full speed at or above this pulse length .equ MAX_RC_PULS = 2400 ; Throw away any pulses longer than this .equ MIN_RC_PULS = 768 ; Throw away any pulses shorter than this .equ MID_RC_PULS = (STOP_RC_PULS + FULL_RC_PULS) / 2 ; Neutral when RC_PULS_REVERSE = 1 @@ -217,11 +217,11 @@ .equ BEEP_RCP_ERROR = 0 ; Beep at stop if invalid PWM pulses were received .if RC_PULS_REVERSE -.equ RCP_DEADBAND = 50 ; Do not start until this much above or below neutral -.equ PROGRAM_RC_PULS = (STOP_RC_PULS + FULL_RC_PULS * 3) / 4 ; Normally 1660 +.equ RCP_DEADBAND = 25 ; Do not start until this much above or below neutral +.equ PROGRAM_RC_PULS = (STOP_RC_PULS + FULL_RC_PULS * 3) / 4 ; Normally 1700 .else .equ RCP_DEADBAND = 0 -.equ PROGRAM_RC_PULS = (STOP_RC_PULS + FULL_RC_PULS) / 2 ; Normally 1460 +.equ PROGRAM_RC_PULS = (STOP_RC_PULS + FULL_RC_PULS) / 2 ; Normally 1500 .endif .if LOW_BRAKE