Commit Graph

562 Commits

Author SHA1 Message Date
Sami Korhonen 1f8805cdf0 squash betaflightF7
Parts and driver boost from @npsm
2016-10-21 08:51:02 +03:00
Martin Budden e21e1f50aa Merge pull request #826 from digitalentity/betaflight-mavlink-telem
MAVLink telemetry support
2016-10-20 07:59:02 +01:00
borisbstyle f698f99198 Merge pull request #1282 from blckmn/digital_motors
DSHOT600 & 150 -> digital one shot motor (ESC) protocol
2016-10-19 00:24:39 +02:00
borisbstyle 5e3c974d64 Remove Legacy Pid Controller 2016-10-18 16:49:16 +02:00
blckmn 9f742b017d OMNIBUS Support, and updates to filenames etc for cleanliness 2016-10-18 20:27:45 +11:00
Martin Budden a771280b50 Moved config.c from config directory to fc directory 2016-10-18 08:57:39 +01:00
Konstantin Sharlaimov (DigitalEntity) 09140cfdef Move MAVLink to lib/main/MAVLink; Post-rebase fixups 2016-10-17 17:24:42 +10:00
Konstantin (DigitalEntity) Sharlaimov ff19b5bcff MAVLink telemetry support 2016-10-17 17:17:25 +10:00
Anders Hoglund 15d9eaffd4 Added junittest XML test results. 2016-10-16 17:48:31 +02:00
Martin Budden 5f791cef77 Renamed some MSP related files 2016-10-16 11:13:38 +01:00
Martin Budden 4608a5d061 Moved softserial out of .mk files into common 2016-10-13 17:31:58 +01:00
Martin Budden e954f53555 Tidied .mk files 2016-10-13 11:35:48 +01:00
blckmn 46a6e560f1 Initial IO remapping capability 2016-10-13 11:08:39 +11:00
Martin Budden 2224a4b4e4 Copied parameter group code over from Cleanflight 2016-10-11 20:52:15 +01:00
Martin Budden 0ccb7040f0 Reorganisation of tasks into fc_tasks.c 2016-10-09 17:43:29 +01:00
J Blackman c407554db7 Merge pull request #1176 from martinbudden/bf_spi_receivers
Add support for receivers connected over SPI
2016-10-02 19:01:34 +11:00
Martin Budden 551bbe1d1a Initial commit of SPI receiver code. 2016-10-02 08:45:42 +01:00
Martin Budden 5fec66b639 Split off serial parts from MSP 2016-10-02 01:01:50 +01:00
Martin Budden bcf8fc9c1e Splitting MSP into serial and MSP parts- stage1 2016-10-01 23:28:20 +01:00
Martin Budden 32fd3eca43 Moved linker scripts into their own directory 2016-09-27 08:25:02 +01:00
nathan 351a921bfb use the toolchain on the path before asking to download a new one 2016-09-13 20:14:55 -07:00
borisbstyle ac4732cd03 Merge pull request #979 from martinbudden/bf_features
Split features into a separate module
2016-09-14 00:02:48 +02:00
borisbstyle b120130939 Merge pull request #1141 from martinbudden/bf_streambuf
Add streambuf code from Cleanflight
2016-09-14 00:02:18 +02:00
Martin Budden 977a64d4a5 Added streambuf to makefile 2016-09-10 16:37:05 +01:00
Martin Budden a257210b56 Split features into a separate module 2016-09-04 18:48:58 +01:00
nathan c50e48736f include the make arm_sdk_install target, for easy building 2016-09-02 19:56:15 -07:00
borisbstyle 534b77554b Merge branch 'master' into development 2016-08-15 22:00:22 +02:00
Anders Höglund 138c302e80 Merge pull request #976 from nathantsoi/feature/verboseable-makefile
option to set `V=1 make ...` for verbose make output
2016-08-13 20:43:39 +02:00
nathan ee42efc246 update makefile verbose option per https://github.com/betaflight/betaflight/pull/976 and @AndersHoglund 2016-08-12 21:04:22 -07:00
Martin Budden 490f11c9ae Split eeprom code into separate module 2016-08-11 09:54:56 +01:00
nathan 6618f1992c option to set `V=1 make ...` for verbose make output 2016-08-11 01:52:20 -07:00
Anders Hoglund dfee308c35 Redo PR 945. Lost in rebasing/merging to dev. 2016-08-10 13:25:37 +02:00
Konstantin Sharlaimov (DigitalEntity) 5a493ff6a0 AIRHEROF3 from MultiWiiCopter basic support
RC4 fix, LEDSTRIP enable

OUT2 Fix

Features

Alignment fix

