Mathias Rasmussen
a5cc565c02
fix: Disable DShot 600 support on BB1 (L) ESCs
Avoid using a suboptimal performing configuration
3 years ago
Mathias Rasmussen
8b3d324fa1
refactor: Optimize jump space
Make it possible to jump to fast procedure
3 years ago
Mathias Rasmussen
17a7a22f64
perf: Remove pwm power RAM variables
3 years ago
Mathias Rasmussen
788338e8d9
perf: Remove PCA interrupt
Update PWM auto-reload registers directly
3 years ago
Mathias Rasmussen
8e6d8e9613
refactor: Move loading of commutation timing setting
Better balance of the amount of work done between waiting periods
3 years ago
Mathias Rasmussen
4d8c396541
docs: Update commutation timing comments
3 years ago
Mathias Rasmussen
edd5b09c7f
docs: Update ERPM comments
3 years ago
Mathias Rasmussen
df1fe00ebf
perf: Optimize commutation period averaging
3 years ago
Mathias Rasmussen
d126342ae2
refactor: Rename routines for calculating commutation period
4 years ago
Mathias Rasmussen
f4c918fae5
perf: Set max commutation period directly for startup phase
4 years ago
Mathias Rasmussen
a668872e90
perf: Optimize commutation calculations for startup phase
4 years ago
Mathias Rasmussen
10f0f9b26c
fix: Wrong averaging of commutation period during startup phase
The update used `C_P4x / 2 + C_P`.
This has been changed to reuse normal routine: `C_P4x - (C_P4x / 4) + C_P`.
Alternatively: `C_P4x / 2 + C_P * 2` could have been an option.
4 years ago
Mathias Rasmussen
1458591de1
refactor: Change register usage for consistency
4 years ago
Mathias Rasmussen
ea79770440
refactor: Reorganize commutation period update
4 years ago
Mathias Rasmussen
f237ec732e
perf: Optimize commutation period calculations
4 years ago
Mathias Rasmussen
fd9864a068
fix: Discrepancy when calculating wait times during startup
In the startup phase Temp4 could have the wrong value
4 years ago
Mathias Rasmussen
ca983678c0
refactor: Move Zc_Scan_Start up
4 years ago
Mathias Rasmussen
368744a353
refactor: Simplify bootloader check
4 years ago
Mathias Rasmussen
907c4726b7
feat: Improve arming safety check
Make sure RCP value has been for 300ms (10 times)
4 years ago
Mathias Rasmussen
95e7087f77
refactor: Optimize bidirectional direction decoding
4 years ago
Mathias Rasmussen
5b5ae55f09
style: Consistent timer 1 interupt labels
4 years ago
Mathias Rasmussen
f03da82bcd
docs: Add and update code comments and notes
4 years ago
Mathias Rasmussen
da09ca0e6f
style: Change timer delay numbering format
Negative numbers to represent the actual delay
4 years ago
Mathias Rasmussen
be738dec45
style: Fix code style whitespace
4 years ago
Mathias Rasmussen
9a5ad149f8
chore(release): 0.13
4 years ago
Mathias Rasmussen
be52fa6469
fix: Clear DShot command when RCP is zero
DShot commands must be counted consecutively and not allow zero rcp packets in between
4 years ago
Mathias Rasmussen
90ae235481
feat: Send telemetry for each DShot packet when off
Simplify RCP start check and DShot command handling
4 years ago
Mathias Rasmussen
512f8e6839
refactor: Optimize DShot command check
4 years ago
Mathias Rasmussen
754aaf992c
refactor: Routines for beep sequences
4 years ago
Mathias Rasmussen
128323c822
style: Rename beacon delay counter
4 years ago
Mathias Rasmussen
78de110ea9
fix: Switch power off earlier during signal detection
Ensure FETs are off when beeping
4 years ago
Mathias Rasmussen
bc95ca8c64
refactor: Use timer 2 to schedule beacon beep
4 years ago
Mathias Rasmussen
18745f1682
style: Rename init_start to motor_start
4 years ago
Mathias Rasmussen
4fd988fb55
refactor: Change stall and stop handling
4 years ago
Mathias Rasmussen
3b90c60855
style: Rename wait_for_power_on labels
4 years ago
Mathias Rasmussen
406ac2b048
refactor: Move initialization of initial run counter
4 years ago
Mathias Rasmussen
ecb70ea884
fix: Check RCP timeout in DShot command loop
Avoid getting stuck in loop on signal loss
4 years ago
Mathias Rasmussen
f7b88684e2
refactor: Change motor start RCP glitch check
4 years ago
Mathias Rasmussen
ebba0ce165
refactor: Set rcp stop flag on timeout
4 years ago
Mathias Rasmussen
7c3fbbed4d
refactor: Reorganize DShot command resets
4 years ago
crteensy
18524b24af
docs: Clarify layout overview table ( #23 )
* Clarify layout overview table
Since some of the the existing comments were confusing, the actual output setup was taken from the individual layout files and condensed into a table. Comments in parentheses could be removed, because they just refer to a different layout which is, well, different.
* style: spaces to tabs
* docs: Fix comments and S pinout
Co-authored-by: Mathias Rasmussen <mathiasvr@gmail.com>
4 years ago
Mathias Rasmussen
be845d6782
refactor: Simplify DShot command direction handling
4 years ago
Mathias Rasmussen
b82153c342
refactor: Only decode settings during startup
4 years ago
Mathias Rasmussen
44ac8e2c75
refactor: Make Flag_Motor_Dir_Rev a run time state flag
4 years ago
Mathias Rasmussen
62bcd1cae1
refactor: Rename Flag_Pgm_Bidir_Rev to Flag_Pgm_Dir_Rev
4 years ago
Mathias Rasmussen
f230095a71
refactor: Rename Flag_Pgm_Dir_Rev to Flag_Motor_Dir_Rev
4 years ago
Mathias Rasmussen
2b66e93d99
docs: Rename pwm phase macros
4 years ago
Mathias Rasmussen
4f87c40a43
docs: Rename comparator macros
4 years ago
Mathias Rasmussen
6f61646309
docs: Update commutation comments
4 years ago
Mathias Rasmussen
22996bdcee
style: Rename pins in ESC layouts
4 years ago