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

9442 commits

Author SHA1 Message Date
Dominic Clifton
a4ec81450c STM32F30x - Add support for I2C2. 2014-12-09 02:54:46 +00:00
Nicholas Sherlock
8c41772584 Add Blackbox 0.1.0 2014-12-08 22:06:57 +13: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
Dominic Clifton
7356863939 Removing unnecessary volatile keyword. 2014-12-06 14:32:32 +00:00
Dominic Clifton
9165e11449 EUSTM32F103 - Add LED support. 2014-12-06 12:59:22 +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
Dominic Clifton
d7e26980a8 Merge branch 'feature-oneshot125a' of https://github.com/nebbian/cleanflight into nebbian-feature-oneshot125a 2014-12-06 10:48:27 +00:00
Dominic Clifton
1cf9ea226d Remove redundant comments from timer.c. 2014-12-05 14:17:50 +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
8a9e51c779 Putting overflow code inside an atomic block, and style improvement (using predefined constant instead of raw number) 2014-12-02 06:11:40 +08:00
Dominic Clifton
d6012058a3 Fix sensor detection on old revision naze boards with MPU3050 (missing
#define). Fixes #134.
2014-12-01 19:38:58 +00:00
Michael Jakob
ece3859f9d Add comment regarding bind plug 2014-12-01 17:30:05 +01:00
Ben Hitchcock
e9aaff808e Updates to the way that timers are forced to overflow in oneshot mode.
Now the current count value is saved, and then passed to the listeners.  This _should_ mean that CC3D PPM might work this time.
2014-12-01 22:43:17 +08:00
Michael Jakob
a629646090 Update documentation,
Update Spektrum_bind.md
additional defines for hardware bind plug (AlienWii32)
2014-12-01 14:39:32 +01:00
Michael Jakob
17d1c6e610 Adding documentaion and fix
Board - AlienWii32.md
Spectrum bind.md
Adding Feature failsave
2014-11-30 11:07:41 +01: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
Michael Jakob
e33513b6c8 Update motor_pwm_rate to 32000 2014-11-29 16:51:17 +01:00
Michael Jakob
a58353692e AlienWii32 Spektrum bind integation 2014-11-29 16:21:03 +01: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
Ben Hitchcock
da35b3844c Bugfix for when looptime is longer than timer size.
Previously, when a looptime of 8300 uS was chosen, the output would be unpredictable.  Now the shots are fired only after every loop, not when the timer overflows.
2014-11-29 22:51:41 +08:00
Michael Jakob
910753121e Updates and fixes
fix FEATURE_RX_SERIAL
2014-11-29 14:45:11 +01: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
Michael Jakob
c4646d7a77 AlienWii32 alternative defaults for NAZE target
Activate via OPTIONS="ALIENWII32" during make
2014-11-29 01:16:36 +01:00
Kyle Manna
5f2e79d1c7 autotune: Correct macro name in comments
* Update the comments to reflect the code.
* No functional change.
2014-11-26 10:13:29 -06:00
Kyle Manna
b49bdcd169 main: Remove duplicated includes
* Remove duplicate includes from 50391f2c
* No functional change.
2014-11-26 10:13:29 -06:00
Kyle Manna
c806046181 perms: Remove execute bit on source files
* Remove the execute bit on source files.
* No functional change.
2014-11-26 10:13:29 -06:00
Dominic Clifton
4261185068 Merge pull request #186 from cleanflight/cc3d-mpu6000-detection-fix
CC3D - Attempt MPU6000 SPI detection multiple times.
2014-11-26 14:56:50 +00:00
Dominic Clifton
d41e8631ee Disable and cleanup some debug output. 2014-11-26 00:28:53 +00:00
Dominic Clifton
e454e44b1e CC3D - Attempt MPU6000 SPI detection multiple times.
On two CC3D boards tested prior to this fix the mpu6000ReadRegister call
for the MPU6000_WHOAMI would sometimes fail on code boot and sometimes
on warm boot, randomly.  

The reset added in 4db1d58aaf helps but
didn't fix detection for good.
2014-11-25 23:36:37 +00:00
Petr Ledvina
57c308538f Whitespace cleanup
Misplaced whitespace fixed, no functional changes
2014-11-24 21:39:25 +01:00
Dominic Clifton
a71ef8fb80 Merge pull request #182 from ledvinap/fix-smartport
Fixed SmartPort units for heading; small improvements
2014-11-24 14:52:52 +00:00
Petr Ledvina
648e81d996 HOTT - fixed wrong operation order
Multiply first to prevent rounding error.
2014-11-24 15:39:49 +01:00
Petr Ledvina
21792048ae Fixed SmartPort units for heading; small improvements
heading units checked with Opentx on Taranis ...
GPS speed is probably in knots, needs verification
2014-11-24 15:15:54 +01:00
Dominic Clifton
386c14c9e7 Update LedStrip warnings indication so it's clearer what warnings are
active.

This also has better performance, warning colors are only calculated
once per led strip update cycle.
2014-11-22 18:18:50 +00:00
Dominic Clifton
4db1d58aaf Update MPU6000 SPI detection code - sending a reset is required before
it's reliably able to be detected.
2014-11-22 12:56:03 +00:00
Dominic Clifton
c5139fb9dc CC3D - fix cc3d build.
SERIAL_PORT_USART2 is undefined for CC3D.
2014-11-22 01:16:07 +00:00
Dominic Clifton
249b09abce Merge pull request #159 from Pierre-A/cc3d-updates-pa
RSSI monitoring on CC3D
2014-11-22 01:11:30 +00:00
Dominic Clifton
c84bd7f19b Merge pull request #176 from ledvinap/fix-gps-tx
Enable TX when entering gpspassthrough
2014-11-21 23:30:09 +00:00
Dominic Clifton
365f3eebed Merge pull request #178 from ledvinap/fix-serial-feature
Fix feature check (all features must be set to use port)
2014-11-21 23:25:03 +00:00
Dominic Clifton
56a1458eed Merge pull request #170 from Pierre-A/cc3d-updates-pa2
Correction of typo and consequences
2014-11-21 23:23:48 +00:00
Petr Ledvina
4a23814532 Fix feature check (all features must be set to use port) 2014-11-20 14:58:54 +01:00
Petr Ledvina
4157cf5315 Fix double constatns
some constants were double, M_PI was sometimes inherided as double

added -Wdouble-promotion to makefile warnings
2014-11-20 08:31:35 +01:00
Petr Ledvina
31c8c21a79 Enable TX when entering gpspassthrough 2014-11-19 17:46:31 +01:00
Petr Ledvina
559edb4254 atomic.h - Bump version check number
Version for warning is increased to gcc > 4.x, used approach should be safe in gcc 4.x (and most probably also in future versions)
2014-11-18 13:57:12 +01:00
Petr Ledvina
cb98cb050d Fix misplaced end-of-line in atomic.h 2014-11-15 19:38:21 +01:00
Pierre-A
e99fbe863f Correction of typo and consequences 2014-11-15 11:37:39 +01:00
Dominic Clifton
c364d971a0 Some OLED displays do not respond on the first initialisation so refresh
the display when the page changes in the hopes the hardware responds.
This also allows the user to power off/on the display or connect it
while powered.
2014-11-14 00:48:33 +00:00
Dominic Clifton
1c22a94f92 Adding attomic barrier warning fix and documentation on how to verify
it.  See #167
2014-11-13 22:03:16 +00:00
Dominic Clifton
daef382dd9 Show rates on OLED rate display page.
Other minor display cleanups and improvements.
2014-11-13 01:51:36 +00:00
Dominic Clifton
f5a0f9d3b2 Update RX & Battery OLED pages.
RX page shows up to 14 channels.
Battery page shows current and capacity information.
2014-11-13 01:29:07 +00:00