Add BMP280 baro on SPI bus
2016-08-10 14:34:25 +10:00
Anders Hoglund f6cc56514a Corrected the usage of TARGET_FLAGS in main Makefile. 2016-08-08 11:13:50 +02:00
Martin Budden 541f4d4018 Directory rearrangement to reflect cleanflight changes 2016-08-07 13:44:00 +01:00
Martin Budden 2b05cbf916 Put each PID in its own .c file 2016-08-07 01:17:45 +02:00
Anders Hoglund a0d7d92883 Fix for ccache detection problem on cygwin. 2016-07-15 14:05:38 +01:00
Anders Hoglund 4d69682c96 Use ccache if it is installed on the system. 2016-07-14 10:33:05 +01:00
Anders Hoglund d0f060175c Ignore linker wchar size warnings. 2016-07-01 12:10:45 +02:00
Michael Keller c7b8d94c7b Merge branch 'development' of https://github.com/borisbstyle/betaflight into build_parameterless_parallel 2016-06-28 07:30:14 +12:00
Anders Hoglund afda764e45 Tidy up the Makefile clean rules, same way main build/all rules was made. Single target clean now available as make goals. 2016-06-27 18:38:43 +02:00
mikeller 6f06be77f8 Changed 'Makefile' to enable 'make' (without parameters to make use of multicore CPUs. 2016-06-24 21:06:40 +12:00
Martin Budden f0f2941bb6 Moved scheduler into separate directory. Moved task declarations into header file. 2016-06-15 07:35:17 +01:00
Anders Hoglund ea3856f8a8 Changed recursive all goal for proper return values. Failures had return value 0 (ok). Now also possible to use target name as make goal. Updated help texts to match this change. 2016-06-14 12:28:11 +02:00
nathan be652b8446 \t -> ____ 2016-06-13 21:36:22 -07:00
blckmn 1afe6b65ca Removed cleaning from all goal. 2016-06-14 11:40:46 +10:00
blckmn 80f1566af0 Added dynamic support for OPBL targets, and also alternate target names that are based on an existing target. 2016-06-14 11:26:09 +10:00
blckmn 6a7976d258 Enforced the sorting of the valid targets (for use in make targets) 2016-06-14 09:07:02 +10:00
blckmn 4e12344aa6 Updated all_targets to build both binary and hex
Added clean_all_targets goal
Removed ## above the line
2016-06-14 09:07:01 +10:00
blckmn e17f5a4ea3 Comment cleaning 2016-06-14 09:07:00 +10:00
blckmn 2335fc4b92 Added scan for VALID_TARGETS so that the all_targets can work? 2016-06-14 09:06:59 +10:00
blckmn addfbe4ffe Finishing off Makefile changes removing target specifics 2016-06-14 09:06:58 +10:00
blckmn 6234652e7d Fixed VCP_TARGETS 2016-06-14 09:06:57 +10:00
blckmn 1404253c97 Simplified EUSTM32F103RC and PORT103R in Makefile (move to target specific mk file) 2016-06-14 09:06:56 +10:00
blckmn b520de7158 Allow for included target.mk files.
Saves modifying Makefile with new targets that are similar to others.
2016-06-14 09:06:55 +10:00
4712 28037abd04 Added REVO_OPBL to makefile 2016-06-13 21:31:29 +02:00
mikeller ce8adfb48a Use $(MAKE) instead of make in Makefile. 2016-06-13 23:14:10 +12:00
Michael Keller 6da1b2e47a Added targets for listing and building all valid target platforms to Makefile. 2016-06-13 10:12:21 +12:00
Martin Budden ccac8c30d6 KISSFC target 2016-06-12 22:04:02 +01:00
Martin Budden e0937640a1 Further tidying of makefile 2016-06-12 17:31:46 +01:00
Martin Budden 7963a537f9 Fixed up whitespace in Makefile 2016-06-12 08:26:52 +01:00
kc10kevin 571db1e13e FURY Target Changes 2016-06-11 07:06:54 -05:00
Martin Budden 0bc9877e0a Moved common #defines to common.h. Fixed up some targets. 2016-06-09 22:03:57 +01:00
blckmn 67b1b20c59 Last of the STM32F3 system files removed from target directories and merge of the FURYF3 target @kc10kevin 2016-06-09 22:20:00 +10:00
blckmn 47ce9bb799 STM32F4: Adjusted for compatibility with @martinbudden common.h PR 2016-06-09 06:41:55 +10:00
blckmn 6ebb1f0b34 STM32F3: Supporting new platform directory 2016-06-08 19:52:36 +10:00
blckmn fcbccf7017 STM32F4: Makefile updates as per @martinbudden 2016-06-08 10:20:26 +10:00
blckmn 3582e459a4 STM32F4: Platform defines and common system file placement 2016-06-08 06:53:40 +10:00
blckmn 6bf35e09ce STM32F4: Targets 2016-06-08 05:38:55 +10:00
blckmn 49c0b2b5bf STM32F4: Config, Startup and Makefile 2016-06-08 05:37:43 +10:00
Michael Jakob 7db5445bf7 *** IO Driver updates ***
LED driver update
Buzzer driver update
Inverter driver update
Spektrum bind driver update
2016-06-03 20:21:10 +10:00
Petr Ledvina 9e30e69cee exti_io from Peter Ledvina 2016-06-03 10:44:06 +02:00
sblakemore ddee075189 Add VTX support to SINGULARITY 2016-05-31 10:51:00 +10:00
sblakemore 0a3bf6e991 Add SINGULARITY target 2016-05-31 10:50:56 +10:00
YANN OEFFNER 22c1aa10ad Merge branch 'betaflight' of https://github.com/borisbstyle/betaflight into betaflight 2016-05-10 12:40:20 +02:00
YANN OEFFNER 8244990c86 Clean IRCFUSIONF3 target 2016-05-10 12:28:13 +02:00
Martin Budden 876fe536e6 Fixed CC3D related build flags. 2016-05-05 15:19:50 +01:00
nathan c89926e9cc duplicate file 2016-04-30 12:35:09 -07:00
nathan 46a49f6147 hardfault handler w/ debugging info and an automatic breakpoint 2016-04-30 12:16:02 -07:00
Anders Hoglund 5782da9626 top_makefile allways builds both .hex and .bin formats. MAin Makefile llways cleans up both fileformat too. 2016-04-26 18:58:05 +02:00
borisbstyle 056f7e30a7 Merge pull request #365 from larryho5/betaflight_22042016_with_MPU9250
- Enable MPU9250 hardware in Colibri Race
2016-04-22 12:09:25 +02:00
Larry (TBS) 1a5a49f9ec - Enable MPU9250 hardware in Colibri Race 2016-04-22 17:03:47 +08:00
Larry (TBS) 587ffcfbc0 - Enable MPU6000 2016-04-16 18:28:18 +08:00
DTF UHF 9386841abc Initial commit of DTFc.
Adds support for Invensense ICM-20608-G and BMP280 SPI mode.
2016-04-08 16:35:03 -04:00
4712 5a1cb21ad5 4way-if cleanup
removed superseded 1wire-uart and 1wire-vcp
2016-04-08 18:47:18 +02:00
borisbstyle 3cad4793e9 SPRACINGF3EVO initial support 2016-04-08 11:18:07 +02:00
rigoneri d6550827d0 Fixed issue that was causing the SPRacingF3Mini target not to build when transponder code was uncommented out. Fixes #179 2016-04-06 22:10:58 -05:00
borisbstyle 26af730510 Revert "- MultiFlasher support for SimonK escs"
This reverts commit 0cae020f76.
2016-04-04 01:42:13 +02:00
borisbstyle 272932a93f Revert "Add escpassthrough to all targets"
This reverts commit 95a464b1ad.
2016-04-04 01:37:20 +02:00
4712 d32205d856 4way-interface 2016-04-02 17:07:12 +02:00
4712 85dc6b59d2 1wire-pass-through-vcp
also changed uart 1wire-pass-through to avoid need of FC reboot after
exit.
2016-04-01 01:58:18 +02:00
borisbstyle 95a464b1ad Add escpassthrough to all targets 2016-03-30 17:13:59 +02:00
Larry (TBS) 0cae020f76 - MultiFlasher support for SimonK escs 2016-03-29 15:39:19 +08:00
borisbstyle 7386d88d0e Merge corrections 2016-03-01 14:55:04 +01:00
borisbstyle 4eb6456ea1 Revert "Remove GTUNE"
This reverts commit a16ac7fbe7.
2016-02-21 14:06:10 +01:00
KiteAnton a16ac7fbe7 Remove GTUNE 2016-02-20 14:20:31 +01:00
borisbstyle 3a156f98ab Fix LED_STRIP feature // Add DMA drivers // UART fixes 2016-02-10 22:36:05 +01:00
borisbstyle 83d8a8441c Remove lowpass.c // replace by pt1
unittests fix
2016-02-10 09:31:55 +01:00
Thomas Miric bf8c3c88bc Add Jeti Ex Bus receiver with telemetry capabilities 2016-02-08 23:26:28 +01:00
borisbstyle 7ee65eac8f Fix Race Targets 2016-02-08 14:48:13 +01:00
borisbstyle 5174e96549 Revert "Replace old lowpass with BiQuad for Vbat and Servo"
This reverts commit 27772ba56a.
2016-02-04 00:45:09 +01:00
borisbstyle 27772ba56a Replace old lowpass with BiQuad for Vbat and Servo 2016-02-03 14:33:43 +01:00
borisbstyle 403812c45f Fix Ledstrip for LUX_RACE target 2016-02-03 12:06:23 +01:00
borisbstyle 63dcc3dc1d Add LTM Telemetry // Remove MSP telemetry 2016-02-03 11:14:35 +01:00
borisbstyle 927118d376 Fix broken targets 2016-02-03 09:46:39 +01:00
borisbstyle 220850e429 Fix Spracing Mini merge 2016-02-02 23:36:43 +01:00
Dominic Clifton a259a49db1 SPRacingF3Mini - Reduce current draw when using transponder while
connected via USB cable.
2016-02-02 23:36:43 +01:00
Nicholas Sherlock 96182c7c07 Working on using AFATFS from Blackbox 2016-02-02 23:36:32 +01:00
Nicholas Sherlock 84d3cc6175 Basic SDCard block read / write (minimal timeout/error handling) 2016-02-02 23:36:32 +01:00
Dominic Clifton 52d97869b8 SPRacingF3Mini - Initial support for new target. 2016-02-02 23:36:28 +01:00
Dominic Clifton 4b955f09da SDCard - Basic functionality.
Detect card, query capacity, read data.
2016-02-02 23:36:26 +01:00
Michael Hope 75c86825f7 drivers: add a buffering writer.
This wraps around the serial API and buffers a configurable number of
characters before flushing.

Signed-off-by: Michael Hope <mlhx@google.com>
2016-02-02 23:36:24 +01:00
Dominic Clifton 75cd1d88eb CHEBUZZF3 - Enable I2C display support. 2016-02-02 23:36:23 +01:00
Dominic Clifton 85f7b10e24 Fix some F3 target compilation issues.
Remove LED_STRIP support from AlienWiiF3 target.  It was using sparky
source but Sparky has led strip signal on a PWM motor output due to
hardware mappings and that doesn't make sense for the AlienWiiF3 target
which is has brushed motor circuitry.
2016-02-02 23:36:22 +01:00
Anders Hoglund 453bdf77ef Firmware version added to build artifacts. 2016-02-02 23:31:56 +01:00
Michael Jakob 7634e4c635 AlienFligth F3 V2 support
Updated SPI driver (SPI3 on F3 targets)
AK8963 Mag support (part of MPU9250)
MPU9250 SPI support via MPU6500 driver
Updated LED driver for alternative LED sets
Enable gyro intterupt for AlienFlight F3 targets
Update AlienWii/AlienFlight documentation
Rename AlienWii to AlienFlight
2016-02-02 23:31:55 +01:00
cmenard d174314692 Add Lux target 2016-02-02 23:03:08 +01:00
nathan d8ee7b68c1 bmp085 and bmp180 on spracingf3 and derivatives 2016-01-17 23:29:50 -08:00
digitalentity f269f653f5 Implemented support for FlySky i-Bus serial receiver. 2016-01-13 16:54:29 +01:00
Konstantin Sharlaimov (DigitalEntity) fa49931b43 Improved scheduling. Betaflight Port digitalentity/cf-scheduler
Disallow arming if system load > 100 (waiting task count > 1)

Dont show inactive tasks in CLI

Realtime priority task and guard interval implementation

Dynamic guard interval. Bugfix for realtime scheduling hickups

Optimisations

Compile out CLI command help and CLI tasks command for CJMCU

Naming fixes // re-Add Gyro Sync // Fix port issues
2015-12-23 00:05:34 +01:00
borisbstyle 8ecd05b911 Configurable Beeper PIN6 CC3D // Less CC3D targets 2015-12-23 00:05:33 +01:00
Larry 8e2b485eac Add BST support for TBS CorePro to betaflight
Conflicts:
	Makefile
	src/main/drivers/bus_bst.h
	src/main/drivers/bus_bst_stm32f30x.c
	src/main/io/i2c_bst.c
	src/main/io/i2c_bst.h
	src/main/main.c
	src/main/mw.c
	src/main/target/COLIBRI_RACE/target.h

corrections
2015-12-23 00:05:32 +01:00
borisbstyle b0d3db2456 Afromini NAZE Alias target // rev5 override 2015-12-06 23:58:23 +01:00
borisbstyle f68add5d4d Add more drivers to Motolab 2015-12-02 22:05:11 +01:00
Anders Hoglund 4a65eadb52 new top_makefile with real make targets. All CC3D variants now with their own names, no more clashes and confusion. MAkefile still backwards compatible. 2015-11-25 01:18:10 +01:00
borisbstyle 6da7ced9be BST Port 2015-11-20 17:39:24 +01:00
YANN OEFFNER a2b795580b vOrtex 250 change
- vOrtex 250 configuration added (new target for 250 IRCFUSIONF3)
- fix for barometer on fusion gen 2
- added betaflight identifier (BTLF)
2015-10-29 16:27:28 +01:00
Anders Hoglund af5f29afc9 Separate CC3D bin/hex (opbl/non-opbl) in the clean goals. 2015-10-23 18:48:43 +02:00
borisbstyle cb7028b7f1 Merge remote-tracking branch 'prodrone/improved_rx_failsafe_detection' into betaflight
Conflicts:
	src/main/drivers/accgyro_mpu6500.c
	src/main/drivers/accgyro_spi_mpu6000.c
	src/main/drivers/system.c
	src/main/mw.c
	src/main/rx/rx.c
	src/main/sensors/initialisation.c
2015-10-21 09:21:33 +02:00
Read Error f70958b6d3 COLIBRI RACE gryoDetection fix. 2015-10-17 08:32:30 -04:00
borisbstyle eb138dc601 COLIBRI_RACE MPU_DATA_READY Handler
Colibri Race MPU INT support

revert some things

revert more

Update Colibri Race Binaries

Update target.h Colibri_race

Update Target.h
2015-10-16 12:41:49 +02:00
borisbstyle 05dec6c21e Revert "Remove OpenPilot bootloader support."
This reverts commit 0150abf1bc.

Conflicts:
	src/main/target/CC3D/target.h
2015-10-15 09:59:29 +02:00
cmenard 23c534823e RMDO: Make firmware fit all variants 2015-10-13 00:45:28 +02:00
cmenard e2ca908508 RMDO: Fix build in BetaFlight Bee 2015-10-13 00:45:27 +02:00
cmenard 84523f4ea6 Fix RMDO target build 2015-10-13 00:45:25 +02:00
borisbstyle 4b3ba927e9 Merge branch 'master' into betaflight
Conflicts:
	src/main/blackbox/blackbox_io.c
	src/main/drivers/serial_usb_vcp.c
	src/main/flight/imu.c
	src/main/mw.c
	src/main/target/CC3D/target.h
2015-10-12 23:53:43 +02:00
Dominic Clifton 0150abf1bc Remove OpenPilot bootloader support.
This can be added back at a later date if required if enough code-size
savings can be found, for instance, the removal of the CLI.
2015-10-12 20:44:51 +01:00
borisbstyle fb0b36158b Fix MOTOLAB Target
Add Gtune to Motolab
2015-10-07 17:34:28 +02:00
borisbstyle 12c9f65f43 Merge branch 'master' into betaflight
Conflicts:
	Makefile
	docs/Cli.md
	src/main/config/config.c
	src/main/drivers/accgyro_mpu3050.c
	src/main/drivers/accgyro_mpu6050.c
	src/main/drivers/accgyro_mpu6050.h
	src/main/drivers/accgyro_spi_mpu6000.c
	src/main/drivers/accgyro_spi_mpu6000.h
	src/main/drivers/accgyro_spi_mpu6500.c
	src/main/drivers/accgyro_spi_mpu6500.h
	src/main/drivers/barometer_bmp280.c
	src/main/drivers/sensor.h
	src/main/flight/pid.c
	src/main/mw.c
	src/main/rx/rx.c
	src/main/sensors/initialisation.c
	src/main/target/CC3D/target.h
2015-10-07 17:12:54 +02:00
Dominic Clifton 123a4ccfc5 Merge branch 'GTune' of https://github.com/MJ666/cleanflight into
MJ666-Harakiri_PID_update

Conflicts:
	Makefile
	src/main/blackbox/blackbox_fielddefs.h
	src/main/flight/pid.c
	src/main/io/serial_msp.c
	src/main/mw.c
	src/main/target/ALIENWIIF3/target.h
	src/main/target/CC3D/target.h
	src/main/target/NAZE/target.h
	src/main/target/NAZE32PRO/target.h
	src/main/target/SPARKY/target.h
2015-10-06 20:16:37 +01:00
Dominic Clifton d36da111b2 Delete autotune. 2015-10-06 19:38:02 +01:00
Dominic Clifton ba2e22ab89 Add RMDO target. 2015-10-06 19:00:53 +01:00
Michael Jakob 43f5792a61 G-Tune port from Harakiri
Enabled for NAZE, ALIENWWIIF1 and ALIENWIIF3 targets
Implement G-Tune for all PID controllers
The G-Tune tuning results will be save if G-Tune mode will be disabled
during copter is disarmed.
Update PID controller and G-Tune documentation
2015-10-04 18:37:18 +02:00
Dominic Clifton 6fb500f580 NAZE32 - Add support for BMP280. 2015-10-02 15:43:44 +01:00
Dominic Clifton 85ba1eb0bd Add support for MPU6500 connected via I2C. 2015-10-02 15:43:44 +01:00
Dominic Clifton 678c0413cb Relocate and use some of the common MPU code from MPU6000 into
accgyro_mpu.c.
2015-10-02 15:43:44 +01:00
Dominic Clifton 0361d161fb Relocate and use some of the common MPU code from MPU6500 into
accgyro_mpu.c.
2015-10-02 15:43:44 +01:00
Dominic Clifton b46d56a5bd Relocate some of the common MPU code from MPU6050 into accgyro_mpu.c. 2015-10-02 15:43:44 +01:00
Echelon9 210d6bcd11 Add new Makefile feature, try 'make help' 2015-09-28 22:48:07 +10:00
borisbstyle f5ad7f6003 BetaFlight V2 recognition
Update binaries
2015-09-21 00:19:01 +02:00
borisbstyle 0ea5a99e2b Merge remote-tracking branch 'prodrone/betaflight' into alphaflight 2015-09-19 16:44:11 +02:00
ProDrone 47afa51bd7 Merge branch 'quat_fsm_vfm_clean_yaw_hack_squash' into betaflight
Conflicts:
	src/main/mw.c
	src/main/target/CC3D/target.h
2015-09-19 14:59:47 +02:00
Konstantin Sharlaimov (DigitalEntity) 45a4f11f92 Added #define for imu debug output (+16 squashed commit)
Squashed local commits:

from       : e4265d4a13f63f82d5cf55eea2c091622f96660b
up to (inc): 72416dc74745fa8bae1aded79aa4b9ed0e389076
2015-09-19 14:50:53 +02:00
borisbstyle 70d04e46d0 AlphaFlight 2015-09-19 00:47:37 +02:00
borisbstyle dae052632c Merge branch 'master' into betaflight
Conflicts:
	src/main/drivers/accgyro_mpu3050.c
	src/main/drivers/accgyro_mpu6050.c
	src/main/drivers/accgyro_spi_mpu6000.c
	src/main/drivers/accgyro_spi_mpu6500.c
	src/main/drivers/sensor.h
2015-09-15 23:36:40 +02:00
Dominic Clifton c6f5b98a79 Improve failure LED status flashing. Now users can identify and report
hardware failures by counting the number of long flashes.

Fix up sensor read API so that code that uses sensors can detect
malfunctions.

If a failure mode occurs in a debug mode the code reboots the system
rather than rebooting to the bootloader.
2015-09-12 01:33:19 +01:00
borisbstyle 5a1301f73d Merge branch 'master' into betaflight
Conflicts:
	Makefile
	src/main/io/serial_cli.c
	src/main/main.c
	src/main/sensors/initialisation.c
	src/main/sensors/initialisation.h
2015-09-11 11:19:25 +02:00
borisbstyle a0ac565ff5 Merge remote-tracking branch 'motolab/motolab-integration' into betaflight 2015-09-05 15:11:38 +02:00
borisbstyle b02a884c0c Betaflight Recognition 2015-09-02 00:30:44 +02:00
borisbstyle 26deeb8ff6 Loop synced to Gyro
Remove double MPU_RA_PWR_MGMT_1

Looptime to Gyro refresh rate

disable 2khz when acc used for F3

Gyro sync code improvement

doc change
2015-09-02 00:30:39 +02:00
borisbstyle fdcfe71b73 Improve soft filtering function for reuse
Reorder serial.c *_cut_hz parameters

Remove unnecessary dT calculation in luxfloat

Restructured filter

filter.h fix

Luxfloat remove internal dT

Void function for gyro fillter
2015-09-02 00:30:35 +02:00
Richard Lehey 637fd64f36 Add support for new BMP280 barometer, modified files 2015-09-02 00:30:33 +02:00
nathan 5e16460c98 serial 1wire passthrough for ESCs with the BlHeli bootloader 2015-09-02 00:30:30 +02:00
Moto Moto 2e351b0991 Add MOTOLAB build target and associated source files 2015-08-23 19:42:18 -05:00
Echelon9 cf8a6f8f8b Add command 'make cppcheck' and friend. 2015-08-22 14:23:55 +10:00
Dominic Clifton 7adfeffafb Cleanup SPI initialisation. Relocate mpu6500 spi configuration from
Colibri race specific code into the mpu6500 driver.
2015-08-20 21:39:02 +01:00
Larry (TBS) 3b1f423c49 COLIBRI RACE support 2015-08-20 19:18:10 +01:00
Dominic Clifton b4172941c1 Merge branch 'feature/make-top-level-test' of https://github.com/Echelon9/cleanflight into Echelon9-feature/make-top-level-test 2015-08-20 18:27:22 +01:00
Echelon9 e7d4f7da7f Remove duplicated -mfpu=fpv4-sp-d16 under cortex-m4 based targets. 2015-08-19 23:11:02 +10:00
Echelon9 f85bd89947 Promote 'make test' to a top level folder feature. 2015-08-17 23:02:19 +10:00
Dominic Clifton 5b236a8133 Fix flash size for SPRACINGF3.
Note: Only early prototypes had the smaller flash.
2015-08-05 02:52:33 +01:00
Michael Hope f792ffa2e6 build: add a target for flashing via st-flash.
This makes developing against Discovery boards easier.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-07-19 15:52:15 +02:00
Dominic Clifton 676b2dd6c0 Use the define USE_FLASH_M25P16. Only USE_FLASHTOOLS for some
development targets.
2015-07-13 03:28:34 +01:00
Dominic Clifton e48e50512e Merge pull request #1028 from borisbstyle/dterm_filter
Selective Software Filtering (Gyro, Dterm, Pterm)

Thanks for the code boris and thanks to everyone else for their testing and feedback
2015-06-29 16:00:49 +01:00
Michael Hope 41c0a7c262 build: use the first serial port for flashing.
Use wildcard to list all of the USB serial ports.  Pick the first.

This is useful on my machine as the board sometimes appears as
/dev/ttyUSB1.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-29 04:16:47 +01:00
borisbstyle 10f2d35759 Soft Filtering (Gyro, Dterm, Pterm)
pterm_cut_hz added

Let's play with this as well to get more noise filtered

Code Cleanup

Make filter more flexible for reuse

rewrite correction pterm

Define static delta in filter

Fix array count

ident

return function for filter

Filter Function enhanced

Full software filtering (DTerm, PTerm, Gyro, Acc)

Normalize Variables

Revert Back gyro settings

Bugfix gyro/acc filter // (MPU60xx equalize lpf settings)

Moved filtering to mw.c

This has been done to prevent reusing old cycletime for filter function.

acc_cut_hz removed (not needed)

Harakiri zero fix
2015-06-27 14:13:10 +02:00
Dominic Clifton 2436ccbaf5 SPRacingF3 - Enable Softserial on CH4/5 and CH7/8 (RX/TX). 2015-06-26 15:16:52 +01:00
Michael Hope b26efd6256 ld: split the common linker commands out into a shared file.
Done to make it easier to add new sections (like a parameter registry
section) in the future.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-22 08:49:16 +02:00
Dominic Clifton 084626a70f SPRacingF3 - Allow use of a different external mag. 2015-06-10 03:36:53 +01:00
Dominic Clifton 4ed6fdfea5 CC3D - Add sonar.
This also ensures that the PWM mapping does not use the sonar pins when
sonar is enabled in a board agnostic way.
Conflicts:
	src/main/config/config.c
	src/main/drivers/pwm_mapping.h
	src/main/main.c
	src/main/target/CC3D/target.h
2015-05-22 22:35:41 +01:00
Dominic Clifton f28158a5a7 Cleanup debug code. 2015-04-14 13:59:11 +01:00
Dominic Clifton ef50a0648f Allow spcification of flash size on command line. 2015-03-26 01:29:00 +00:00
Dominic Clifton 1de9fa4db6 SPRacingF3 - Add sonar support. 2015-03-22 20:55:27 +00:00
Dominic Clifton bce6c6722c Merge branch 'port-changes' of https://github.com/ledvinap/cleanflight into ledvinap-port-changes
Conflicts:
	src/main/blackbox/blackbox.c
	src/main/io/serial.c
2015-03-09 22:23:04 +01:00
Dominic Clifton 266fe45b7e Temporarily disable autotune on the CC3D OPBL binary. 2015-03-02 11:50:15 +00:00
Nicholas Sherlock af68517dda Merge remote-tracking branch 'upstream/master' into cc3d 2015-02-28 00:19:03 +13:00
Nicholas Sherlock 451d3d7ba2 Move zigzag encoding function to new common/encoding.c file, add tests 2015-02-26 13:27:09 +13:00
Nicholas Sherlock 57fcde05a3 Blackbox dataflash: Experimental CC3D support 2015-02-25 00:52:25 +13:00
Petr Ledvina 3abcbace72 Generate phony targets in auto-dependencies
This will fix problem with missing dependencies where #include changes
2015-02-23 09:18:51 +01:00
Dominic Clifton 070b556a07 Enable blackbox flash logging only on SPRacingF3 and Naze rev5 targets. 2015-02-22 21:49:53 +00:00
Dominic Clifton 2f09b7d1d9 Merge branch 'blackbox-flash' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-flash 2015-02-22 17:24:39 +00:00
Dominic Clifton 9057d70410 Allow excluding of servo code at compilation time.
This is in preparation for backbox on CJMCU/64k.

Flight tested on CJMCU.
2015-02-22 16:21:03 +00:00
Dominic Clifton a1b01807cf Merge branch 'lowpass' of https://github.com/fusterjj/cleanflight into fusterjj-lowpass
Conflicts:
	src/main/flight/mixer.c
2015-02-22 14:55:04 +00:00
Nicholas Sherlock acd4745a4e Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-02-15 01:54:50 +13:00
Dominic Clifton ed51428989 SPRACINGF3 - Enable DISPLAY. Specify serial port I/O in target.h. 2015-02-05 02:08:37 +00:00
Dominic Clifton 55cac2bdeb Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
Relocate more code.
2015-02-01 00:39:38 +01:00
Joel Fuster ec946ea7d5 Split filter into separate file for future reuse 2015-01-31 11:46:44 -05:00
Dominic Clifton fa18940087 Minor cleanups to allow CJMCU to build again. 2015-01-30 21:25:18 +01:00
Nicholas Sherlock f9e22a0461 Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-01-28 20:48:17 +13:00
Nicholas Sherlock 0624eb5067 Refactor blackbox IO routines out into separate file 2015-01-28 20:42:51 +13:00
Nicholas Sherlock 3eb28f16ea Basic read/write/erase flash functionality works from the CLI
Very little code coverage tested yet, only writes of small sizes
2015-01-28 17:45:36 +13:00
Michael Jakob 396731a428 Intitial support for ALIENWIIF3 target 2015-01-26 18:33:47 +01:00
Dominic Clifton 5760519a03 CC3D - Adding USB Virtual COM port suport.
You can now connect the configurator via the USB port.
2015-01-25 13:59:48 +01:00
Dominic Clifton 9e73dca591 CC3D - Use Flex port in I2C mode unless USART3 is used. Add I2C drivers
for compass, baro and display.
2015-01-22 19:19:43 +01:00
Dominic Clifton 71a61d2432 SPRACINGF3 - Use 128k flash. 2015-01-22 18:00:11 +01:00
Dominic Clifton e69718b49a Added missing Makefile change from
1a2ee0e5b9
2015-01-21 01:11:55 +01:00
Dominic Clifton 650389afb6 Disable ADC initialisation on CJMCU. Replace MASSIVEF3 with SPRACINGF3.
Conditional VCP code inclusion.  Other minor F1/F3 cleanups.
2015-01-20 23:33:03 +01:00
Dominic Clifton 1efe530ea3 Disable compilation of unused can/cec/crc libraries. 2015-01-08 05:02:23 +00:00
Dominic Clifton 53faaff63c Add CJMCU revision detection. Use LEDs to indicate Spektrum binding
activity.
2015-01-08 01:19:25 +00:00
Nicholas Sherlock 6c2ce5038c Merge remote-tracking branch 'upstream/master' 2015-01-04 10:35:59 +13:00
Michael Jakob 2b90f675b2 Support ALIENWIIF1 as an separate target
This will allow to build an HEX file independently to the NAZE target

An ALIENWIIF3 may also come in the future based on STM32F303. Both
likely will share the same default settings. This is why I don’t use
ALIENWII32 as target name yet.
2014-12-28 12:45:15 +01:00
Nicholas Sherlock dfd8e5b2b0 Merge branch 'master' of https://github.com/cleanflight/cleanflight 2014-12-26 11:56:00 +13:00
Dominic Clifton 36c0b6f106 Cleanup MPU9150 support. 2014-12-24 23:53:17 +00:00
Dominic Clifton e9c07675be Add MPU9150 support to STMF3Discovery. Use 7-bit I2C addressing on
STM32F30x.
2014-12-24 21:11:22 +00:00
Dominic Clifton e9bc6c9353 Merge pull request #224 from GruffyPuffy/xbus
Added initial version of JRPropo XBUS Mode B support.
2014-12-23 12:08:23 +00:00
Nicholas Sherlock 1b1a285b4a Syncing with Cleanflight upstream 2014-12-22 23:23:26 +13:00
Dominic Clifton 183c5f8e16 Add MPU9150 mag support and mag autodetection. Add AK8975 mag driver.
Note: not working on the sparky, MPU9150 needs passthough enabling but
when enabled the mag and gyro won't ack on the default addresses.  Needs
further investigation.
2014-12-21 23:40:48 +00:00
Nicholas Sherlock c85a172370 Merge remote-tracking branch 'upstream/master' 2014-12-18 18:17:59 +13:00
Stefan Grufman 509f73853d Added initial version of JRPropo XBUS Mode B support. 2014-12-15 22:15:47 +01:00
Dominic Clifton 1c8416db2c GPS - handle data loss occurs in the start of a UBLOX frame 2014-12-13 01:42:35 +00:00
Dominic Clifton 6c96b8dd86 Support the Sparky board by peabody124 - work in progress, not flight
ready.

https://github.com/TauLabs/TauLabs/wiki/Sparky

http://buildandcrash.blogspot.co.uk/2013/05/sparky-testing-and-building-no-crashing.html
2014-12-09 03:12:38 +00:00
Nicholas Sherlock 8c41772584 Add Blackbox 0.1.0 2014-12-08 22:06:57 +13: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
Frank Zhao 0000d3e65e added smartport telemetry
Conflicts:

	src/main/telemetry/telemetry.h
2014-11-12 00:11:13 +00:00
Petr Ledvina 3ee60ef857 Merge remote-tracking branch 'refs/remotes/upstream/master' into feature-timer 2014-11-11 12:50:11 +01:00
Dominic Clifton d0f622bb81 PORT103R - Initial support for the Waveshare Port 103R development
board.
2014-11-10 00:53:48 +01:00
Petr Ledvina 98c0d0b5dd Code cleanup / fixed missing TIM8_UP handler 2014-11-08 15:25:16 +01: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
Dominic Clifton 1f54424cb0 Ignore system dependencies. Fixes #140 2014-10-26 10:01:51 +00:00
Petr Ledvina 091941cd82 Makefile improvement
- root must be assigned when declared - with :=
- add autodependecy generation
2014-10-23 14:10:45 +02:00
Dominic Clifton 8ef70abaa0 NAZE32 - Add hardware revision detection. 2014-10-15 20:59:06 +01:00
Dominic Clifton da51b5c479 Add MPU6500 SPI driver. Move sensor initialisation defines into target
specific headers.
2014-10-14 00:22:54 +01:00
Dominic Clifton 3bc9dc7121 Move linker scripts to src/main/target. 2014-10-07 07:06:05 +01:00
Dominic Clifton 6beec3c6e9 MASSIVEF3 - Add new target. 2014-10-07 06:57:28 +01:00
Dominic Clifton acbede5492 CC3D - Allow building of a binary that is compatible with the OpenPilot
CC3D bootloader to allow easy switching between OpenPilot and
Cleanflight.

Submitted by Alessio Morale -
http://forums.openpilot.org/topic/43569-baseflightcleanflight-ported-to-cc3d/?p=372149
2014-09-26 14:10:12 +01:00
Dominic Clifton 35280abfed Allow disabling of I2C for targets that do not use it. 2014-09-26 01:32:57 +01:00
Dominic Clifton a5d57e7b87 STM32F3 - Cleanup serial port usage. 2014-09-26 01:02:27 +01:00
Dominic Clifton c898ca4634 OLED Display - Add two pages: RX info and Welcome.
The RX info page shows channel letters and bar graphs for the first 8
channels.
The Welcome page shows the target and cleanflight git revision.
2014-09-21 05:09:01 +01:00
Dominic Clifton a4c21b5e57 SUMH - Initial cut of support for Graupner SUMH Serial RX protocol. 2014-09-20 09:39:42 +01:00
Dominic Clifton 0b4f5804bc Update led strip code to use HSV instead of RGB. 2014-09-18 20:53:28 +01:00
goebish 9f18ad474b fix typo preventing rebuild 2014-09-16 13:46:27 +02:00
Dominic Clifton 2e959dfd04 Make display support configurable per-target, enabled by default for
NAZE and EUSTM32F103RC.
2014-09-12 21:56:33 +01:00
Dominic Clifton f29168a998 Working OLED in test mode. 2014-09-12 21:56:33 +01:00
Dominic Clifton 9ce6dde1e7 Work-in-progress. 2014-09-12 21:56:33 +01:00
Dominic Clifton 2ae62d1977 Add git commit number to cli version command output. 2014-09-04 00:27:28 +01:00
Dominic Clifton 3d382ea4c7 EUSTM32F103RC - First cut of support for this High-Density STM32F103
series development board.

These boards can be picked up for less than $11, coupled with a 10DOF
sensor board they make a great development platform or cheap expandable
FC.

Pretty much all pins are available to be used, unlike on the less
capable and more expensive OLIMEXINO.
2014-09-03 01:38:27 +01:00
Dominic Clifton 59cddb21b4 Enable Serial RX on CJMCU target. 2014-08-26 23:25:14 +01:00
Dominic Clifton f1af9d434f Removing cruft from makefile that was accidentally committed when
working on the CJMCU target.
2014-08-22 19:19:20 +01:00
Dominic Clifton aa719dfe4f CJMCU - Use 64k/128k flash specific linker scripts scripts 2014-08-18 21:04:35 +01:00
Dominic Clifton d0338eac19 Cleanup sonar support for Naze/Flip32/Olimexino. Add Sonar
documentation.
2014-08-13 22:01:39 +01:00