Commit Graph

1116 Commits

Author SHA1 Message Date
treymarc 607477ab71 remove duplicate test 2014-07-31 13:30:44 +01:00
treymarc 9cf90fa230 smallAngle configurable, user can arm/disarm with swith in any
orientation
Conflicts:

	src/cli.c
	src/config.c
	src/imu.c
	src/mw.c
	src/mw.h
2014-07-31 00:25:24 +01:00
Dominic Clifton 3b629d58a0 GPS can now be conditionally compiled in. 2014-07-30 23:35:33 +01:00
dongie b3a718882c updated I2C driver to allow using I2C2 or I2C1 at compile time - call i2cInit with I2CDEV_1 or _2.
Applied same to SOFT_I2C driver (but the pin config is compile-time #define)

Conflicts:

	src/board.h
	src/drv_i2c.h
	src/drv_system.c
	src/main/drivers/bus_i2c_soft.c
	src/main/drivers/bus_i2c_stm32f10x.c
2014-07-30 22:38:59 +01:00
Dominic Clifton 0ac2b51c60 Make ppm/pwm input filtering configurable. 2014-07-30 22:02:34 +01:00
dongie 226e38de3e rolling back pwm capture filter stuff, not necessary and had reports of fail. 2014-07-30 21:56:22 +01:00
dongie a68c869797 auto-configure eeprom save location based on Flash Size Register. Might help using baseflight on 64k flash devices. 2014-07-30 21:21:42 +01:00
Dominic Clifton 10790a7378 Fix use of incorrect preprocessor define. 2014-07-30 21:19:08 +01:00
Dominic Clifton cbb17dae59 Dynamically determine flash size on STM32F10X_MD 2014-07-30 21:17:57 +01:00
Dominic Clifton 6696031520 Adding notes. 2014-07-26 21:30:06 +01:00
Dominic Clifton a39ae9929d Adjust i-term yaw zeroing.
See fe5a864 and b9e5a37.
2014-07-26 21:26:04 +01:00
Dominic Clifton 5086b46f1f Add simple LED animation when disarmed. Fixed led grid size
calculation.
2014-07-26 18:21:58 +01:00
Dominic Clifton c9b5334f16 Fix WS2812 LED initialisation.
The timer was not being initialised correctly, it only worked by
accident due to timer configuration of other timer channels.  This
explained why TIM3 didn't work in the mapping exclusion for the CC3D and
why for the LEDs to work correctly TIM2 had to be specified so that TIM3
was actually accidentally initialised still.
2014-07-26 17:45:05 +01:00
Dominic Clifton 4e284b3e41 Calculate led grid size dynamically. 2014-07-26 16:23:26 +01:00
Dominic Clifton 960f8c11c0 Merge branch 'master' into cc3d 2014-07-26 15:14:33 +01:00
Dominic Clifton 997c427e09 CC3D - Add WS2812 Led Strip Support (on S5_OUT) 2014-07-26 14:12:05 +01:00
Dominic Clifton 4b0fed8f07 Ported OpenPilot PPM frame validation.
On the CC3D it was observed that jitters were present, this code
validates each frame.

Prior to this, on other boards (Naze32/Flip32+/Olimexino/etc) it was
observed that when using an 8 channel RX AUX5-8 would sometimes be set
due to bad PPM data.

This code fixes both issues.
2014-07-26 13:01:02 +01:00
Dominic Clifton a5ec1355d4 CC3D - Support PPM input on IN_S1.
This required timer overflow events to be used in the calculation of PPM
channel data.

CC3D tested, other targets may be unstable as a result. Needs further
testing.
2014-07-22 21:29:00 +01:00
Dominic Clifton 440e942af4 STM32F3DISCOVERY - Fix build, MPU6000 not supported on this target yet. 2014-07-22 21:26:02 +01:00
Dominic Clifton e56535f4f3 Fix builds on targets that do not have sonar support. 2014-07-22 21:25:03 +01:00
Dominic Clifton 1d48fdafc9 CC3D - Delete old SPI code. 2014-07-22 21:23:30 +01:00
Dominic Clifton f342560da2 CC3D - Fix builds that use l3gd20 - duplicate SPI code removed. 2014-07-22 21:21:22 +01:00
Dominic Clifton 053a28dc62 CC3D - Hack to enable a simple quad configuration using PPM input to be
tested.

PPM and motor outputs conflict since they use the same timers so this
just avoids conflicts.
2014-07-17 23:52:49 +01:00
Dominic Clifton 668e8f1298 CC3D - Disable I2C for now. 2014-07-17 23:50:14 +01:00
Dominic Clifton 79e1b3683f Replace tab with space. 2014-07-17 23:49:55 +01:00
Dominic Clifton 5f16cfb72a CC3D - Support MPU6000 Gyro/Acc and SPI 1/2. 2014-07-17 22:12:21 +01:00
Dominic Clifton f8a1ca55fc Updating todo list. 2014-07-16 01:37:16 +01:00
Dominic Clifton 6ea447b777 Update LED documentation to reflect the current implementation. 2014-07-16 01:36:51 +01:00
Dominic Clifton bca37a163e Latest binary with i-term zeroing fix. 2014-07-16 01:27:47 +01:00
Dominic Clifton fe5a864a85 i-term zeroing fixed
http://www.multiwii.com/forum/viewtopic.php?p=53441#p53402
2014-07-16 01:26:58 +01:00
Dominic Clifton 1fb75890d5 Initial OpenPilot CC3D commit. 2014-07-16 01:06:09 +01:00
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 f5baefea5b Adding debug declaration to allow imu unit tests to compile. 2014-07-08 13:27:49 +01:00
Dominic Clifton 0f47c7e2be Merge branch 'ledupdate' 2014-07-02 23:51:59 +01:00
Dominic Clifton 21c8fdc69b Update led config so it's possible to show which LEDs show the arm
state.  Mutually exclusive with leds that show MODE.

Use blue to indicate armed, green for disarmed.

Leds not configured for ARM_STATE or MODE will be off by default.

The example combines corner LEDs with ARM_STATE and INDICATOR.  This
results in the corner leds showing arm state and then being overridden
with an indicator color as needed.
2014-07-02 23:50:39 +01:00
Dominic Clifton 3ce33f0455 Update battery warning and turn indicators to use led config.
Cleaned up the battery warning checking as it was being calculated twice
instead of just once per battery warning state cycle.

Updated the code so that modes are shown when disarmed.  Any led's
without the MODE flag will then show the armed state.  In the config in
this commit that results in the corner LEDs being GREEN when disarmed
and OFF when armed.
2014-07-02 23:38:19 +01:00
Dominic Clifton 36990951df Adding code to change led colors based on mode and armed state. 2014-07-02 21:53:50 +01:00
Dominic Clifton de04acd7e1 First cut of programmatically orientation lights using an LED strip
configuration that defines each LED's functions, orientation and
position in a grid.
2014-07-02 20:40:26 +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 af2f9a2655 Work-in-progress 2014-07-02 08:58:10 +01:00
Dominic Clifton 596ac71861 Fixing barometer related warnings when compiling without barometer
support.
2014-07-01 18:56:43 +01:00
Dominic Clifton 95ef639b84 Deleting compiler output file that should not have been committed. 2014-07-01 18:53:02 +01:00
Dominic Clifton 623da881bc Removed apparently unneeded PRECIOUS statement (OSX).
Output files were being left in the working directory.

Build needs to be tested on cygwin, if it fails find a different
solution or revert this commit.
2014-07-01 18:52:11 +01:00
Dominic Clifton 364ada8110 Keep .s files so that compiler output can be easily verified. 2014-07-01 18:50:26 +01:00
Dominic Clifton 54b702eb83 Latest binary, flight tested. 2014-06-30 21:43:35 +01:00
Dominic Clifton 07547d35aa Initialisation order meant that useServos was always false, the problem
was introduced in fd59a4cd52.
2014-06-30 19:41:46 +01:00
Dominic Clifton b364a0ea31 Fix initialisation of useUart2 when Parallel PWM is used. Additionally
we now ensure that pwm_params is initialized before use.
2014-06-30 00:22:44 +01:00
Dominic Clifton 2150fb4a08 Fixing missed multiwii scale factor accidentally removed from
432c43bab7 during merge.
2014-06-26 00:40:19 +01:00
Dominic Clifton 668772f1f3 Explicitly use float literals in velocity calculation. 2014-06-24 00:30:58 +01:00