1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00
Open Source Flight Controller Firmware
Find a file
Dominic Clifton 90d36b6869 Cleanup sensor auto detection code.
Decoupled mpu6050 acc and gyro detection code.

This commit cleans up the #ifdef/#ifndef code which, due to the amount
of targets and variants, was starting to get a bit out of hand.

Now each acc & gyro is assumed to be used unless the respective
USE_ACC_* and USE_GYRO_* is #undef'd at the top of the file by a
particular target.

This commit also cleans up the mess of re-running all the mpu6050
detection code twice.  Now the acc specific communication code is only
run once and only code that is actually needed to be run twice is run
twice, and the rest of the code is now only used once.  This will
improve board startup time, albeit negligibly.

Sensor alignment is only known for the NAZE target so now the alignment
will be ALIGN_DEFAULT for all targets other than NAZE unless they are
known.

Finally, in the Makefile a file was included twice in the source list
for the STM32F3DISCOVERY target and now additional sensors are supported
for users that may want to try them on that board.
2014-05-07 23:20:24 +01:00
lib Adding the first unit test to verify battery voltage calculations based 2014-05-05 15:29:23 +01:00
obj latest binaries 2014-05-06 14:15:14 +01:00
src Cleanup sensor auto detection code. 2014-05-07 23:20:24 +01:00
support Enable automatic reset after (re)flashing, closes issue #19 2013-11-01 22:47:25 +00:00
targets/ChebuzzF3 Update notes.txt 2014-05-07 22:17:55 +01:00
test Renaming angleInclination_t to rollAndPitchInclination. renamed angle 2014-05-05 17:45:46 +01:00
.gitignore Updating git ignore list to ignore some common files. 2014-04-08 01:20:44 +01:00
baseflight.uvproj adding rxmsp to uvision project 2014-05-01 12:37:20 +09:00
JLinkSettings.ini imported STM32 multiwii port into baseflight dir 2012-02-16 09:39:58 +00:00
Makefile Cleanup sensor auto detection code. 2014-05-07 23:20:24 +01:00
README.md Fix typo in readme. 2014-04-21 20:50:09 +01:00
startup_stm32f30x_md_gcc.s First commit of port to STM32F3DISCOVERY board. 2014-04-25 01:09:19 +01:00
stm32_flash.ld format 2014-04-16 15:06:37 +00:00

Cleanflight

Clean-code version of baseflight flight-controller - flight controllers are used to fly multi-rotor craft and fixed wing craft.

This fork differs from baseflight in that it attempts to use modern software development practices which result in:

  1. greater reliability through code robustness.
  2. easier maintainance through code cleanliness.
  3. easier to develop new features.
  4. easier to re-use code though code de-coupling and modularisation.

The MultiWii software, from which baseflight originated, violates many good software development best-practices. Hopefully this fork will go some way to address them. If you see any bad code in this fork please immediately raise an issue so it can be fixed, or better yet submit a pull request.

Contributing

Before making any contributions, take a note of the https://github.com/multiwii/baseflight/wiki/CodingStyle

For this fork it is also advised to read about clean code, here are some useful links: