Commit Graph

111 Commits

Author SHA1 Message Date
Faduf 1f809048df remove beeper dependency in pwm output 2017-07-16 09:45:02 +02:00
Faduf d6b9350c74 Add specific configuration depending on hardware revisions of the YupiF4 2017-07-15 19:41:48 +02:00
blckmn f0bdc93a25 Fix motor twitch when unarmed and using synced protocols. 2017-07-15 14:51:59 +10:00
Martin Budden 8b36027d65 pwmWriteDshotCommand fix 2017-07-06 09:01:56 +01:00
Martin Budden 87ae1616d6 Further better use of pwmAreMotorsEnabled 2017-07-06 08:55:26 +01:00
Martin Budden 3cdbaaf14d Remove duplication in motor enable/disable 2017-07-06 08:55:26 +01:00
Martin Budden a86ac89448 Whitespace tidy 2017-07-05 09:34:44 +01:00
Martin Budden 3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
blckmn 40167bc134 Adding some padding for the synced option. 2017-06-30 20:58:19 +10:00
blckmn 06ad65a2f6 Minor cleanup 2017-06-29 11:19:04 +10:00
blckmn b9ebf8f4fd PWM output calculations dynamic based on clock speed 2017-06-28 21:59:42 +10:00
Michael Keller 779823fb79 Cleaned up Dshot naming, containment. 2017-06-25 18:20:29 +12:00
mikeller 76869eb3dd Changed function pointer semantics. 2017-06-21 00:38:01 +12:00
mikeller 559079ff31 Fixup Dshot / Proshot implementation. 2017-06-21 00:12:01 +12:00
borisbstyle b21877438e Convert motor values at the final stage // Increase resolution 2017-06-19 09:51:17 +02:00
borisbstyle 9a4e93fa60 Merge pull request #3162 from TonyBazz/master
ProShot Implementation
2017-06-19 07:57:02 +02:00
mikeller 7c14c49701 Changed 'pwmWriteDshotCommand' to use switch for better readability. 2017-06-18 15:51:03 +12:00
Brian Balogh f17c46038b Fix pwmWriteDshotCommand repeats 2017-06-17 22:44:48 -04:00
Bryce Johnson 13e21c969e Added Dshot commands for reversing the motors and beeper for blheli_s 2017-06-14 12:34:36 -05:00
TonyBazz b4d2388103 Some simple changes to allow for Proshot (Another digital protocol). 2017-06-08 21:44:15 +10:00
Martin Budden 23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
Michael Jakob acdc429eb3 Get HAL timer struture copmletely initialized 2017-05-02 07:54:29 +02:00
Sami Korhonen cf7fc75290 F7 fix N channel pwm and dshot output 2017-04-12 20:50:45 +03:00
Martin Budden 2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Faduf 458cf6601d Beeper PWM support
Beeper PWM frequency set limited to positive values

Removal of all the defined(BEEPER_PWM)

tabs and spaces cleanup in beeper functions

Add IOGetByTag and timerGetByTag check to Beeper Pwm Init

Add IO check before every Beeper Pwm functions in pwm_output

Update pwm_output.c after comments from Mikeller
2017-03-31 20:23:27 +02:00
mikeller 85b002bb73 Added support for DShot ESC settings to CLI. 2017-02-20 12:45:44 +13:00
Martin Budden 2c667376fa Preparation for conversion to parameter groups 12 2017-02-19 11:41:49 +00:00
Martin Budden 781b1b1352 Removed dependency of pwm_output driver on mixers and servos 2017-02-19 08:59:37 +00:00
Martin Budden 90c8ed5e3e Preparation for conversion to parameter groups 10 2017-02-19 08:33:25 +00:00
DieHertz 0e75b4131e Added PWM inversion to motor config 2017-01-31 14:20:17 +01:00
blckmn 3c20108a99 Performance improvement based on feedback from @martinbudden 2017-01-30 15:02:14 +01:00
blckmn a7f50ad30a Mixer protection for not enough motors initialised 2017-01-30 15:02:13 +01:00
borisbstyle 8303151a25 Remove DSHOT900 2017-01-10 00:35:03 +01:00
blckmn 9c9a3fe909 Improvements and order by ascending as requested 2017-01-07 20:28:22 +11:00
blckmn 61827e6fd0 Adding DSHOT1200 and 900 2017-01-07 09:08:33 +11:00
Sami Korhonen 6b48aab3c6 Unify F7 pwmoutput 2016-12-25 09:17:20 +02:00
Martin Budden 99760469d8 Moved pwmWritePtr out of pwm_output motors[] array 2016-12-21 08:42:52 +00:00
Martin Budden ae1944b78c Tidy of mixer code. Remove motorCount extern 2016-12-21 08:42:52 +00:00
Michael Jakob 07f7b20aec Move Brushed ESC auto detection into seperate source files
pwm_output.c and pwm_output_hal.c are used aternativly
2016-12-14 20:43:14 +01:00
Michael Jakob 590b01a77e Generalize brushed ESC auto detection
Used for all AlienFlight and SPRACINGF3EVO targets
2016-12-10 23:14:32 +01:00
blckmn 01f942554c Fixed timer output needing to be properly enabled (when using PPM pins etc). 2016-11-26 21:36:50 +11:00
atomiclama d4a81879d8 Fixed a problem when the motor count for motorInit came from a custom
mixer table lookup which was 0.

1. took the motor count from the loading of the custom mixer table.
2. Moved the mixerconfig to before motorInit as motorInit needs the
motorCount.
3. removed pwmIsSynced checks as this was a order of init problem, and
not required as pwmCompleteMotorUpdate protects itself.
2016-11-17 13:28:52 +00:00
Martin Budden 19901730fc Removed trailing spaces from device drivers 2016-11-11 08:11:48 +00:00
Martin Budden c90a0d1a04 Merge pull request #1518 from blckmn/simplified_owners
Simplified owners
2016-11-11 08:51:43 +01:00
blckmn ebddaf8801 Fix for esc4way and dshot
May still require board reboot after flashing ESCs for dshot to re-enable correctly
2016-11-11 09:05:27 +11:00
blckmn 58105c25ac Simplified Owner management 2016-11-10 18:56:13 +11:00
blckmn ec92be725b Disable output of DSHOT when motors disabled 2016-11-09 20:29:32 +11:00
blckmn 4ee932a6ce Changed output of OC to be more inline with DSHOT - so the same flags can be utilised. 2016-11-09 20:03:06 +11:00
blckmn ff5c44b4dc Allow any allocation for motors and servos 2016-11-05 06:51:43 +11:00
borisbstyle 7b8ebfc8f9 Disable -flto optimiser option for F3, F4 and F7 2016-11-02 22:24:08 +01:00