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

18780 commits

Author SHA1 Message Date
treymarc
e39636cc00 format 2014-04-17 20:45:09 +00:00
treymarc
5468a9cfa0 correct lpf for d term
renormalize vect (is that required or the real cause of the gyro
headfree?)
2014-04-17 20:25:08 +00:00
Dominic Clifton
41b5a01958 Decouple board alignment code. 2014-04-17 19:31:01 +01:00
Dominic Clifton
59a5846146 Removing unused define for MAX_SERIAL_PORTS. 2014-04-17 17:51:14 +01:00
Dominic Clifton
fcc898c3f8 Removing unused define for a uart buffer size. 2014-04-17 17:50:19 +01:00
Dominic Clifton
7e45a0c7e6 Fixing FY90Q build. Cleanup of printf support and initialisation.
Remove duplicate inclusion of math.h in board.h.
2014-04-17 17:37:43 +01:00
Dominic Clifton
89612bd881 De-couple battery code.
This fixes a bug where buzzerFreq could be uninitialised before it's
use.
This improves performance by only checking whether to sound the battery
alarm after the battery voltage has been recalculated.
There were unused battery beep codes which have been deleted to save
code size.
Configuration structure extracted from mw.h into config.h.
Moved mixer configuration structures into flight_mixer.h.
Added a build_config.c in order to decouple pwm_common.h from config.h.
Finally, battery configuration values now live in a batteryConfig
structure which means that battery.c does not depend on config.h and all
of it's dependencies.

Fixed the use of plurals on defines that were not collection objects.
PIDITEMS and CHECKBOXITEMS are now PID_ITEM_COUNT and
CHECKBOX_ITEM_COUNT.
2014-04-17 16:36:01 +01:00
Dominic Clifton
64d16e1987 Relocated used code from board.h into appropriate headers, deleted
unused code.
2014-04-17 15:02:41 +01:00
Dominic Clifton
3ef05c0eb9 Update timer drivers so they do not include "board.h". It is now
clear what all timer drivers need to compile and what was
unnecessarily included before.
2014-04-17 14:45:05 +01:00
Dominic Clifton
45ce1862cd Update sonar drivers so they do not include "board.h". It is now
clear what all sonar drivers need to compile and what was
unnecessarily included before.
2014-04-17 14:43:57 +01:00
Dominic Clifton
2f07f52cf7 Update system/beeper drivers so they do not include "board.h". It is now
clear what all system/beeper drivers need to compile and what was
unnecessarily included before.

Extracted system beeper code to a separate file.
2014-04-17 14:41:17 +01:00
Dominic Clifton
1e9186d3a1 Update serial drivers so they do not include "board.h". It is now clear
what all serial drivers need to compile and what was unnecessarily
included before.
2014-04-17 14:27:30 +01:00
Dominic Clifton
86e4e1c98f Update pwm drivers so they do not include "board.h". It is now clear
what all pwm drivers need to compile and what was unnecessarily included
before.
2014-04-17 14:21:56 +01:00
Dominic Clifton
38ec0b6080 Update gpio/ledring drivers so they do not include "board.h". It is now
clear what all gpio/ledring drivers need to compile and what was
unnecessarily included before.
 
In attempting this it was clear that ledring had a dependency on the
multiwii code, this was removed by passing the led status update method
the values it needs.

It also turned out that the ROLL/PITCH defines were coming from
rc_alias_e and much unrelated code is coupled to these defines.  This
commit also includes some cleanups relating to that problem.
2014-04-17 13:56:23 +01:00
Dominic Clifton
b6232573c0 Update compass drivers so they do not include "board.h". It is now clear
what all compass drivers need to compile and what was unnecessarily
included before.

LED macros now moved into light_led.h
2014-04-17 12:33:59 +01:00
Dominic Clifton
1205765b4c Update i2c/spi drivers so they do not include "board.h". It is now clear
what all i2c/spi drivers need to compile and what was unnecessarily
included
before.

Renamed printf_config.h into build_config.h, move SOFT_I2C toggle switch
to build_config.h.
2014-04-17 12:12:08 +01:00
Dominic Clifton
ff0f4e66a9 Update altimeter drivers so they do not include "board.h". It is now
clear what all altimeter drivers need to compile and what was
unnecessarily included before.

