afrodevices/.git
7 years agofix from frog32 for external adc channel allocation; master
timecop@gmail.com [Mon, 12 Nov 2012 09:08:16 +0000 (09:08 +0000)]
fix from frog32 for external adc channel allocation;
fix from mwc forum for frsky telemetry gps output

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@237 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoCIF 352x288 PAL, 352x240 NTSC auto mode.
nesnosniy@gmail.com [Thu, 1 Nov 2012 19:19:25 +0000 (19:19 +0000)]
CIF 352x288 PAL, 352x240 NTSC auto mode.
Need to be tested for OSD area left/right and up/down aligns.
hw hack: use CONF2+MSSI+P1 instead of CONF1.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@236 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoYou need OSD SPI slave hardware hack for run this code. Hacking: P1+RSSI+CONF1, cpu...
nesnosniy@gmail.com [Tue, 30 Oct 2012 20:31:49 +0000 (20:31 +0000)]
You need OSD SPI slave hardware hack for run this code. Hacking: P1+RSSI+CONF1, cpu pins 16+17, 27+28. OSD GPS uart was not tested.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@235 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoslight improvement to motion threshold calculation
timecop@gmail.com [Sat, 27 Oct 2012 07:34:45 +0000 (07:34 +0000)]
slight improvement to motion threshold calculation

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@234 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoinitial check-in
timecop@gmail.com [Sun, 21 Oct 2012 15:36:45 +0000 (15:36 +0000)]
initial check-in

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@233 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agostm32f1 osd sources
timecop@gmail.com [Sun, 21 Oct 2012 15:28:28 +0000 (15:28 +0000)]
stm32f1 osd sources

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@232 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoimplemented using one of RC inputs as ADC channel for power meter.
timecop@gmail.com [Fri, 19 Oct 2012 02:43:27 +0000 (02:43 +0000)]
implemented using one of RC inputs as ADC channel for power meter.
added MSP_ACC_TRIM stuff for android GUI.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@231 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomade gyrodiff for motion detection configurable, 0 = disabled
timecop@gmail.com [Sun, 14 Oct 2012 00:34:23 +0000 (00:34 +0000)]
made gyrodiff for motion detection configurable, 0 = disabled

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@230 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded acc_trim stuff into cli
timecop@gmail.com [Sat, 13 Oct 2012 12:08:56 +0000 (12:08 +0000)]
added acc_trim stuff into cli
spacing/indentation fixes
flyingwing is somewhat supported, reflect that in comment
added anti-moron gyro calibration routine... if model is getting moved while its arming... don't calculate gyro avearage because its gonna be wrong... example of fail see here: http://www.rcgroups.com/forums/showthread.php?t=1749966

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@229 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed MPU6050 sig stuff, d'oh
timecop@gmail.com [Mon, 8 Oct 2012 13:50:48 +0000 (13:50 +0000)]
fixed MPU6050 sig stuff, d'oh
added sensor axis orientation stuff to cli... not the most optimal way but surely one that uses least code, lol!

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@228 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded ability to swap sensor axises dynamically. still needs a sane way to configire...
timecop@gmail.com [Sun, 7 Oct 2012 18:03:42 +0000 (18:03 +0000)]
added ability to swap sensor axises dynamically. still needs a sane way to configire in CLI, though.
adjusted all drivers for the new align stuff.
commented out default config setting values to zero - memset already did that.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@227 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomoved some readonly strings to flash, thanks zyp
timecop@gmail.com [Sun, 7 Oct 2012 14:58:12 +0000 (14:58 +0000)]
moved some readonly strings to flash, thanks zyp
cleaned up frsky telemetry a bit with verbose telemetry ID names, changed loop timing a bit, added output for heading and voltage (when vbat is enabled). telemetry stuff is untested, so someone try it out.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@226 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoApplied patch from trunet for running at 64MHz off HSI for broken Chinese kcopter...
timecop@gmail.com [Sat, 6 Oct 2012 14:40:24 +0000 (14:40 +0000)]
Applied patch from trunet for running at 64MHz off HSI for broken Chinese kcopter clones
status in cli now prints cpu MHz, 72 when running off crystal, 64 when running off intrc.
corrected WHO_AM_I check for mpu6050 when it's used on alternate address (AD0 high).
corrected PWM driver to consider CPU clock for timer prescalers - now things properly work below 72MHz
added a neat hack for pitch angle calculation so that it's not affected when roll reaches 90deg
added proper math for vector rotation instead of small-angle approximation

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@225 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agosign error in HEX6P mix.
timecop@gmail.com [Sun, 23 Sep 2012 11:41:02 +0000 (11:41 +0000)]
sign error in HEX6P mix.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@224 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agointegrated tommie's eeprom sanity check. much less chances of new firmware screwing...
timecop@gmail.com [Fri, 21 Sep 2012 04:12:17 +0000 (04:12 +0000)]
integrated tommie's eeprom sanity check. much less chances of new firmware screwing up due to old config version.
fixed pwm init for airplane mode mistakenly deleting motors from the mix. flyingwing should really work now.
removed led debug from althold

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@223 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoforgot to add lpf_for_velocity into tunables for new althold
timecop@gmail.com [Thu, 20 Sep 2012 01:47:22 +0000 (01:47 +0000)]
forgot to add lpf_for_velocity into tunables for new althold

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@222 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agostmloader serial fix from lianj
timecop@gmail.com [Wed, 19 Sep 2012 23:22:30 +0000 (23:22 +0000)]
stmloader serial fix from lianj

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@221 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoenabled mahowik althold by default. let the users figure it out.
timecop@gmail.com [Wed, 19 Sep 2012 11:14:12 +0000 (11:14 +0000)]
enabled mahowik althold by default. let the users figure it out.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@220 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed bug in soft_i2c driver (doesnt affect anyone except testing)
timecop@gmail.com [Tue, 18 Sep 2012 13:29:35 +0000 (13:29 +0000)]
fixed bug in soft_i2c driver (doesnt affect anyone except testing)
added VAR_FLOAT to cli - now allows setting/printing float vars
fixed newlines in pwm driver
exported new althold tunables to cli (some are floats) - still not enabled by default until I know it works

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@219 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoflying wing servo output fix
timecop@gmail.com [Wed, 12 Sep 2012 10:39:30 +0000 (10:39 +0000)]
flying wing servo output fix

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@218 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomore mahowik althold changes. at least it doesn't shoot up in the air now on enable...
timecop@gmail.com [Wed, 12 Sep 2012 07:09:45 +0000 (07:09 +0000)]
more mahowik althold changes. at least it doesn't shoot up in the air now on enable... but still nothing impressive.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@217 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed bug with MTK init - stuff was sent without delay while changing baudrates,...
timecop@gmail.com [Wed, 12 Sep 2012 02:15:14 +0000 (02:15 +0000)]
fixed bug with MTK init - stuff was sent without delay while changing baudrates, and it would wreck stuff - changing rate mid-buffer. oops. should work now.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@216 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agotesting: merged patch from http://www.multiwii.com/forum/viewtopic.php?p=22485#p22485
timecop@gmail.com [Mon, 10 Sep 2012 09:11:22 +0000 (09:11 +0000)]
testing: merged patch from multiwii.com/forum/viewtopic.php?p=22485#p22485
no binaries, as it doesn't work at the claimed PIDs of 5.0-0.030-30

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@214 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agobring back flying wing w/all configuration options
timecop@gmail.com [Sun, 9 Sep 2012 11:35:35 +0000 (11:35 +0000)]
bring back flying wing w/all configuration options
config version bumped, settings cleared.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@213 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoallow using GPS in PWM input mode. This (obviously) reduces number of available chann...
timecop@gmail.com [Sat, 8 Sep 2012 12:53:55 +0000 (12:53 +0000)]
allow using GPS in PWM input mode. This (obviously) reduces number of available channels by 2.
I heard thats not a problem since tarduino only allows 4RC+2AUX channels anyway! If you want more, upgrade to PPM.
So you use RC3/4 for GPS, and connect the rest of the channels as usual. Channels used for GPS uart are
skipped, so no changes to 'map' are necessary. Simply connect in order.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@212 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofix for airplane pwm mode - variable wasn't initialized, resulting in non-working...
timecop@gmail.com [Sat, 8 Sep 2012 08:15:16 +0000 (08:15 +0000)]
fix for airplane pwm mode - variable wasn't initialized, resulting in non-working motors on some compilers.
synced angle/horizon mode stuff from mwc. no idea what it does.
perhaps the most important part of this update:
-errorAngle = constrain(2 * rcCommand[axis] - GPS_angle[axis], -500, +500) - angle[axis] + cfg.angleTrim[axis];
+errorAngle = constrain(2 * rcCommand[axis] + GPS_angle[axis], -500, +500) - angle[axis] + cfg.angleTrim[axis];
(which means GPS might actually work).

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@209 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agooops, printf stuff forgotten to add to uv project.
timecop@gmail.com [Thu, 6 Sep 2012 06:54:06 +0000 (06:54 +0000)]
oops, printf stuff forgotten to add to uv project.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@208 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded printf() support via SpareTimeLabs printf lib. this cleaned up some mess inside...
timecop@gmail.com [Thu, 6 Sep 2012 06:35:02 +0000 (06:35 +0000)]
added printf() support via SpareTimeLabs printf lib. this cleaned up some mess inside cli.c
example of usage: http://bcas.tv/paste/results/xToE9w26.html
hover-tested quadx loaded as custom mix, works.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@207 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomoving towards custom mixer table and proper fixedwing mixer.
timecop@gmail.com [Wed, 5 Sep 2012 23:44:55 +0000 (23:44 +0000)]
moving towards custom mixer table and proper fixedwing mixer.
refactored all of mixer.c to use tables instead of hardcoded mix.
custom mixer is stored in flash, but currently has no UI to configure it.
do not choose mixer CUSTOM in console.

