1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 05:45:31 +03:00
Commit graph

21 commits

Author SHA1 Message Date
Philippe-France
ec7bcbe262 solution of issue 318 2015-01-24 15:08:51 +01:00
Dominic Clifton
0b92f74b80 Remove usage of feature() from rx driver code so that driver code does
not have a dependency on config.c.
2014-12-06 14:33:43 +00:00
Ben Hitchcock
895d215265 Tightening up code inside atomic block, and whitespace changes (tabs to spaces) 2014-12-04 06:59:27 +08:00
Ben Hitchcock
5096873ab1 Improvement to the way that timers are forced to overflow, which should allow PPM on CC3D to work properly. 2014-11-30 08:08:34 +08:00
Ben Hitchcock
c0ed21a818 First attempt at getting CC3D PPM to work when oneshot is enabled.
I don't think that this will work, as we are manipulating the timer value to trick it into overflowing.  Better would be to force an overflow a different way, that would preserve the current timer value.  This would then give the proper value to the CC3D PPM routine, provided it was then divided by 8.
2014-11-29 22:54:27 +08:00
Petr Ledvina
aa7f5c4a1e New timer implementation
This is first part of new softserial code. Main timer code is changed, changes to rest of code are kept to minimum.

macros for BASEPRI based synchronization are added to project (atomic.h)

TIMER_PERIOD fixed in pwm_rx.c
2014-11-07 15:38:26 +01:00
Petr Ledvina
e686b4504e Centralized NVIC priorities
- NVIC priorities are moved to separate file, all values are replaced wit symbolic names. Priorities should be the same.
- tiny change in DMA initialization
2014-10-23 16:48:35 +02:00
Dominic Clifton
e847a6347d Improve speed of LED STRIP code.
Shaved about 150us each strip update.

This commit leaves in some timing trace code for the CC3D target, the
results of which can be seen in the debug variables for the sections
being timed.

A later commit will remove/disable the timing code.
2014-09-20 01:00:13 +01:00
Dominic Clifton
d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton
9977fce4bb STM32F3 - Disable PWM timeout monitoring on CH1 due to interrupt handler
loop.

CH2-CH8 still monitored.

See c0a349ed60.
2014-09-02 00:38:32 +01:00
Dominic Clifton
13af9f8ff9 Delete unused code. 2014-08-20 14:52:37 +01:00
Dominic Clifton
8d5b2283ec Reduce code size and ram usage of PWM supervisor code. 2014-08-20 14:51:20 +01:00
Dominic Clifton
c0a349ed60 Fix PWM failsafe by monitoring for missing pwm rise/fall signal events. 2014-08-20 01:32:27 +01:00
Dominic Clifton
9a9ff9b1ad Cleanup various compiler warnings that were appearing since the
additional compiler flags were added.
2014-08-01 20:02:10 +01:00
Dominic Clifton
9f1a0fcb4c Cleanup line endings. 2014-07-31 23:53:34 +01:00
Dominic Clifton
0ac2b51c60 Make ppm/pwm input filtering configurable. 2014-07-30 22:02:34 +01:00
Dominic Clifton
4b0fed8f07 Ported OpenPilot PPM frame validation.
On the CC3D it was observed that jitters were present, this code
validates each frame.

Prior to this, on other boards (Naze32/Flip32+/Olimexino/etc) it was
observed that when using an 8 channel RX AUX5-8 would sometimes be set
due to bad PPM data.

This code fixes both issues.
2014-07-26 13:01:02 +01:00
Dominic Clifton
a5ec1355d4 CC3D - Support PPM input on IN_S1.
This required timer overflow events to be used in the calculation of PPM
channel data.

CC3D tested, other targets may be unstable as a result. Needs further
testing.
2014-07-22 21:29:00 +01:00
Dominic Clifton
e867af8c4b Correct project name in GPL notices. 2014-06-05 00:47:47 +01:00
Dominic Clifton
0bbcd6570f Updated source files to include the GPL v3 notices. Include a copy of
the GPL v3.
2014-06-04 16:48:23 +01:00
Dominic Clifton
d19a5e7046 Cleanup project structure. Update unit test Makefile to place object
files in obj/test
2014-05-31 22:43:06 +01:00
Renamed from src/drivers/pwm_rx.c (Browse further)