timecop@gmail.com
04ab548d2e
actually adding BMA280 driver files, oops.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@417 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-29 14:00:14 +00:00
timecop@gmail.com
01eaf85510
added ability to assign one of aux1..4 channels as RSSI by the-kenny
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@416 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-29 13:58:25 +00:00
timecop@gmail.com
91d64fc6c1
removed retarded small_angles shit and replaced with proper calculation.
...
no more small angles while shaking the board.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@415 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-29 13:10:58 +00:00
timecop@gmail.com
6763d8810b
added test BMA280 driver
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@414 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-29 12:53:02 +00:00
timecop@gmail.com
c8f0fc78b3
removed references to avr optimizations we stopped using long time ago
...
fixed heading calculation jump
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@413 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-22 04:03:18 +00:00
timecop@gmail.com
64e8f247bf
oops. gyro only does NOT need getEstimatedAttitude. bad!
...
ms5611 driver improvements (was failing below 20c)
merged some althold cleanups
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@411 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-21 11:18:15 +00:00
timecop@gmail.com
1ff4bcec5a
Nice catch on gyro-only fly fail
...
-robertb
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@410 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-21 07:57:28 +00:00
timecop@gmail.com
8a5157db46
disconnected magcal from core and put it all into hmc5883 driver. no need to keep track of it if driver does init by itself as well.
...
moved annexcode into mw.c instead of imu.c
hopefully didn't break anything.
NOT FLIGHT TESTED.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@405 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-19 15:07:48 +00:00
timecop@gmail.com
ac3cee7788
oops, this should be a bitfield
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@404 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-19 11:26:30 +00:00
timecop@gmail.com
14893afb32
cleanup of sensor readings and sensor driver API reorganization part 1
...
documented L3G4200D driver why 0x28 read was suddenly turning into 0xA8
removed old wiimotion averaging cruft from computeIMU
NOT FLIGHT TESTED
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@403 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-19 11:20:53 +00:00
timecop@gmail.com
6d3467c759
higer precision float radian angles are now used for acc and mag rotation
...
no need to cripple the readings here
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@402 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-15 12:29:29 +00:00
timecop@gmail.com
26db228f79
merge in althold changes from github
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@401 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-15 02:02:09 +00:00
timecop@gmail.com
71772f137b
part 3 of the great sensor axis unfucking. careful flight testing may commence.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@400 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-15 01:56:23 +00:00
timecop@gmail.com
05ced4c784
fixing mag heading. DO NOT FLY!
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@399 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-14 15:42:16 +00:00
timecop@gmail.com
44a671136b
the great sensor orientation unfucking work in progress part 2.
...
fixed MMA8452 orientation, as well as mag calculations.
gyro/mag is still reversed on Z, DO NOT FLY.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@398 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-14 15:35:44 +00:00
timecop@gmail.com
1cc306493b
beginnings of the great sensor orientation unfucking. WORK IN PROGRESS DO NOT FLY.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@397 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-14 12:27:26 +00:00
timecop@gmail.com
edb0ef01b7
fixed mag gain during testmode (thanks pm1) and added some explicit float definitions to mag test code.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@396 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-12 10:50:13 +00:00
dominicc1974@gmail.com
4c191270bf
Changing all line endings to WINDOWS line endings (CR+LF) and removing all End-Of-Line whitespace and using spaces instead of tabs. Please ensure you configure your editors and tools to follow suit. If using git please enable autocrlf in your .git/config file.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@393 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-06 23:14:48 +00:00
timecop@gmail.com
929bbc8c3f
added (untested) flag to disable tricopter servo updates when unarmed.
...
tri_unarmed_servo to 1 (default) always updates tri servo whether armed or not.
tri_unarmed_servo to 0 will only send servo signal to tail servo when armed.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@392 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-09-06 00:03:32 +00:00
Dominic Clifton
5d13bc66ea
Merge remote-tracking branch 'multiwii/upstream'
2013-09-01 00:54:00 +01:00
timecop@gmail.com
509e349e69
Whitespace/compiler warnings cleanups by Dominic Clifton;
...
Slight tweak of new althold defaults
NOT-flight-tested .hex committing so people can commence with althold testing.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@391 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-31 01:40:13 +00:00
Dominic Clifton
1fdc6f118f
Merge branch 'softserial'
2013-08-28 19:11:25 +01:00
Dominic Clifton
14d0f90278
Merge remote-tracking branch 'multiwii/upstream'
...
Conflicts:
src/board.h
2013-08-28 19:11:18 +01:00
Dominic Clifton
e29c0ccea6
Merge remote-tracking branch 'multiwii/upstream' into softserial
...
Conflicts:
src/drv_softserial.c
2013-08-28 19:01:22 +01:00
timecop@gmail.com
77a241bd5f
Software serial implementation. Compile with SOFTSERIAL_19200_LOOPBACK to test. Without the define the implementation will have no effect. Next step is to add a 'feature' to enable softserial and settings for the baud rate. Note, only READ is currently supported, write will come later. The highlevel api calls are used in main.c. Uart implementation needs cleanup to make serial port code generic, see uart files for details.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@390 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-28 01:26:10 +00:00
Dominic Clifton
4d00f51ddc
Software serial implementation. Compile with SOFTSERIAL_19200_LOOPBACK to test. Without the define the implementation will have no effect. Next step is to add a 'feature' to enable softserial and settings for the baud rate. Note, only READ is currently supported, write will come later. The highlevel api calls are used in main.c. Uart implementation needs cleanup to make serial port code generic, see uart files for details.
2013-08-27 19:31:34 +01:00
timecop@gmail.com
fa7eecac18
reload GPS pids on each eeprom read
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@389 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-27 07:22:48 +00:00
timecop@gmail.com
f9b48925fa
marking some static timer lists const.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@388 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-25 15:12:12 +00:00
timecop@gmail.com
003c2a91c5
Separate timer code from PWM/PPM code. The method of looking up a callback is now generic which means other (forthcoming) code can configure callback handlers.
...
Killed some leftovers of GPIO_Pin* stuff I forgot about.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@387 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-25 12:45:36 +00:00
Dominic Clifton
4bc6d77579
OLIMEXINO - Disable usage of LEDs by default.
2013-08-24 18:09:10 +01:00
timecop@gmail.com
f663a57613
improved altitude hold thanks to Luggi09
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@386 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-24 14:57:26 +00:00
timecop@gmail.com
659a8f537f
add support to gcc Makefile to make map file for debugging.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@385 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-24 11:06:34 +00:00
Dominic Clifton
92a68041a8
Merge remote-tracking branch 'multiwii/upstream' into upstream
2013-08-24 11:31:23 +01:00
Dominic Clifton
1ce9210c45
Ensuring some const data is in flash not SRAM.
2013-08-24 11:22:34 +01:00
Dominic Clifton
7dcc9d47ad
Adding map generation to makefile
2013-08-24 11:22:23 +01:00
timecop@gmail.com
01376de3e5
marking some more stuff const that shouldn't be changing. thx Hydra for the catch.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@384 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-24 10:20:55 +00:00
timecop@gmail.com
1441d46323
Fixed issue #15 , new uart building under gcc toolchain, thanks!
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@383 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-22 13:37:45 +00:00
timecop@gmail.com
cbb580f753
rewritten drv_uart to suck slightly less
...
tested w/o GPS
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@382 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-22 07:48:07 +00:00
timecop@gmail.com
1ff0036dec
oops! had pin definition wrong for Pin_0 and Pin_1, was using drv_gpio in another project and noticed it wasn't working very well :)
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@381 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-20 11:44:49 +00:00
timecop@gmail.com
fbef1aa284
changed pwmGPIOConfig() signature to better show that last parameter is pin mode.
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@380 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-20 00:34:21 +00:00
timecop@gmail.com
0664b3005d
fixed Makefile to build w/new drivers (thanks Hydra)
...
int32 updates in sonar driver
added 12mhz buzzer check
Removed debug output from GPS module
int32'ified althold
output HSE MHz+SysClkMHz on debug[3]
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@379 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-08-19 23:29:20 +00:00
Dominic Clifton
d0704edfbf
Merge remote-tracking branch 'multiwii/upstream' into upstream
...
Conflicts:
src/main.c
2013-08-15 21:52:35 +01:00
Dominic Clifton
2d11f659c6
Fixing IFDEFs for FY90Q target
2013-08-15 21:51:26 +01:00
Dominic Clifton
76968efd5e
Fixing makefile for missing includes for gpio and spi drivers.
2013-08-15 21:51:13 +01:00
timecop@gmail.com
3b8c1841f8
new SPI2 driver w/testcase
...
5883 and 6050 driver updates
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@363 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-07-02 02:52:33 +00:00
timecop@gmail.com
57cbd784a9
a couple optimizations for dynamic HSE frequency - moved SetSysClock() to run after reset vector + bss init, and changed rcc which used hardcoded HSE_VALUE.
...
turn off leds/beeper before initializing pins to prevent flash at startup
uninitialized errorAngle fix in new PID
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@362 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-07-02 00:58:50 +00:00
timecop@gmail.com
3afeb3d1c8
initial take at configurable FEATURE_3D
...
completely untested and may attempt to kill you when enabled. no binary.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@360 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-06-30 07:11:49 +00:00
timecop@gmail.com
e010e3a354
Cleaned up SetSysClock to remove duplicated code when configuring HSE or HSI
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@359 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-06-30 06:25:24 +00:00
timecop@gmail.com
e4ea700fe0
reverted cli line editing stuff - was more trouble than its worth, and caused issues with hercules
...
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@358 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-06-29 15:48:43 +00:00
timecop@gmail.com
d442c9dfb6
initial pass at gpio cleanup. removed almost all dependency on stdperiphlib (remaining exti).
...
slightly modified initial pin configuration, but this needs rework soon anyway.
couple spacing/line ending/formatting fixes in sonar driver file while fixing gpio there.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@357 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
2013-06-29 14:09:54 +00:00