hover-tested QUADX, if upgrading anything else, please carefully check motor response first, preferably without props on heavy models.
tec

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@206 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agobuffer overrun in cli parser, increased command buffer. oops. thanks nicodh.
timecop@gmail.com [Wed, 5 Sep 2012 06:58:57 +0000 (06:58 +0000)]
buffer overrun in cli parser, increased command buffer. oops. thanks nicodh.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@205 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoFinished merging GPS autoconfig + ubx protocol code.
timecop@gmail.com [Tue, 4 Sep 2012 16:26:46 +0000 (16:26 +0000)]
Finished merging GPS autoconfig + ubx protocol code.
use set gps_type=X in cli to configure, where X=0 if NMEA (no special config), X=1 if UBX (enters ubx binary mode), X=2 if MTK (sets up MTK for 5Hz operation).
changed default GPS rate to 115200 baud
added baudrate reset stuff to UART driver for GPS autoconfigure
NONE of this is tested (except UBX working on my window)

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@204 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomerged multiwii GPS code from 1097. still no support for UBX, or GPS auto-config...
timecop@gmail.com [Tue, 4 Sep 2012 09:13:59 +0000 (09:13 +0000)]
merged multiwii GPS code from 1097. still no support for UBX, or GPS auto-config, soon.
added interrupt pins from mag/mma/mpu for rev4 hardware. nothing done with them yet - candidates for EXTI use
added tx buffer to UART2 (gps) in preparation for auto-config

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@203 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomag init after gyro
timecop [Thu, 23 Aug 2012 23:50:52 +0000 (23:50 +0000)]
mag init after gyro

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@202 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoI2C bypass mode permanently enabled on MPU6050.
timecop [Wed, 22 Aug 2012 23:59:34 +0000 (23:59 +0000)]
I2C bypass mode permanently enabled on MPU6050.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@201 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoi2c no-ack fix (never actually worked properly, fixed now)
timecop [Tue, 21 Aug 2012 05:41:58 +0000 (05:41 +0000)]
i2c no-ack fix (never actually worked properly, fixed now)
bumped config version, or else r198 crashed on update from recent version
airplane mode config passed to drv_pwm

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@199 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agocleaned up bmp085 driver
timecop [Mon, 20 Aug 2012 10:25:10 +0000 (10:25 +0000)]
cleaned up bmp085 driver
added ms5611 driver
refactored pressure sensor subsystem to allow multiple sensors
couple changes in PWM driver to make motor/servo arrangement for airplane mode more intuitive
moved MAX_MOTORS/MAX_SERVOS etc into drv_pwm.h
staring to merge back in airplane/flyingwing mixes
fix for tri servo display - mwc moved it to servo[5] again, gui was broken, function not.
will probably implement custom mixer soon (motors only, no servos)

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@198 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agorewritten and cleaned up PWM driver
timecop [Fri, 17 Aug 2012 06:48:30 +0000 (06:48 +0000)]
rewritten and cleaned up PWM driver
this has been hover-tested.
all current functionality *should* work even though the driver has been rewritten.
please test carefully, especially servo configurations!

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@197 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomakefile fix to add l3gd driver
timecop [Wed, 15 Aug 2012 14:51:17 +0000 (14:51 +0000)]
makefile fix to add l3gd driver

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@196 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agocommitting built firmware w/currentTime fix
timecop [Wed, 15 Aug 2012 08:48:07 +0000 (08:48 +0000)]
committing built firmware w/currentTime fix

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@195 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofix for 32bit overflow of currentTime killing baro/mag after 72 minutes (yes, someone...
timecop [Wed, 15 Aug 2012 08:47:23 +0000 (08:47 +0000)]
fix for 32bit overflow of currentTime killing baro/mag after 72 minutes (yes, someone noticed)
thanks to enots @ feenode.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@194 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed bug in mpu6050 accel code
timecop [Tue, 7 Aug 2012 08:00:16 +0000 (08:00 +0000)]
fixed bug in mpu6050 accel code
added mpu6050 acc scale factor fixup for es/non es chips (exposed as cli option as well)

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@191 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded support for l3g4200d i2c gyro, autodetected
timecop [Sun, 5 Aug 2012 01:57:51 +0000 (01:57 +0000)]
added support for l3g4200d i2c gyro, autodetected
added motors off in hardfault handler, so we drop to the ground on hardfault.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@190 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agobaseFlightPlus:
jihlein@hotmail.com [Sun, 29 Jul 2012 03:59:20 +0000 (03:59 +0000)]
baseFlightPlus:
1)Code modifications to compile/link with CodeBench Lite

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@189 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agobaseFlightPlus:
jihlein@hotmail.com [Sun, 29 Jul 2012 03:57:53 +0000 (03:57 +0000)]
baseFlightPlus:
1)Code cleanups as suggested by Ala42
2)Code modifications to compile/link with CodeBench Lite
3)Code additions for high speed telemetry

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@188 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoallow 0 for looptime to go back to not-rate-limited loop.
timecop [Sat, 21 Jul 2012 07:06:19 +0000 (07:06 +0000)]
allow 0 for looptime to go back to not-rate-limited loop.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@183 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agosynced with mwc 2.1. it's suprising how many "new" things in 2.1 didn't actually...
timecop [Fri, 20 Jul 2012 14:53:15 +0000 (14:53 +0000)]
synced with mwc 2.1. it's suprising how many "new" things in 2.1 didn't actually matter on a real platform.
removed camtrig stuff since it wasnt possible. somewhat replaced with aux forwarding (see below)
2.1 buzzer code changed, untested.
removed flying wing mixer. nobody used that.
added alt_hold_throttle_neutral, nav_slew_rate and looptime configuration to cli. default looptime set to 3000. changed default gyro_cmpf to 400 to sync with 2.1.
increased bmp085 oversampling
added gimbal_flags (bit 4 set) flag which, in PPM mode, forwards AUX1..4 to the lower 4 PWM outputs instead of using them as motors. set gimbal_flags=8 to test it out. output is fixed to 50Hz.
merged 2.1 gps changes (not many)
casting in gyro smoothing (nobody uses that anyway)
calibrate accel in gimbal mode, set smallangle in gyro-only mode
vtail4 mixer fix
flight tested on quadx w/ppm.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@182 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded softi2c source file (oops)
timecop [Sat, 14 Jul 2012 07:43:18 +0000 (07:43 +0000)]
added softi2c source file (oops)
changed gpio speeds to 2mhz from 50, nothing is toggling at 50mhz here. reduce ringing/noise.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@181 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded test driver for software i2c. disabled by default. no, that wasn't the cause...
timecop [Sat, 14 Jul 2012 02:00:39 +0000 (02:00 +0000)]
added test driver for software i2c. disabled by default. no, that wasn't the cause of cycletime jumps.
increased flash size to 128k, moved config data in last kbyte of that. as a result all settings are reset, please save them.
corrected hex6x mixer.
added telemetry to makefile.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@180 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoBaseFLightPlus:
jihlein@hotmail.com [Wed, 11 Jul 2012 01:08:40 +0000 (01:08 +0000)]
BaseFLightPlus:
1)Zero PID lastError on disarm

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@179 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoBaseFlightPlus:
jihlein@hotmail.com [Tue, 10 Jul 2012 22:19:14 +0000 (22:19 +0000)]
BaseFlightPlus:
1)Correct PID D term calculation, use error and pastError rather than state and pastState

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@178 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoBaseFlightPlus:
jihlein@hotmail.com [Mon, 9 Jul 2012 22:37:31 +0000 (22:37 +0000)]
BaseFlightPlus:
1)Added PID integrator hold state.  Integrate only when armed and throttle greater than minThrottle.  Likely not the final hold logic, but works for further testing.
2)Added high speed telemetry for accels and rate mode tuning.  Compile time option.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@177 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoIn BaseFlightPlus:
jihlein@hotmail.com [Sat, 7 Jul 2012 13:48:08 +0000 (13:48 +0000)]
In BaseFlightPlus:

1)Updated HEX6P and HEX6X mixers for even control power.  Used floating point equivalent of MultiWii's update
2)Updated Serial and Parallel PWM input routines per rcsnow's optimization detailed at http://www.rcgroups.com/forums/showpost.php?p=22053386&postcount=161

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@176 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoAdd high speed telemetry option. Not fully functional, just seeing if I can make...
jihlein@hotmail.com [Fri, 6 Jul 2012 01:33:25 +0000 (01:33 +0000)]
Add high speed telemetry option.  Not fully functional, just seeing if I can make a change and commit.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@175 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded pidalt stuff into cli
timecop [Mon, 2 Jul 2012 15:47:12 +0000 (15:47 +0000)]
added pidalt stuff into cli
added a modifier for set (type "set *") to see min/max values for each parameter. this is for gui stuff
bumped config VERSION
fixed 0xffff - now stuff in drv_pwm, after it was mentioned to me for the  3rd time :p
replaced some uint8_t -> uint32_t for loop counters - saving 4 to 8 bytes of flash each time. thanks goes to thee 35+ years of C experience kicad guy.
turned bitfiends into a regular struct - instant 100byte flash size reduction

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@174 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded support for outputting FrSky telemetry by silpstream @ rcgroups
timecop [Sun, 1 Jul 2012 15:32:45 +0000 (15:32 +0000)]
added support for outputting FrSky telemetry by silpstream @ rcgroups
feature TELEMETRY to enable it. when armed, telemetry is sent out the TX pin. It must be connected to 'Rx' pin of FrSky telemetry receiver via a level shifter. When disarmed, port goes back to 115200 bps for GUI.
fixed a typo in imu.c introduced by  GYRO_INTERLEAVE junk.
todo: just switch serial speed instead of reinitializing everything.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@173 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agosynced serial protocol to multiwii-dev 20120622
timecop [Sat, 30 Jun 2012 13:20:53 +0000 (13:20 +0000)]
synced serial protocol to multiwii-dev 20120622
changed booleans to bitfield struct to match with 0622
no other functional changes, and not all enhancements (like boxlight) from 0622 are implemented yet
NOT flight tested, use at your own risk.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@172 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agocommitted baseflightplus as it has been flight-tested.
timecop [Fri, 29 Jun 2012 02:36:01 +0000 (02:36 +0000)]
committed baseflightplus as it has been flight-tested.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@171 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agough.
timecop [Fri, 29 Jun 2012 02:34:34 +0000 (02:34 +0000)]
ugh.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@170 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agogit-svn-id: http://afrodevices.googlecode.com/svn/trunk@169 7c89a4a9-59b9-e629-4cfe...
timecop [Fri, 29 Jun 2012 02:15:09 +0000 (02:15 +0000)]
git-svn-id: afrodevices.googlecode.com/svn/trunk@169 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomade sonar support compiled in (lol)
timecop [Tue, 26 Jun 2012 01:36:58 +0000 (01:36 +0000)]
made sonar support compiled in (lol)
changed PPM pulse idle detect to 2.7ms per JimDrew instructions
updated keil project w /sonar source files.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@168 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoMakefile fix from zippe; Untested to build on Win32, but presumably works on Lunix...
timecop [Tue, 19 Jun 2012 05:46:55 +0000 (05:46 +0000)]
Makefile fix from zippe; Untested to build on Win32, but presumably works on Lunix, etc.
Now properly builds both Naze and FY90Q targets.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@167 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadding sonar support from sbaron, disabled by default.
timecop [Fri, 15 Jun 2012 13:53:49 +0000 (13:53 +0000)]
adding sonar support from sbaron, disabled by default.
docs: http://www.rcgroups.com/forums/showpost.php?p=21903320&postcount=3827

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@166 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agorebuild FY90Q version.
timecop [Thu, 14 Jun 2012 06:40:25 +0000 (06:40 +0000)]
rebuild FY90Q version.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@165 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed mma driver ID;
timecop [Thu, 14 Jun 2012 04:12:23 +0000 (04:12 +0000)]
fixed mma driver ID;
fixed a boner #ifdef typo in imu.c
go back to gyro glitch stuff in sensors.c
do gyrocal during acc cal as well

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@164 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded FY90Q buyild target to Makefile
timecop [Thu, 14 Jun 2012 03:35:23 +0000 (03:35 +0000)]
added FY90Q buyild target to Makefile
fixed mag calibration finally I think...
heading + mag declination calculation done using better precision.
increased gyro bias calculation to 1000.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@163 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agotook out cycle counter stuff for timing, now using systick + counter strictly. ....
timecop [Thu, 7 Jun 2012 15:29:37 +0000 (15:29 +0000)]
took out cycle counter stuff for timing, now using systick + counter strictly. ... seems improved loop precision a bit.
put gyro interleave under define. this needs to be cleaned sometime.
took out "gyro glitch" stuff that was leftover from  nintendo days.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@162 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agotrashed uvop keil file since that was system-specific stuff.
timecop [Wed, 6 Jun 2012 15:09:44 +0000 (15:09 +0000)]
trashed uvop keil file since that was system-specific stuff.
applied mwc-dev GPS code with bits of tarducopter code by sbaron. Thanks again. Moved some of the GPS config stuff into cli - gps_lpf, min/max nav speed, nav_controls_heading. Remember I don't test any GPS functionality at all, so if this makes your quad fly towards North Korea at over 9000cm/sec, this is NOT my problem.
spacing fixes in a couple files.
trashed old serial code that was under #if 0

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@161 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agooops, my retarded arm fix disabled all arming :)
timecop [Fri, 1 Jun 2012 03:15:22 +0000 (03:15 +0000)]
oops, my retarded arm fix disabled all arming :)

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@160 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agorearranged accelerometer autodetect code and allow user override by "set acc_hardware...
timecop [Thu, 31 May 2012 17:28:05 +0000 (17:28 +0000)]
rearranged accelerometer autodetect code and allow user override by "set acc_hardware" in CLI (0=autodetect,1=adxl345,2=mpu6050,3=mma845x)
added arm/disarm on left/righ roll while throttle down to  configuration options and disabled it by default. "set retarded_arm" in CLI
put gyro_cmpf_factor into settings. default is 310, can be increased to decrease acc influence. debug use only.
dropped acc_lpf_factor back to 4. those who want it at 100, make it so.
cleaned up MPU6050 driver with humanreadable register names
got rid of MMGYRO crap - no use

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@159 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agooops, forgot to commit mma845x driver.
timecop [Sat, 19 May 2012 03:07:00 +0000 (03:07 +0000)]
oops, forgot to commit mma845x driver.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@158 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded driver for MMA8452QT accelerometer
timecop [Fri, 18 May 2012 16:01:10 +0000 (16:01 +0000)]
added driver for MMA8452QT accelerometer
added mag_declination set option to cli - oops
status in cli now prints which ACC hardware is used. work in proress to show difference between hardware with MPU6050 and MPU3050

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@157 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoFix for shipping MPU6050 versions (AFS=2 fix, only affected a couple sample boards...
timecop [Thu, 17 May 2012 15:22:04 +0000 (15:22 +0000)]
Fix for shipping MPU6050 versions (AFS=2 fix, only affected a couple sample boards with MPU6000-ES, MPU6050-EL now works).

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@156 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoreadded support for failsafe (thanks rimshotcopter for bugging me about it for a...
timecop [Wed, 9 May 2012 05:29:30 +0000 (05:29 +0000)]
readded support for failsafe (thanks rimshotcopter for bugging me about it for a month)
new config ooptions for failsafe, so current settings are cleared
fixed mistake where yaw servo stuff for tri was still hardcoded even though it had configurable values in cli
reduced level default D to 20 from 100 (dunno what effect this has, shrug)
untested, enable feature FAILSAFE at your own risk.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@155 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agooops.
timecop [Sun, 6 May 2012 14:42:00 +0000 (14:42 +0000)]
oops.
mistake in serial.c which made it impossible to do 'R' anymore.
fixed.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@154 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded improved mag calibration from http://www.multiwii.com/forum/viewtopic.php?p...
timecop [Sun, 6 May 2012 09:58:03 +0000 (09:58 +0000)]
added improved mag calibration from multiwii.com/forum/viewtopic.php?p=13334#p13334 (thanks EOSBandi)
new hex file only works with Java GUI 20120504-dev :( WinGUI is still not updated. Use latest release version on downloads page if want to use WinGUI.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@153 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomerged changes from multiwii_dev 20120504. this means new serial protocol, new buzzer...
timecop [Sat, 5 May 2012 12:47:52 +0000 (12:47 +0000)]
merged changes from multiwii_dev 20120504. this means new serial protocol, new buzzer code
fixed spacing in ledring.c
defaulted acc_lpf to 100
correction in vtail4 mix (from multiwii_dev)
trashed more unused LOG_VALUES crap
no binary build since this is untested / non-flight-tested.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@152 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed motor output when using spektrum.
timecop [Fri, 4 May 2012 01:59:37 +0000 (01:59 +0000)]
fixed motor output when using spektrum.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@151 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed cli version from pre-3 stuff
timecop [Tue, 1 May 2012 00:07:22 +0000 (00:07 +0000)]
fixed cli version from pre-3 stuff
increased gyro complementary filter factor to 500 to reduce acc influence (should hopefully fix random walk stuff?)
fixed a bug in servotilt stuff (maybe?)

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@150 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofix for pwm preload (not possible with this firmware, reported by marcin)
timecop [Tue, 10 Apr 2012 07:19:57 +0000 (07:19 +0000)]
fix for pwm preload (not possible with this firmware, reported by marcin)
added gimbal flags to mixer. allows making gimbal tilt only or pantilt or disabling all pan/tilt by aux3/4

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@149 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofix for Makefile building of FY90Q components.
timecop [Tue, 10 Apr 2012 00:24:11 +0000 (00:24 +0000)]
fix for Makefile building of FY90Q components.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@148 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agocorrected gyro scale factor for MPU3000/6000
timecop [Mon, 9 Apr 2012 15:01:51 +0000 (15:01 +0000)]
corrected gyro scale factor for MPU3000/6000
fixed fy90q battery adc (which didn't actually exist)
spektrum channel order is configurable by 'map' command (maybe).

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@147 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoInitial support for FY90Q hardware
timecop [Sun, 8 Apr 2012 14:46:50 +0000 (14:46 +0000)]
Initial support for FY90Q hardware

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@146 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed acczero offsets to 0 on initial eeprom cleanup
timecop [Sat, 7 Apr 2012 15:29:00 +0000 (15:29 +0000)]
fixed acczero offsets to 0 on initial eeprom cleanup
added fifo mode to adxl345 driver, currently disabled. work in progress.
fixed output for PWM 5-8 when used with PPM + camstab + abovequad configs.
fixed baro, now alt-hold actually works. silly copypaste typo.
trashed all remaining parts of power meter and lcd configuration stuff. useless.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@145 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded a fix for roundf() and friends for keil
timecop [Fri, 6 Apr 2012 02:23:25 +0000 (02:23 +0000)]
added a fix for roundf() and friends for keil
added float-based acc lpf, acc_lpf_factor values now changed, its 1/factor now, values 60+ and larger filter heavier.
playing with release MPU6050 hardware, looks like acc1G is fucked, as predicted
bug in serial output (forgot to output armed bit to GUI, estalt is /10)

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@144 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agowhoops. forgot to hide mixerConfiguration stuff inside cfg. struct. so nothing beside...
timecop [Thu, 5 Apr 2012 15:05:22 +0000 (15:05 +0000)]
whoops. forgot to hide mixerConfiguration stuff inside cfg. struct. so nothing besides quadx worked. nice one.
also fix for eeprom version storage.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@143 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomostly merged multiwii 2.0 into naze8 port.
timecop [Tue, 3 Apr 2012 10:09:12 +0000 (10:09 +0000)]
mostly merged multiwii 2.0 into naze8 port.
remaining sensors updates.
not flight tested!

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@142 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agocommit naze8 code before 2.0 merge
timecop [Tue, 3 Apr 2012 03:49:24 +0000 (03:49 +0000)]
commit naze8 code before 2.0 merge
get rid of stm32 stuff, useless.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@141 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agofixed up mpu6050 DMP stuff.
timecop [Mon, 2 Apr 2012 16:08:24 +0000 (16:08 +0000)]
fixed up mpu6050 DMP stuff.
increased i2c send buffer to 16bytes (was needed for DMP)
decreased interrupt priority of both uarts - with GPS running at 115200, this would cause I2C errors (i2c interrupt must be highest priority).
GPS was tested with $25 FMP04 GPS module ghettoed up outside my window, locking 5 satellites in a few minutes.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@140 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoMakefile fix by g1pete.
timecop [Sat, 31 Mar 2012 06:07:50 +0000 (06:07 +0000)]
Makefile fix by g1pete.
now not trying to build stmloader by arm-eabi-gcc.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@139 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agorenamed 'tilt_*_prop' stuff into gimbal_[axis]_gain and added more dynamically-config...
timecop [Sat, 31 Mar 2012 03:52:16 +0000 (03:52 +0000)]
renamed 'tilt_*_prop' stuff into gimbal_[axis]_gain and added more dynamically-configurable gimbal/camstab stuff into cli.
whitespace fixes in mw.h and trashed the old XA-XB based mixer setting leftovers.
settings are cleared again due to updated config struct.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@138 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded configurable motor and servo period settings (50-498Hz). both set by cli, defau...
timecop [Fri, 30 Mar 2012 09:49:00 +0000 (09:49 +0000)]
added configurable motor and servo period settings (50-498Hz). both set by cli, default is 50 for servo, 400 for motors.
removed feature digital_servo since its now set by cli instead.
added proper tx end check into uart, to remove delay inside printing out set values and tx buffer overrun during help()
instead of passing a bunch of params to pwm driver, made a config struct
fixed a bug in gps baudrate
fixed typo in stmloader.c
whitespace / indentation cleanups in various drivers

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@137 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded windows batch file to make uploading firmware easier. it calls command line...
timecop [Thu, 29 Mar 2012 15:02:20 +0000 (15:02 +0000)]
added windows batch file to make uploading firmware easier. it calls command line version of STMFlashLoader.
added stmloader modified w/sending 'R' at start.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@135 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agomain uart baud rate commit before tearing stuff up
timecop [Thu, 29 Mar 2012 06:00:22 +0000 (06:00 +0000)]
main uart baud rate commit before tearing stuff up

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@134 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded gps baudrage config setting
timecop [Tue, 27 Mar 2012 12:55:44 +0000 (12:55 +0000)]
added gps baudrage config setting
renamed gcc startup file to .S (breaks some lunix dudes apparently)
ppm sum handler waws hardcoded to TIM2 instead of using passed parameter. fixed. (thanks sbaron)
invalid data from pwm/ppm read are returned as midrc, not 1500. (robert_b)

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@133 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded separate yaw deadband from issue #6 after fixing some stuff. config version...
timecop [Mon, 26 Mar 2012 16:53:40 +0000 (16:53 +0000)]
added separate yaw deadband from issue #6 after fixing some stuff. config version bumped again.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@132 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agonice boner in PWM output
timecop [Mon, 26 Mar 2012 16:11:28 +0000 (16:11 +0000)]
nice boner in PWM output
now fixed.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@131 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agosynced code with multiwii 2.0 release
timecop [Mon, 26 Mar 2012 15:28:36 +0000 (15:28 +0000)]
synced code with multiwii 2.0 release
split uart2 initialization inside drv_uart. added receive data callback to use either with GPS or spektrum satellite
added spektrum satellite support, also freeing up 4 motor outputs for hexa/octo/camstab
configurable acc lpf and gyro lpf via cli
configurable (build-time) temperature lpf on baro. seems mostly useless.
fixed a nice boner bug in mag code which ended up multiplying magADC twice with magCal data.
fixed mpu3050 driver to allow configurable lpf, also broke other stuff in the process. considering moving this sort of stuff to "init" struct for sensor.
pwm driver rewritten to fully disable pwm/ppm inputs (such as using spektrum satellite case)
cleaned up double math in gps.c to use sinf/cosf etc
removed TRUSTED_ACCZ since its useless anyway
whitespace cleanup

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@130 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agotook out all traces of GPS stuff
timecop [Sun, 25 Mar 2012 08:28:22 +0000 (08:28 +0000)]
took out all traces of GPS stuff
removed spektrum support which was broken anyway
added i2c unstick stuff to clock out slaves on power up
moved stuff into separate files in preparation for multiwii 2.0 merge

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@129 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agoadded printing detected sensors in 'status' in cli
timecop [Sat, 24 Mar 2012 15:43:09 +0000 (15:43 +0000)]
added printing detected sensors in 'status' in cli
took out leftovers of old dynamic mixer binary protocol - now cli sets it.
added some mpu6050 DMP stuff - all disabled by default, only for testing stuff. ignore it.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@128 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61

7 years agocommitted (untested) GPS support by sbaron;
timecop [Sat, 24 Mar 2012 09:27:40 +0000 (09:27 +0000)]
committed (untested) GPS support by sbaron;
fix for channel map cli stuff by simonk.
reindented some code, so changes are large.

git-svn-id: http://afrodevices.googlecode.com/svn/trunk@127 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61