Commit graph

  • 26aa644999 Fixes array out of bound access for lookupPitchRollRC and lookupThrottleRC. Johannes Kasberger 2013-11-07 16:59:36 +01:00
  • b2f163d2ac whitespace fixes in previous commit dongie 2013-11-07 22:12:28 +09:00
  • b7db6a04d1 Merge pull request #14 from schugabe/typepunnedwarning dongie 2013-11-07 05:07:19 -08:00
  • 6ab48fc438 Revert new PID stuff and move it to a separate branch for now. fiendie 2013-11-07 13:15:31 +01:00
  • 733f1ef51b fixed compiler warning in cliset Johannes Kasberger 2013-11-07 11:04:45 +01:00
  • 14f087a140 Merge pull request #12 from luggi/rotationfailfix dongie 2013-11-06 03:03:31 -08:00
  • 2d029105a5 fixed rotation fail Lukas S 2013-11-04 00:23:29 +01:00
  • c14e7cf59f whitespace and formatting cleanups from latest commit dongie 2013-11-03 12:21:22 +09:00
  • 7c723cb184 Merge pull request #11 from luggi/newpid dongie 2013-11-02 19:57:30 -07:00
  • b996b26cbb new Baseflight PID Lukas S 2013-11-03 03:40:16 +01:00
  • bff260c7c6 logic and whitespace fixes in gps passthrough dongie 2013-11-02 22:51:56 +09:00
  • 05a61e9cda more ignores added dongie 2013-11-02 22:48:44 +09:00
  • ab6df2e317 Merge pull request #8 from disq/gps_passthrough dongie 2013-11-02 06:45:16 -07:00
  • 33de2191df fuck git dongie 2013-11-02 16:59:32 +09:00
  • 29a9507c15 adding untested (and probably non-working) airplane mixer from mwc 2.3 flaperons not implemented (too hacky) flaps should work dongie 2013-11-02 16:22:30 +09:00
  • f4eea64805 Merge pull request #6 from disq/gps_nodelay dongie 2013-11-02 00:01:42 -07:00
  • da0669ef22 increment state_position later, get rid of lte in favor of lt comparisons Kemal Hadimli 2013-11-02 08:55:27 +02:00
  • bd8b1a1c8f cleaned up cliMotor(), added MSP_SET_MOTORS and enabled CAP_DYNBALANCE so the motors can be controlled from GUI dongie 2013-11-02 15:09:46 +09:00
  • d7b99e7938 Merge branch 'upstream' of https://github.com/davibe/baseflight into davibe-upstream dongie 2013-11-02 14:40:50 +09:00
  • e1087cf921 fix returned size in MSP_MISC, should correct CRC errors in other GUIs and correctly work with MSP_SET_MISC in MultiWiiConf dongie 2013-11-02 12:40:56 +09:00
  • 1990c6a67e add new gps type dongie 2013-11-02 11:14:25 +09:00
  • c4dd556f3d gps passthrough cli command Kemal Hadimli 2013-10-29 19:35:13 +02:00
  • 091c77592a gps: wait for gps write buffer to empty before writing more Kemal Hadimli 2013-11-01 23:19:36 +02:00
  • 567e7f7cc8 gps: keep state position use it to execute partial initialization code, get rid of delay() calls Kemal Hadimli 2013-10-31 21:08:48 +02:00
  • 77d455f82b more shit to ignore dongie 2013-11-02 08:55:27 +09:00
  • b65c45eb7c adding more stuff to ignore dongie 2013-11-02 08:34:30 +09:00
  • 7eec3aec9e add untested mixers - HEX6H, dual/single copter, to match mixer IDs with MultiWiiConf dongie 2013-11-02 08:17:31 +09:00
  • 203e46daa6 Enable automatic reset after (re)flashing, closes issue #19 timecop@gmail.com 2013-11-01 22:47:25 +00:00
  • 786d727705 Add cli 'motor' command Davide Bertola 2013-11-01 11:28:29 +01:00
  • 5107130ac0 remove stm32_gpio.c from project and fix EXTI-using drivers w/local version of gpioExtiLineConfig. timecop@gmail.com 2013-11-01 03:02:33 +00:00
  • 609df47cd4 tri gyro data reading fix - closes issue #18 timecop@gmail.com 2013-11-01 00:47:05 +00:00
  • 639f534c31 mag headfree fix after sensor unfucking thx Luggi09 timecop@gmail.com 2013-10-30 13:39:05 +00:00
  • 35f0a8e4b0 old altitude calculation used again, added lpf for accZ by Luggi09 timecop@gmail.com 2013-10-30 11:57:54 +00:00
  • 2d076db908 Built firmware to match r460. timecop@gmail.com 2013-10-28 23:49:06 +00:00
  • e19aa61753 OK, tarduino dudes aren't gonna fix their shit. So, let's live with it. timecop@gmail.com 2013-10-28 00:58:32 +00:00
  • 241de2455e until multiwii retards fix their shit this is the only solution timecop@gmail.com 2013-10-27 15:30:20 +00:00
  • 5bbf2bc88d rewrote box serialization to not use a buffer, also maybe fixed mismatched boxes in GUI (thx Luggi09) timecop@gmail.com 2013-10-27 11:40:45 +00:00
  • d63c1f0604 Properly set ADXL345 driver default orientation (thx enots) Fixed compile error in i2c_soft driver which still used old GPIO init syntax. timecop@gmail.com 2013-10-24 11:34:32 +00:00
  • 7ce9aab3d8 fixing servo output for flying_wing w/new servo reorganization timecop@gmail.com 2013-10-24 00:37:20 +00:00
  • 35927540b1 cleaning up some misc fuckups from msp handler timecop@gmail.com 2013-10-23 09:52:04 +00:00
  • 779dfe8a92 separate all telemetry code and add option to use softserial for telemetry. to use, set softserial_baudrate=9600, softserial_inverted=1 and telemetry_softserial=1 then enable feature TELEMETRY. by disq timecop@gmail.com 2013-10-23 09:47:38 +00:00
  • 47a4d30358 fixed cli status command (thx alexk) moved mpuscale into core struct since it's not a changeable setting timecop@gmail.com 2013-10-21 00:22:33 +00:00
  • 8d7f82dc75 added ability to specify arbitrary roll/pitch/yaw translation for board mounting by alu. this allows to mount FC vertically/upside down/etc easily. timecop@gmail.com 2013-10-19 09:56:29 +00:00
  • 6b93f06e49 corrected mag task switcher for good this time timecop@gmail.com 2013-10-19 09:53:52 +00:00
  • 134a37d811 corrected a bug that would cause motors to spin up after saving parameters in 3D mode, thx englishman. timecop@gmail.com 2013-10-18 15:38:39 +00:00
  • c1d82bcf46 fixed bug in task state machine introduced by re-adding gps thread. thanks to alu for catching it. timecop@gmail.com 2013-10-14 22:42:32 +00:00
  • ca7d7e32f6 removed some double promotions that sneaked in, as well as replaced fabs() with float-only fabsf() version. trashed doubles from _atof(). Considering trashing that whole function for KEIL builds. timecop@gmail.com 2013-10-13 16:19:46 +00:00
  • 30ded7ff04 Beginning of the great GPS unfucking. * Proper initialization sequence framework for various supported GPS types. NMEA will now auto-detect its baud rate based on received frames. * As a result of the above, gps_baudrate has been changed to enum, to only allow fixed rates. (GPS baudrate, -1: autodetect (NMEA only), 0: 115200, 1: 57600, 2: 38400, 3: 19200, 4: 9600) * UBX binary initialization at any specified baudrate with auto-reconnect on signal loss. * GPS thread to handle initialization, signal loss and configuration. No longer does GPS need to be powered before FC, and on GPS reconnect, it will be re-initialized if needed. MTK NMEA/binary initialization is omitted for now, as I can't find my MTK GPS GPS deltaTime can be calculated to display update rate. timecop@gmail.com 2013-10-13 15:25:45 +00:00
  • 04560808e7 implemented MSP_MISC get/set to support 'SETTINGS' tab of mwcgui timecop@gmail.com 2013-10-13 08:58:47 +00:00
  • 07055c8872 fixing initializion for anglesrad[] add drv_softserial to common drivers in Makefile timecop@gmail.com 2013-10-12 08:07:08 +00:00
  • c682f1f21e Softserial can now be enabled/disabled via the SOFTSERIAL feature switch in the command line. Softserial baud rate can be set via softserial_baudrate setting. Added input & output inversion support, use softserial_inverted setting by Dominic Clifton timecop@gmail.com 2013-10-12 07:46:55 +00:00
  • 9ebd82c5ef merged in mwii2.3 generic servo handler. completely untested. timecop@gmail.com 2013-10-12 07:03:01 +00:00
  • 37b73a057b core.numRCChannels now set by RC drivers to show max inputs available. timecop@gmail.com 2013-10-12 06:58:28 +00:00
  • 6bbc8fdb22 fix accZ/shake detection when copter upside down. oops. timecop@gmail.com 2013-10-12 06:57:31 +00:00
  • a9b094dca6 fixing buzzer related compilation errors on OLIMEXINO target [by Dominic Clifton] moved alignSensors from drv_system to utils updating uvproj to keil5 timecop@gmail.com 2013-10-12 02:04:08 +00:00
  • ed3a3e683c Softserial can now be enabled/disabled via the SOFTSERIAL feature switch in the command line. Softserial baud rate can be set via softserial_baudrate setting. Added input & output inversion support, use softserial_inverted setting. Dominic Clifton 2013-10-12 02:30:47 +01:00
  • dd0a962682 fixing buzzer related compilation errors on OLIMEXINO target. Dominic Clifton 2013-10-11 22:17:49 +01:00
  • d8e9282f04 Merge remote-tracking branch 'multiwii/upstream' Dominic Clifton 2013-10-11 21:39:40 +01:00
  • 3bb1063001 fixed buzzer on rev5 boards; added experimental gyro-based headfree boxes timecop@gmail.com 2013-10-04 14:36:34 +00:00
  • 800ce6bdf7 fixed a fuckup with yaw_rate that was caused by more 8bit leftover garbage fixed althold vel/constrain typo thx Marcin flight-tested this build on my shitcopter, CAREFUL flight testing may commence. timecop@gmail.com 2013-10-04 01:51:31 +00:00
  • 891bce4e19 reset heading to zero when calibrating gyro w/stick combo on hardware without mag timecop@gmail.com 2013-10-02 02:29:52 +00:00
  • 3744f36895 calculate heading using gyro-only on boards without mag - idea by Cesco added constants for gyro/acc/baro cal and fixed calibration to add /2 warning cleanup in drv_serial.c timecop@gmail.com 2013-10-02 02:18:14 +00:00
  • 5332b78200 simplify serialrx by Cesco fix bug in softserial with digitalIn usage (todo rewrite this properly) timecop@gmail.com 2013-10-02 00:10:40 +00:00
  • 767babed1d Merge remote-tracking branch 'multiwii/upstream' Dominic Clifton 2013-10-01 22:31:38 +01:00
  • 750fea4b80 Merge branch 'softserial' Dominic Clifton 2013-10-01 22:16:25 +01:00
  • 8003d06049 Totally rework software serial to provide tx at the same time as rx using only one timer. timecop@gmail.com 2013-10-01 00:07:44 +00:00
  • fa810e907a some whitespace and formatting cleanups on the last commit. also changed GPIO_GetInputDataBit to use proper digitalIn() api timecop@gmail.com 2013-10-01 00:25:56 +00:00
  • 28d5927836 Totally rework software serial to provide tx at the same time as rx using only one timer. timecop@gmail.com 2013-10-01 00:07:44 +00:00
  • 7c595e4110 started merging in generic servo handler timecop@gmail.com 2013-09-30 23:42:44 +00:00
  • b92c3fa192 Replacing calls to isUartTransmitEmpty with isSoftSerialTransmitBufferEmpty. Replacing remaing calls to uartWrite with serialWrite. Adding isSoftSerialTransmitBufferEmpty to the serial API. Adding serialSet/GetBaudRate to the serial API. Since softSerial does not implement serialSetBaudRate some GPS serial initialisation code has been updated. Dominic Clifton 2013-10-01 00:24:23 +01:00
  • 2ff881aa69 Renaming serialRead to softSerialRead. Adding serialRead to serial API and updating calls to uartRead and softSerialRead to use the serial API. Renamed uartPrint to serialPrint which now works on any serialPort implementation. Dominic Clifton 2013-09-30 23:30:12 +01:00
  • a6f6a5e28b Renaming isSerialAvailable to uartTotalBytesWaiting. Renaming serialAvailable to softSerialTotalBytesWaiting. Adding serialTotalBytesWaiting to serial API and updating calls to the former methods to use the serial API. Dominic Clifton 2013-09-30 23:05:53 +01:00
  • 97f54561f0 Replacing calls to serialWriteByte(softSerial_t*, char) with calls to serialWrite(serialPort_t*, char). This completes the proof of concept for polymorphic serial port implementations (uartPort and softSerialPort). Dominic Clifton 2013-09-30 20:29:10 +01:00
  • 6425877b2c First cut at polymorphic serial port implementation. Split serialPort_t into uartPort_t and serialPort_t. Calls to uartWrite() can now be replaced with calls to serialWrite(). Dominic Clifton 2013-09-30 20:13:24 +01:00
  • c950dbea09 Totally rework software serial to provide tx at the same time as rx using only one timer. Dominic Clifton 2013-09-07 01:08:18 +01:00
  • 2272e1a5a6 reorganization of uart-based receiver drivers FEATURE_SPEKTRUM has been removed and replaced with FEATURE_SERIALRX. cli option serialrx_type now configures what type of receiver it is 0 = spektrum1024, 1 = spektrum2048, 2 = sbus sbus will need hardware inverter to use. also cleaned up receiver drivers to assign readrawRC callback instead of assigning in code in main() none of this has been tested. timecop@gmail.com 2013-09-29 14:40:20 +00:00
  • 04ab548d2e actually adding BMA280 driver files, oops. timecop@gmail.com 2013-09-29 14:00:14 +00:00
  • 01eaf85510 added ability to assign one of aux1..4 channels as RSSI by the-kenny timecop@gmail.com 2013-09-29 13:58:25 +00:00
  • 91d64fc6c1 removed retarded small_angles shit and replaced with proper calculation. no more small angles while shaking the board. timecop@gmail.com 2013-09-29 13:10:58 +00:00
  • 6763d8810b added test BMA280 driver timecop@gmail.com 2013-09-29 12:53:02 +00:00
  • c8f0fc78b3 removed references to avr optimizations we stopped using long time ago fixed heading calculation jump timecop@gmail.com 2013-09-22 04:03:18 +00:00
  • 64e8f247bf oops. gyro only does NOT need getEstimatedAttitude. bad! ms5611 driver improvements (was failing below 20c) merged some althold cleanups timecop@gmail.com 2013-09-21 11:18:15 +00:00
  • 1ff4bcec5a Nice catch on gyro-only fly fail -robertb timecop@gmail.com 2013-09-21 07:57:28 +00:00
  • 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. timecop@gmail.com 2013-09-19 15:07:48 +00:00
  • ac3cee7788 oops, this should be a bitfield timecop@gmail.com 2013-09-19 11:26:30 +00:00
  • 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 timecop@gmail.com 2013-09-19 11:20:53 +00:00
  • 6d3467c759 higer precision float radian angles are now used for acc and mag rotation no need to cripple the readings here timecop@gmail.com 2013-09-15 12:29:29 +00:00
  • 26db228f79 merge in althold changes from github timecop@gmail.com 2013-09-15 02:02:09 +00:00
  • 71772f137b part 3 of the great sensor axis unfucking. careful flight testing may commence. timecop@gmail.com 2013-09-15 01:56:23 +00:00
  • 05ced4c784 fixing mag heading. DO NOT FLY! timecop@gmail.com 2013-09-14 15:42:16 +00:00
  • 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. timecop@gmail.com 2013-09-14 15:35:44 +00:00
  • 1cc306493b beginnings of the great sensor orientation unfucking. WORK IN PROGRESS DO NOT FLY. timecop@gmail.com 2013-09-14 12:27:26 +00:00
  • edb0ef01b7 fixed mag gain during testmode (thanks pm1) and added some explicit float definitions to mag test code. timecop@gmail.com 2013-09-12 10:50:13 +00:00
  • 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. dominicc1974@gmail.com 2013-09-06 23:14:48 +00:00
  • 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. timecop@gmail.com 2013-09-06 00:03:32 +00:00
  • 5d13bc66ea Merge remote-tracking branch 'multiwii/upstream' Dominic Clifton 2013-09-01 00:54:00 +01:00
  • 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. timecop@gmail.com 2013-08-31 01:40:13 +00:00
  • 1fdc6f118f Merge branch 'softserial' Dominic Clifton 2013-08-28 19:11:25 +01:00
  • 14d0f90278 Merge remote-tracking branch 'multiwii/upstream' Dominic Clifton 2013-08-28 19:11:18 +01:00
  • e29c0ccea6 Merge remote-tracking branch 'multiwii/upstream' into softserial Dominic Clifton 2013-08-28 19:01:22 +01:00