Commit graph

  • 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. timecop@gmail.com 2013-08-28 01:26:10 +00:00
  • 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. Dominic Clifton 2013-08-27 19:16:34 +01:00
  • fa7eecac18 reload GPS pids on each eeprom read timecop@gmail.com 2013-08-27 07:22:48 +00:00
  • f9b48925fa marking some static timer lists const. timecop@gmail.com 2013-08-25 15:12:12 +00:00
  • 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. timecop@gmail.com 2013-08-25 12:45:36 +00:00
  • 4bc6d77579 OLIMEXINO - Disable usage of LEDs by default. Dominic Clifton 2013-08-24 18:08:46 +01:00
  • f663a57613 improved altitude hold thanks to Luggi09 timecop@gmail.com 2013-08-24 14:57:26 +00:00
  • 659a8f537f add support to gcc Makefile to make map file for debugging. timecop@gmail.com 2013-08-24 11:06:34 +00:00
  • 92a68041a8 Merge remote-tracking branch 'multiwii/upstream' into upstream Dominic Clifton 2013-08-24 11:31:23 +01:00
  • 1ce9210c45 Ensuring some const data is in flash not SRAM. Dominic Clifton 2013-08-24 11:14:38 +01:00
  • 7dcc9d47ad Adding map generation to makefile Dominic Clifton 2013-08-24 11:13:37 +01:00
  • 01376de3e5 marking some more stuff const that shouldn't be changing. thx Hydra for the catch. timecop@gmail.com 2013-08-24 10:20:55 +00:00
  • 1441d46323 Fixed issue #15, new uart building under gcc toolchain, thanks! timecop@gmail.com 2013-08-22 13:37:45 +00:00
  • cbb580f753 rewritten drv_uart to suck slightly less tested w/o GPS timecop@gmail.com 2013-08-22 07:48:07 +00:00
  • 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 :) timecop@gmail.com 2013-08-20 11:44:49 +00:00
  • fbef1aa284 changed pwmGPIOConfig() signature to better show that last parameter is pin mode. timecop@gmail.com 2013-08-20 00:34:21 +00:00
  • 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] timecop@gmail.com 2013-08-19 23:29:20 +00:00
  • d0704edfbf Merge remote-tracking branch 'multiwii/upstream' into upstream Dominic Clifton 2013-08-15 21:52:35 +01:00
  • 2d11f659c6 Fixing IFDEFs for FY90Q target Dominic Clifton 2013-08-15 21:48:37 +01:00
  • 76968efd5e Fixing makefile for missing includes for gpio and spi drivers. Dominic Clifton 2013-08-15 21:17:03 +01:00
  • 3b8c1841f8 new SPI2 driver w/testcase 5883 and 6050 driver updates timecop@gmail.com 2013-07-02 02:52:33 +00:00
  • 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 timecop@gmail.com 2013-07-02 00:58:50 +00:00
  • 3afeb3d1c8 initial take at configurable FEATURE_3D completely untested and may attempt to kill you when enabled. no binary. timecop@gmail.com 2013-06-30 07:11:49 +00:00
  • e010e3a354 Cleaned up SetSysClock to remove duplicated code when configuring HSE or HSI timecop@gmail.com 2013-06-30 06:25:24 +00:00
  • e4ea700fe0 reverted cli line editing stuff - was more trouble than its worth, and caused issues with hercules timecop@gmail.com 2013-06-29 15:48:43 +00:00
  • 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. timecop@gmail.com 2013-06-29 14:09:54 +00:00
  • eec35a20fd fixed gcc build, thanks Luggi09 for the catch. timecop@gmail.com 2013-06-26 23:19:28 +00:00
  • 4bd505972d renaming of serial bool returning vars into isFoo(), also fixed bool returned as uint16_t type timecop@gmail.com 2013-06-25 07:09:47 +00:00
  • cae6bc86f1 Merge branch 'upstream' of github.com:multiwii/baseflight into upstream Dominic Clifton 2013-06-24 20:34:33 +01:00
  • 539f2cb6db acctrim was broken because changes were never getting saved. timecop@gmail.com 2013-06-22 09:11:41 +00:00
  • c4a1c57b91 careful flight testing may commence timecop@gmail.com 2013-06-20 01:17:20 +00:00
  • 82130ca60f amazing patch from jef78m for cli set timecop@gmail.com 2013-06-20 01:15:42 +00:00
  • c6b43776e4 removed data copying in i2c write - this wasn't needed, we'll see if rabbit2 "developers" will "fix" this bug too. timecop@gmail.com 2013-06-19 06:45:39 +00:00
  • ab75f221bb new printf() is too fucking fast, causing DMA buffer overrun in UART transmit. fixed that. Doesn't affect GCC targets. got rid of more 16bit ints in new pid controller. timecop@gmail.com 2013-06-19 03:10:45 +00:00
  • 76617bc7e4 removed dependency on built-in printf() when using keil - they provided a much better internal one than GNU got rid of int16 garbage in mwc pid controller - we aren't running on tarduino timecop@gmail.com 2013-06-18 08:11:56 +00:00
  • 4e94fd07e5 + added alternative PID controller from http://www.multiwii.com/forum/viewtopic.php?f=8&t=3671 + this is a per-profile setting, and PIDs CHANGE from default multiwii ones. check the above forum post for PID examples. set pid_controller = 0 for default multiwii, or 1 for new one. = went back to clearing clibuffer after each command timecop@gmail.com 2013-06-16 08:49:36 +00:00
  • 415600b447 went back to non-casted version of mag buffer conversion to int16 to allow (proper) compilers to insert REV16 timecop@gmail.com 2013-06-12 03:07:26 +00:00
  • 58d362d33e corrected magnetometer alignment bug found by CrashPilot1000 - during mag calibration, axes must be swapped per sensor alignment, which didn't happen. timecop@gmail.com 2013-06-12 02:45:56 +00:00
  • 5de9dc47e0 fix boxorder output (retarded workaround for stupidity in multiwiigui) timecop@gmail.com 2013-06-02 06:28:35 +00:00
  • ef9de70161 [PATCH] GPS: Signal Strength for u-Blox only timecop@gmail.com 2013-05-29 09:11:38 +00:00
  • 61caceb861 [PATCH 4/4] Make: unbrick target to flash w/ bootloader pins shortened timecop@gmail.com 2013-05-29 00:10:21 +00:00
  • 96af1bd530 [PATCH 3/4] Add SERIAL_DEVICE to the Makefile for configuring the flash target timecop@gmail.com 2013-05-29 00:09:33 +00:00
  • 04eb65c883 [PATCH 2/4] gitignore timecop@gmail.com 2013-05-29 00:08:38 +00:00
  • 73f599c4e9 [PATCH 1/4] add make target for flashing naze from linux timecop@gmail.com 2013-05-29 00:07:23 +00:00
  • 01572cbb96 fix for micros() when not running at default 72MHz. Was affecting intrc-only operation at 64MHz. Updated uvproj to latest keil mdk timecop@gmail.com 2013-05-29 00:05:33 +00:00
  • 2e64a5d4e1 premature buffer overrun fix for completion add ctrl+u to erase line timecop@gmail.com 2013-05-10 03:00:02 +00:00
  • b6fc652b20 beginnings of cli editing support by cehteh; (still buggy) added and began work on integrating failsafe_detect_threshold got rid of acc_lpf_for_velocity since that seemed no longer used. timecop@gmail.com 2013-05-09 12:26:11 +00:00
  • 3f8fc1b509 oops, this is NOT ready for public consumption yet. timecop@gmail.com 2013-05-02 14:17:05 +00:00
  • c26603dd72 some more minor updates from 2.2 added variable for gyro_cmpfm factor (mag) to configurables changed gyro_cmpf factor to 600 (higher gyro influence) got rid of GYRO_INTERLEAVE stuff (didn't work, obsolete) got rid of applyDeadband hacks, invsqrt hacks, and other shit. ifdef'd original baseflight attitude/heading calcs w/new 2.2 routines fixed cockup in altitude calculation w/applyDeadband remaining: GPS timecop@gmail.com 2013-05-02 14:07:52 +00:00
  • 9cde60b285 MERGE - Adding GDB support to the makefile. Use the build option DEBUG=GDB to have the .elf file contain debugging symbols. timecop@gmail.com 2013-04-09 04:57:42 +00:00
  • fdc9d219d3 Adding GDB support to the makefile. Use the build option DEBUG=GDB to have the .elf file contain debugging symbols. Dominic Clifton 2013-04-09 00:00:19 +02:00
  • f2c7ad585a Adding GDB support to the makefile. Use the build option DEBUG=GDB to have the .elf file contain debugging symbols. timecop@gmail.com 2013-04-09 04:57:42 +00:00
  • 4bde0d0c9c MERGE - OLIMEXINO - Initial support for the OLIMEXINO board. timecop@gmail.com 2013-04-07 13:18:37 +00:00
  • 4da8accfc0 OLIMEXINO - Initial support for the OLIMEXINO board. Dominic Clifton 2013-04-06 21:35:29 +02:00
  • f2a931d248 OLIMEXINO - Initial support for the OLIMEXINO board. timecop@gmail.com 2013-04-07 13:18:37 +00:00
  • 880b7418fd fixed bug with telemetry/powermeter labels in CLI - wasn't synced with enum properly. baro altitude telemetry fix. timecop@gmail.com 2013-04-07 09:24:31 +00:00
  • 98d0581ac2 part 2 of ?? of mw2.2 merge (still not flight-tested, so no binaries) defaulted to looptime of 3500 (yea, yea) rewrote baro stuff to match mwc2.2 - both supported sensors now return temperature and pressure, which is used in altitude calculation code rewrote hmc5883 driver to include calibration inside the driver file instead of calling parts of calibration from userspace. it will now blink LED1 while calibrating some parts remaining to do. timecop@gmail.com 2013-03-23 15:58:18 +00:00
  • 491b3627f6 begin initial merge of 2.2 features mw2.2-merged stuff: * implemented profiles 0-2 (called 'setting' in mwiigui) * merged in MSP changes including profile switch * cleaned up rc / aux switch stuff in mw.c based on 2.2 rewrite * main loop switch for baro/sonar shit adjusted todo: basically the rest of 2.2 changes (i think some minor imu/gps/baro updates) baseflight-specific stuff: * made boxitems transmission dynamic, based on enabled features. no more GPS / camstab trash if it's not enabled * cleaned up gyro drivers to return scale factor to imu code * set gyro_lpf now controls every supported gyro - not all take same values, see driver files for allowed ranges, in case of invalid lpf, defaults to something reasonable (around 30-40hz) timecop@gmail.com 2013-03-14 14:03:30 +00:00
  • bba9bc291f added some more configurable frobs to cli. commit before 2.2 merge. timecop@gmail.com 2013-03-11 06:18:20 +00:00
  • 600f50ecac added MSP_UID patch from cGiessen added sending cell voltages (faked) via frsky telemetry by fiendie two additional cli commands (aux and dump) from jef79m - aux allows setting switches from command line, dump creates a copy-pasteable config which can be sent to a new board. timecop@gmail.com 2013-03-04 00:17:50 +00:00
  • c88614046b reversed o/n meaning from previous commit to actually mean what I said :) n = new rev (fullscale acc) o = old rev (halfscale acc) timecop@gmail.com 2013-02-22 15:57:29 +00:00
  • bc627783f8 removed mpu6050_scale cli since it's now autodetected. the value is now printed in the status command, after MPU6050 as MPU6050.n = new revision, MPU6050.o = old revision. timecop@gmail.com 2013-02-22 11:04:32 +00:00
  • fc185b8e15 rewrote mpu6050 revision sensing code to match that of eMPL from Invensense. Also changed scalefactor for acc to 256/512 to match multiwii code. untested/etc, proceed with caution. timecop@gmail.com 2013-02-21 08:59:27 +00:00
  • e0af7acf4f corrected short options for getopt. timecop@gmail.com 2013-02-16 11:16:53 +00:00
  • f5616f1437 add -n parameter to stmloader to prevent sending reboot sequence in case STM32 was already in bootloader mode (by fiendie) timecop@gmail.com 2013-02-15 09:53:24 +00:00
  • 4c0fe94072 further accuracy improvement for mag calculation. timecop@gmail.com 2013-02-07 04:59:29 +00:00
  • d1d6a5d5ef very nice proper magnetometer vector rotation from crashpilot1000 timecop@gmail.com 2013-02-06 04:08:10 +00:00
  • 785443789c third time's the charm (fixed + confirmed tiltmix gimbal) timecop@gmail.com 2013-01-16 11:11:13 +00:00
  • fc4693af3a let's try this again (simple gimbal sign fix) timecop@gmail.com 2013-01-12 12:49:26 +00:00
  • a1ac53c841 changed cpu to CBT6 in release build; maybe fixed simplegimbal mixer; timecop@gmail.com 2013-01-12 08:26:24 +00:00
  • 2ee7bb3162 wrong commit. should be part of a new branch. bouwens.mehl@gmail.com 2013-01-08 20:47:51 +00:00
  • f34c57833e Kalman filter integration bouwens.mehl@gmail.com 2013-01-08 20:05:49 +00:00
  • bd08f337e7 Ah, finally fixed spektrum stuff. after PWM rewrite, spektrum init ended up before pwm init, so when rcReadRawFunc was assigned, it was always set to PWM. oops. Thanks to Cerberis @ irc for the patch. timecop@gmail.com 2013-01-05 01:13:18 +00:00
  • 006e6629f6 Added GIMBAL_MIXTILT (16) to gimbal_flags. Setting gimbal_flags=16 will use "mixed" gimbal i.e. SERVO_MIX_TILT from MultiWii. Untested, but should work(tm). timecop@gmail.com 2012-12-27 13:23:43 +00:00
  • e7bc3cc38e oops. spektrum support was broken, now fixed. timecop@gmail.com 2012-12-24 14:54:37 +00:00
  • af7e135d75 fix from frog32 for external adc channel allocation; fix from mwc forum for frsky telemetry gps output timecop@gmail.com 2012-11-12 09:08:16 +00:00
  • 12dfa8915d slight improvement to motion threshold calculation timecop@gmail.com 2012-10-27 07:34:45 +00:00
  • 23acf529d7 implemented using one of RC inputs as ADC channel for power meter. added MSP_ACC_TRIM stuff for android GUI. timecop@gmail.com 2012-10-19 02:43:27 +00:00
  • e59f639951 made gyrodiff for motion detection configurable, 0 = disabled timecop@gmail.com 2012-10-14 00:34:23 +00:00
  • 0976133f1f 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 timecop@gmail.com 2012-10-13 12:08:56 +00:00
  • 9fc43d5357 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! timecop@gmail.com 2012-10-08 13:50:48 +00:00
  • 021b486916 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. timecop@gmail.com 2012-10-07 18:03:42 +00:00
  • 193902079c 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. timecop@gmail.com 2012-10-07 14:58:12 +00:00
  • 005308b430 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 timecop@gmail.com 2012-10-06 14:40:24 +00:00
  • 4a4c0d585d sign error in HEX6P mix. timecop@gmail.com 2012-09-23 11:41:02 +00:00
  • 1dea2b3b3b 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 timecop@gmail.com 2012-09-21 04:12:17 +00:00
  • 9d5bfdb60b forgot to add lpf_for_velocity into tunables for new althold timecop@gmail.com 2012-09-20 01:47:22 +00:00
  • ab509889ca stmloader serial fix from lianj timecop@gmail.com 2012-09-19 23:22:30 +00:00
  • 2544c290ae enabled mahowik althold by default. let the users figure it out. timecop@gmail.com 2012-09-19 11:14:12 +00:00
  • 817eb09b8a 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 timecop@gmail.com 2012-09-18 13:29:35 +00:00
  • f3ce558871 flying wing servo output fix timecop@gmail.com 2012-09-12 10:39:30 +00:00
  • a51bb66ad4 more mahowik althold changes. at least it doesn't shoot up in the air now on enable... but still nothing impressive. timecop@gmail.com 2012-09-12 07:09:45 +00:00
  • a139b96de6 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. timecop@gmail.com 2012-09-12 02:15:14 +00:00
  • 8e16d83a37 testing: merged patch from http://www.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 timecop@gmail.com 2012-09-10 09:11:22 +00:00
  • 70884d69d5 bring back flying wing w/all configuration options config version bumped, settings cleared. timecop@gmail.com 2012-09-09 11:35:35 +00:00
  • b94c13b1c5 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. timecop@gmail.com 2012-09-08 12:53:55 +00:00
  • 4ed57b2696 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). timecop@gmail.com 2012-09-08 08:15:16 +00:00
  • ad1939591f oops, printf stuff forgotten to add to uv project. timecop@gmail.com 2012-09-06 06:54:06 +00:00
  • 3cd8e4e3f6 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. timecop@gmail.com 2012-09-06 06:35:02 +00:00
  • 98cba890e1 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. timecop@gmail.com 2012-09-05 23:44:55 +00:00