1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00
Commit graph

120 commits

Author SHA1 Message Date
treymarc
ae0f842266 rename/removed global var sonarAngle to tiltAngle , fix spaces/lines
Conflicts:

	src/imu.c
	src/main/drivers/sonar_hcsr04.c
2014-07-15 14:12:28 +01:00
treymarc
5253064b46 sonar althold
Conflicts:

	src/imu.c
2014-07-14 14:17:04 +01:00
Dominic Clifton
af87cff18f Fix debug output of alt-hold data, accSum was reset prior to output. 2014-07-02 18:51:27 +01:00
Dominic Clifton
668772f1f3 Explicitly use float literals in velocity calculation. 2014-06-24 00:30:58 +01:00
Dominic Clifton
f127847bf2 Some baro cleanups to avoid using or exposing incomplete and
uninitialised baro data.

imu code size reduction (treym)
2014-06-24 00:14:30 +01:00
Dominic Clifton
e30a373c92 Disable ADC debug output and enable AltHold debugging output. 2014-06-23 22:06:17 +01:00
Dominic Clifton
91bfdf05ca Move mw loop() code into separate methods. Cleanup related code.
If a given feature or mode is off the next task is not processed in the
current loop but will be processed during the next loop iteration for
simplification, this allowed the cleanup of return values in other code.
2014-06-23 00:47:45 +01:00
Dominic Clifton
f96bdf0965 remove unnecessary variable. unroll loop for better code size. 2014-06-18 23:44:35 +01:00
Dominic Clifton
0b9c326ffe Complete decoupling of imu code from config.
The giant list of unrelated includes is now gone and the dependencies
are now clear.
2014-06-07 02:44:06 +01:00
Dominic Clifton
2bbbf9937d Decoupling imu from config - acc_unarmedcal. 2014-06-07 02:27:07 +01:00
Dominic Clifton
3643c08475 Decoupling imu from config - acc deadband. 2014-06-06 21:37:41 +01:00
Dominic Clifton
51eee3d62c Decoupling imu from config - barometer config. 2014-06-06 20:59:59 +01:00
Dominic Clifton
82bb6b7982 Decoupling imu from config - pid profile. 2014-06-06 20:45:59 +01:00
Dominic Clifton
da73be1b2d Start decoupling imu from config. 2014-06-06 20:40:00 +01:00
Dominic Clifton
ab0296c991 Fix bug that prevented throttle angle correction working correctly when
using different values in different.

The cause was the IMU init code which triggered calculation was never
called after switching profiles - it couldn't be called twice because it
also initialised the compass.

The solution was to decouple compass initialisation from IMU
initialisation and extract the code to recalculate throttle angle scale
to a new method.
2014-06-06 20:39:59 +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
18046013a4 Decouple sticks processing code from main mw loops.
Decouple led ring driver from non-driver code.
2014-06-01 18:36:33 +01:00
Dominic Clifton
4b437e8e08 Relocate battery code to sensors directory. 2014-06-01 16:58:16 +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/flight_imu.c (Browse further)