Created
November 5, 2017 12:58
-
-
Save lgeek/5834b51fa99a79ed51d3aea2a3a59ef3 to your computer and use it in GitHub Desktop.
Simonk config for brushless drive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tgy.asm b/tgy.asm | |
index d74b179..e348a83 100644 | |
--- a/tgy.asm | |
+++ b/tgy.asm | |
@@ -165,7 +165,7 @@ | |
.equ BOOT_START = THIRDBOOTSTART | |
.if !defined(COMP_PWM) | |
-.equ COMP_PWM = 0 ; During PWM off, switch high side on (unsafe on some boards!) | |
+.equ COMP_PWM = 1 ; During PWM off, switch high side on (unsafe on some boards!) | |
.endif | |
.if !defined(DEAD_LOW_NS) | |
.equ DEAD_LOW_NS = 300 ; Low-side dead time w/COMP_PWM (62.5ns steps @ 16MHz, max 2437ns) | |
@@ -180,12 +180,12 @@ | |
.if !defined(TIMING_OFFSET) | |
.equ TIMING_OFFSET = 0 ; Motor timing offset in microseconds | |
.endif | |
-.equ MOTOR_BRAKE = 0 ; Enable brake during neutral/idle ("motor drag" brake) | |
+.equ MOTOR_BRAKE = 1 ; Enable brake during neutral/idle ("motor drag" brake) | |
.equ LOW_BRAKE = 0 ; Enable brake on very short RC pulse ("thumb" brake like on Airtronics XL2P) | |
.if !defined(MOTOR_REVERSE) | |
.equ MOTOR_REVERSE = 0 ; Reverse normal commutation direction | |
.endif | |
-.equ RC_PULS_REVERSE = 0 ; Enable RC-car style forward/reverse throttle | |
+.equ RC_PULS_REVERSE = 1 ; Enable RC-car style forward/reverse throttle | |
.equ RC_CALIBRATION = 1 ; Support run-time calibration of min/max pulse lengths | |
.equ SLOW_THROTTLE = 0 ; Limit maximum throttle jump to try to prevent overcurrent | |
.equ BEACON = 1 ; Beep periodically when RC signal is lost | |
@@ -247,8 +247,8 @@ | |
.equ PWR_MAX_RPM1 = (POWER_RANGE/4) ; Power limit when running slower than TIMING_RANGE1 | |
.equ PWR_MAX_RPM2 = (POWER_RANGE/2) ; Power limit when running slower than TIMING_RANGE2 | |
-.equ BRAKE_POWER = MAX_POWER*2/3 ; Brake force is exponential, so start fairly high | |
-.equ BRAKE_SPEED = 3 ; Speed to reach MAX_POWER, 0 (slowest) - 8 (fastest) | |
+.equ BRAKE_POWER = MAX_POWER ; Brake force is exponential, so start fairly high | |
+.equ BRAKE_SPEED = 8 ; Speed to reach MAX_POWER, 0 (slowest) - 8 (fastest) | |
.equ LOW_BRAKE_POWER = MAX_POWER*2/3 | |
.equ LOW_BRAKE_SPEED = 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment