Skip to content

Commit

Permalink
Centered neutral throttle in bidirectional mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ahalekelly committed Oct 26, 2015
1 parent 1e4c017 commit a654f7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tgy.asm
Original file line number Diff line number Diff line change
Expand Up @@ -208,20 +208,20 @@
; 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
.equ RCP_ALIAS_SHIFT = 3 ; Enable 1/8th PWM input alias ("oneshot125")
.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
Expand Down

0 comments on commit a654f7d

Please sign in to comment.