Moved some platform specific configuration from board.h into platform.h
2014-04-17 11:56:03 +01:00
treymarc
f6024c5406 update header 2014-04-16 22:51:03 +00:00
treymarc
6330456296 remove unnecessary var, inline accsum_reset, lrintf , rename smallAngle 2014-04-16 22:48:37 +00:00
Dominic Clifton
001de4cdf3 Move FY90q acc/gyro code to accgyro_fy90q.c. Update ADC drivers so they
do not include "board.h". It is now clear what all ADC drivers need to
compile and what was unnecessarily included before.

Note: FY90Q make target now compiles successfully, it was broken for
various reasons before.
2014-04-16 18:58:20 +01:00
Dominic Clifton
5442f8ea41 Fix typo in filename. 2014-04-16 17:49:51 +01:00
Dominic Clifton
3c1ba729b9 Merge remote-tracking branch 'multiwii/master' into
project-structure-alternative

Conflicts:
	src/sensors.c
2014-04-16 17:49:10 +01:00
Dominic Clifton
f75f7a7e17 Updating accgyro files so they do not include "board.h". It is now
clear what all accgyro drivers need to compile and what was
unnecessarily included before.
2014-04-16 17:33:47 +01:00
dongie
cd08d6d782 Merge pull request #84 from treymarc/patch-1
Update imu.c
2014-04-17 01:23:23 +09:00
dongie
d687afd109 Merge pull request #83 from treymarc/format2
format
2014-04-17 01:21:13 +09:00
dongie
c3235e3fed Merge pull request #81 from treymarc/type_bool
type bool and inflight acc calib
2014-04-17 01:19:36 +09:00
Trey Marc
038a1226ec Update imu.c
speed up troll angle
2014-04-16 17:20:40 +02:00
treymarc
f51174400d format 2014-04-16 15:06:37 +00:00
Trey Marc
74b8201f8d Update sensors.c 2014-04-16 16:58:49 +02:00
treymarc
e276665b32 type bool and inflight acc calib 2014-04-16 14:39:34 +00:00
dongie
45b74bf0b6 Merge pull request #80 from luggi/EstNfix
keep EstN from diverging to zero
2014-04-16 22:48:48 +09:00
luggi
de9f1095fb keep EstN from diverging to zero 2014-04-16 15:44:46 +02:00
Johannes Kasberger
385c4387b7 changed feature to set variable 2014-04-15 14:26:02 +02:00
Johannes Kasberger
5377b39f36 removed feature from driver 2014-04-15 09:19:19 +02:00
Johannes Kasberger
6716ecfe7e added overclock feature 2014-04-15 08:33:37 +02:00
Dominic Clifton
c493a1579c Merge remote-tracking branch 'multiwii/master'
Conflicts:
	obj/baseflight.hex
	src/sensors.c
2014-04-14 16:18:44 +01:00
dongie
03fab3f915 Merge pull request #77 from treymarc/throttle_correction_noise
smother curve, remove very small angle from correction
2014-04-13 02:34:06 +09:00
treymarc
0286b13768 adjust default value to work with new alt hold or fpv 2014-04-12 17:26:59 +00:00
treymarc
39f3874661 faster cast with lrintf 2014-04-12 09:48:32 +00:00
treymarc
7fca3d17a2 smother curve, remove very small angle from correction 2014-04-12 09:29:36 +00:00
dongie
e6e25a9e31 building hex for current changes 2014-04-12 12:31:57 +09:00
dongie
2ecde1876d Merge pull request #75 from treymarc/althold
throtlle angle correction with propper small angle calculation
2014-04-12 12:17:29 +09:00
treymarc
4a000c98ed throtlle angle correction with propper small angle calculation :
correction angle is configurabe (from 0.1° to 90°)
correction value var renamed in cli
correction is disable when vertical or inverted
2014-04-12 03:15:17 +00:00
dongie
01c63d0dd2 Merge pull request #73 from treymarc/taskorder
taskorder
2014-04-12 12:00:25 +09:00
dongie
11cd1ed39b Merge pull request #72 from treymarc/spacing
spacing
2014-04-12 11:59:53 +09:00
treymarc
7d2e2c22aa taskorder 2014-04-12 02:55:21 +00:00
treymarc
cabf7eaac3 spacing 2014-04-12 02:51:42 +00:00
dongie
aa253a387d Create README.md 2014-04-11 07:18:21 +09:00
dongie
1c796b44f2 Merge pull request #67 from multiwii/gps_noirq
gps_noirq experiment was successful
2014-04-10 12:00:39 +09:00
dongie
fafc59b3a5 adding some bounds checking in nmea parser (which sucks and should just go away anyway) 2014-04-10 10:57:47 +09:00