1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00
Commit graph

63 commits

Author SHA1 Message Date
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
blckmn
9fdd3aa2e4 Fixes for hardfault, target changes for ANYFCF7 and BFF3 2016-11-01 14:34:06 +11:00
borisbstyle
5fef78e6c7 Fix unsynced PWM 2016-10-25 16:16:17 +02:00
borisbstyle
f79896b1bd Add DSHOT300
Bool check for dshot protocol

Add dshot300 to init

ident
2016-10-25 13:05:03 +02:00
blckmn
fe3ac4754e Timer code simplification in preparation of led strip being assignable.
Moved some repeated code into timer.c - preparation for allowing resource command for led strip
2016-10-23 14:16:55 +11:00
blckmn
4e529642d1 Initial implementation of DSHOT protocol (600 and 150) 2016-10-18 19:38:18 +11:00
blckmn
c578c9d6bc Removed DEFIO_TAG_ISEMPTY 2016-10-13 11:08:42 +11:00
blckmn
d48496c988 Adding some const qualifiers 2016-10-13 11:08:41 +11:00
blckmn
46a6e560f1 Initial IO remapping capability 2016-10-13 11:08:39 +11:00
borisbstyle
75c139faf2 Merge pull request #871 from martinbudden/bf_main_declarations
Moved function declarations out of main. Tidied drivers.
2016-08-03 10:08:43 +02:00
Michael Jakob
c35675d258 Fix AlienFlight F3 and Sparky PPM RX 2016-08-02 23:47:44 +02:00
Martin Budden
1c997abaaf Moved function declarations out of main. Tidied drivers. 2016-08-02 15:11:35 +01:00
nathan
b97a2b18a2 trying to fix kiss again. this should pry be a constant time implementation... 2016-07-29 02:04:44 -07:00
nathan
1b3ae14b8d allow pwm mapping to xN (complementary) channels 2016-07-23 00:27:43 -07:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
J Blackman
22e8a61a6f Merge pull request #725 from martinbudden/bf_pwm_tidy
Tidied pwm_output and pwm_mapping
2016-07-16 12:47:45 +10:00
borisbstyle
e4f9118e82 ident 2016-07-13 14:07:32 +02:00
blckmn
0e3afca946 fix for OneShot42 issue. 2016-07-13 19:25:19 +10:00
Martin Budden
3229390848 Fixed setting of pwmWritePtr 2016-07-12 00:07:41 +01:00
Martin Budden
b07c6c492a Tidied pwm_output and pwm_mapping 2016-07-11 17:20:36 +01:00
Sami Korhonen
085e88cfd9 Fix F4 timers + fix pwm output generation 2016-07-10 11:21:32 +03:00
Martin Budden
ea283ab98c Converted tabs to spaces 2016-07-09 14:39:39 +01:00
blckmn
67d448d8ea Improved Resource command output. 2016-07-09 17:03:16 +10:00
Martin Budden
c10129bc50 Combined timer output and inverted fields 2016-06-29 20:12:52 +01:00
blckmn
e666f10e84 Clean of superfluous F4 defines and add ZCORE (SPRF3 clone with SPI 6500) 2016-06-24 23:07:51 +10:00
blckmn
f293407a9d Renamed pin on timerHardware_t to tag for clarity 2016-06-22 21:12:38 +10:00
blckmn
897aab9c86 2.8.1 changes ready for merge 2016-06-19 09:42:30 +10:00
blckmn
8b1cc05e1d Updated timerHardware_t to drop pinsource, and use new IO tags. 2016-06-15 05:27:59 +10:00
Martin Budden
1846322a98 Fixed up F1 targets. 2016-06-12 22:04:02 +01:00
Martin Budden
ccac8c30d6 KISSFC target 2016-06-12 22:04:02 +01:00
blckmn
51a99e74c6 STM32F4: USARTS 4,5,6 added
Flag initialisation for motor_pwm_protocol
Fixes for AlienFlightF4 and timers
2016-06-08 05:43:28 +10:00
borisbstyle
9e5c5e88c7 Rework Fast PWM protocol configuration and timing 2016-05-07 00:58:38 +02:00
borisbstyle
f6b05a4894 Faster Multishot Math for F1 processors 2016-04-07 00:39:08 +02:00
4712
85dc6b59d2 1wire-pass-through-vcp
also changed uart 1wire-pass-through to avoid need of FC reboot after
exit.
2016-04-01 01:58:18 +02:00
borisbstyle
0de34f14fe Overclock F1 targets by default (CC3D excluded) // Fix timer scaling for oneshot125 / oneshot42 2016-02-28 23:23:01 +01:00
borisbstyle
6e96adff0d Scheduled motor refresh rate 2016-02-28 20:23:30 +01:00
borisbstyle
977fec408a Change use_fast_pwm to forced_motor_pwm // New default fixed PWM rates 2016-02-28 01:16:59 +01:00
borisbstyle
e0c1f84206 FastPwm for all oneshot42/125 and multishot // Cleanup 2016-02-23 23:42:26 +01:00
borisbstyle
ee76376005 Multishot Implementation 2016-02-23 11:07:33 +01:00
borisbstyle
6b8f4f1111 Oneshot42 Implementation 2016-02-23 00:22:37 +01:00
borisbstyle
fa9cd0440b FastPWM as part of Oneshot125 (dynamic oneshot)
bool correction

IdlePulse
2015-10-01 17:07:53 +02:00
borisbstyle
77534ed6f6 Merge remote-tracking branch 'henn1001/FastPWM' into betaflight
Conflicts:
	src/main/drivers/pwm_mapping.c
2015-10-01 16:01:15 +02:00
Dominic Clifton
5d5fd81b2e Fix bug where PPM rx stops working on sparky or CC3D when using motor
PWM rate > 500 (brushed motor mode).

Fix is the same as for OneShot since both brushed motors and oneshot use
an 8mhz timer.

Fixes #58
2015-09-09 19:25:08 +01:00
henn1001
7bd79e159c quick implementation of fastpwm 2015-08-11 01:56:32 +02:00
Dominic Clifton
22a98af25a Removing unnecessary idlePulse parameter from pwmOneshotMotorConfig. 2015-05-29 20:36:43 +01:00
ProDrone
b75de91f35 Instead of trying to latch the desired features...
...and apply them after a soft reset (which also required an additional
write to flash), it is now such that features and settings are modified
and stored in flash as before.

After initialisation completes, the active features are latched and are
not to be modified until the next startup. This guarantees that all
saved modifications are persistent even when power is switched of
(without a reset in between).

When a soft reset is required, the active features and the currently
configured features are used to detect if the oneshot feature has
changed state, in which case motor PWM outputs are stopped and soft
reset is done after a 1.5 second delay.

During normal operation the active features will not change and all
changes to features ordered via MSP commands or the CLI are applied to
the configuration that gets saved to flash.

The required effect of modifying features without changing the actions
in the running mainloop is achieved. The user needs to be aware that
changes to features are not applied immidiatly.
2015-05-21 01:27:45 +02:00
Dominic Clifton
9057d70410 Allow excluding of servo code at compilation time.
This is in preparation for backbox on CJMCU/64k.

Flight tested on CJMCU.
2015-02-22 16:21:03 +00:00
Dominic Clifton
a7e128e684 SPARKY - PWM output on PWM1-10. 2014-12-10 16:26:00 +00:00
Dominic Clifton
e802e2d032 Remove usage of feature() from pwm driver code so that driver code does
not have a dependency on config.c.
2014-12-06 11:39:31 +00:00