1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

54 commits

Author SHA1 Message Date
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
c10129bc50 Combined timer output and inverted fields 2016-06-29 20:12:52 +01:00
Martin Budden
97fe5afd6c Converted tabs to spaces. 2016-06-27 19:26:02 +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
J Blackman
0b0eb8147b Merge pull request #561 from AlienWiiBF/AlienFlight_fix
AlienFlight fixes
2016-06-24 19:55:52 +10:00
Martin Budden
3ca385d92e Tidied up sonar targets 2016-06-23 19:50:48 +01:00
Michael Jakob
070ea81816 AlienFlight fixes
AK8963 driver updates
Increase resolution for brushed motors from 250 to 750 steps (@32Khz pwm
rate)
2016-06-23 13:05:49 +02:00
blckmn
55a1876319 Renamed additional io to tag, and fixed issue identified by @martinbudden 2016-06-23 18:13:38 +10:00
blckmn
897aab9c86 2.8.1 changes ready for merge 2016-06-19 09:42:30 +10:00
blckmn
c16d642d66 Changes to sonar for new IO 2016-06-15 22:28:08 +10:00
Martin Budden
ccac8c30d6 KISSFC target 2016-06-12 22:04:02 +01:00
Martin Budden
adb6052054 Started moving F3 PWM and timers into target.c 2016-06-09 23:23:22 +01:00
blckmn
827b576f6d Removing some settings for simplicity, motor_pwm_protocol (for all protocols) and motor_pwm_rate (to sync or unsync) 2016-06-09 21:29:55 +10: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
blckmn
7ca39bbde6 STM32F4: Drivers 2016-06-08 05:37:08 +10:00
borisbstyle
f1d422c322 Seperate ONESHOT125 feature from fast_pwm_protocol 2016-05-24 23:10:09 +02:00
borisbstyle
9e5c5e88c7 Rework Fast PWM protocol configuration and timing 2016-05-07 00:58:38 +02:00
Martin Budden
876fe536e6 Fixed CC3D related build flags. 2016-05-05 15:19:50 +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
8ecd05b911 Configurable Beeper PIN6 CC3D // Less CC3D targets 2015-12-23 00:05:33 +01:00
4712
02b297afa7 Runtime ESC count / gpio / pin detection
Runtime ESC gpio/pin detection
Runtime ESC count detection
2015-11-13 18:32:57 +01:00
borisbstyle
4b3ba927e9 Merge branch 'master' into betaflight
Conflicts:
	src/main/blackbox/blackbox_io.c
	src/main/drivers/serial_usb_vcp.c
	src/main/flight/imu.c
	src/main/mw.c
	src/main/target/CC3D/target.h
2015-10-12 23:53:43 +02:00
Petr Ledvina
8f3d9fae9a unify typedef struct name_s {} name_t; naming convention 2015-10-12 19:58:12 +01: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
7b91524ba2 Replace gimbal_flags with FEATURE_CHANNEL_FORWARDING and gimbal_mode.
Gimbals are only one use of channel forwarding, PWM video switchers and
PWM buzzers are others.
2015-07-08 16:41:29 +01:00
Dominic Clifton
9a8a31676b Reduce maximum servos from 10 to 8.
1) the 2 extra servos were not used for anything, yet.
2) the MSP packet to set ALL the servo configurations in one go is
larger than the MSP input buffer size.

Likely the MSP_SET_SERVO_CONF should be updated with command that takes
an index of a servo to configure, as per mode ranges/colors/leds/etc.

Fixes #1002
2015-06-10 13:31:04 +01:00
Dominic Clifton
4ed6fdfea5 CC3D - Add sonar.
This also ensures that the PWM mapping does not use the sonar pins when
sonar is enabled in a board agnostic way.
Conflicts:
	src/main/config/config.c
	src/main/drivers/pwm_mapping.h
	src/main/main.c
	src/main/target/CC3D/target.h
2015-05-22 22:35:41 +01:00
Dominic Clifton
20a6f829d5 SPRacingF3 - Add support for airplane pwm mappings. 2015-05-21 02:02:33 +01:00
Dominic Clifton
b04be157b1 SPRacingF3 - Allow Sonar and Parallel PWM (drops 2 input channels).
Naze32 - Fix initialisation of outputs 5/6 when Parallel PWM and
Sonar are used together with a mixer that needs more than 4 motors.
2015-05-06 21:33:34 +01:00
Dominic Clifton
c0aec95e14 STM32F303 - Skip UART3 pins in PWM mapping when UART3 is used. 2015-05-06 20:38:39 +01: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
650389afb6 Disable ADC initialisation on CJMCU. Replace MASSIVEF3 with SPRACINGF3.
Conditional VCP code inclusion.  Other minor F1/F3 cleanups.
2015-01-20 23:33:03 +01:00
Dominic Clifton
abe4fbbaae Merge branch 'PWM_mapping' of https://github.com/MJ666/cleanflight into MJ666-PWM_mapping
Conflicts:
	src/main/main.c
2014-12-26 18:51:40 +00:00
Michael Jakob
4b0d5e7e15 Use same PWM mapping for PPM and Serial RX
Without this fix an Octocopter with serialh RX will not work. Standard
 receiver mapping with only 6 motors outputs will apply.
2014-12-15 07:46:47 +01: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
Ben Hitchcock
94c5573c39 Allowing oneshot125 functionality to work on a Naze board.
This code has been flight tested, but will have problems on a CC3D board, and also when the looptime is longer than 8200 uS.
2014-11-29 14:06:35 +08:00
Petr Ledvina
57c308538f Whitespace cleanup
Misplaced whitespace fixed, no functional changes
2014-11-24 21:39:25 +01:00
Petr Ledvina
bf50cbb1a8 NVIC priority change
Use 'better' macros to handle priority. This simplifies passing priority to function and new ATOMIC_BLOCK macro
2014-11-04 16:23:21 +01:00
Pierre-A
d0ec471d03 Current monitoring on CC3D 2014-10-21 20:30:40 +02:00
Dominic Clifton
41ff2e8d0e CC3D - Add support for battery voltage monitoring on S5_IN.
See docs for further details.
2014-09-19 21:16:40 +01:00
Dominic Clifton
d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton
3d382ea4c7 EUSTM32F103RC - First cut of support for this High-Density STM32F103
series development board.

These boards can be picked up for less than $11, coupled with a 10DOF
sensor board they make a great development platform or cheap expandable
FC.

Pretty much all pins are available to be used, unlike on the less
capable and more expensive OLIMEXINO.
2014-09-03 01:38:27 +01:00
Dominic Clifton
fd59a4cd52 Update mixer to use servo count from results of pwm mapping.
Also ensure that only aux channels for which there are available servos
are used when forwarding channels.

Removed magic number usage.
2014-06-11 19:13:40 +01:00