Commit Graph

9319 Commits

Author SHA1 Message Date
ctzsnooze 94c7109a4c Changes, thanks mikeller and jirif 2018-07-21 23:49:41 +12:00
ctzsnooze 4c917efa50 Smooth anti gravity 2018-07-21 23:49:41 +12:00
mikeller 4354330854 Fixed flash overflow on BETAFLIGHTF3. 2018-07-21 18:16:14 +12:00
Michael Keller f2468fb894
Merge pull request #6392 from s0up/rescue-disarm-fix
Fix rescue early disarm when sanity checks are on
2018-07-19 20:19:39 +12:00
Michael Keller 3a3c835959
Merge pull request #6397 from mikeller/disable_smartport_extra_sensors
Disabled extra (ESC) sensors in SmartPort by default.
2018-07-19 13:51:50 +12:00
Michael Keller 385107fc8b
Merge pull request #6395 from mikeller/update_crsf_format
Updated CRSF frame format to use the sync byte instead of the frame address.
2018-07-19 13:18:12 +12:00
mikeller 017bdca593 Remove unused modes. 2018-07-19 00:12:11 +12:00
Michael Keller 7d56929ffa
Merge pull request #6318 from fujin/remove-bme-for-baro-gpshold-gpshome
Remove MSP BOX BME entries for baro, gps home, gps hold
2018-07-19 00:11:05 +12:00
mikeller 35b93f2c18 Fixed tests. 2018-07-19 00:09:55 +12:00
mikeller 1286e400d8 Disabled extra (ESC) sensors in SmartPort by default. 2018-07-18 23:31:16 +12:00
mikeller 653182c2ef Updated CRSF frame format to use the sync byte instead of the frame address. 2018-07-18 21:44:47 +12:00
Michael Keller 6784ed9335
Merge pull request #6394 from bforbort/ag3x_dshot_beacon
Add DShot Beacon Support to AG3X Target
2018-07-18 21:10:37 +12:00
s0up b69e97fb23 fix the logic to be a little bit more user friendly 2018-07-17 15:14:21 -07:00
s0up 99f223c2fd enable sanity checks by default 2018-07-17 14:21:04 -07:00
Michael Keller 460b72f81f
Merge pull request #6364 from mikeller/add_usb_hid_msp
Added MSP for USB HID configuration.
2018-07-18 08:46:42 +12:00
s0up 4b5972629e fix disarm logic 2018-07-17 11:55:42 -07:00
mikeller 862c14af19 Fixed botched rebase. 2018-07-18 02:30:33 +12:00
mikeller 80a29b9ad5 Removed unneeded parameters. 2018-07-18 01:14:03 +12:00
mikeller 2735a626e0 Changes from review. 2018-07-18 01:10:47 +12:00
mikeller b4b88a5972 Adding MSP for new profile settings introduced in 3.4. 2018-07-18 01:10:47 +12:00
mikeller 76a51e989e Added MSP for USB HID configuration. 2018-07-18 01:06:01 +12:00
Michael Keller 46fec897ed
Merge pull request #6378 from robertlacroix/sticky-paralyze
Generalize sticky mode code
2018-07-18 00:48:54 +12:00
Michael Keller 3fc6906fa3
Merge pull request #6363 from mikeller/add_rc_smoothing_msp
Added RC smoothing parameters to MSP.
2018-07-18 00:35:30 +12:00
Robert Lacroix a81576b2ae Generalize sticky mode code
Instead of hard coding paralyze this makes the code extensible to possible
future sticky modes

_Legal disclaimer: I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties._
2018-07-17 12:15:50 +02:00
Blaine 2a1269aeb8 Initial upload 2018-07-17 01:25:37 -07:00
Michael Keller 92ddf3185f
Merge pull request #6098 from mikeller/frsky_fport_dynamic_telemetry_test
Changed FPort telemetry frame rate to support being driven by the RX.
2018-07-17 19:35:54 +12:00
Michael Keller 362d42fcaf
Merge pull request #6365 from mikeller/add_msc_msp
Added MSP for reboot to MSC.
2018-07-17 19:29:25 +12:00
Michael Keller d816369352
Merge pull request #6377 from mikeller/fix_icm20601_driver
Fixed MPU6500 driver for ICM20601.
2018-07-17 18:43:08 +12:00
Michael Keller 1e9dfe355e
Merge pull request #6381 from robertlacroix/vtx-unittest
Add basic VTX unit test
2018-07-17 18:42:28 +12:00
Michael Keller f487cea809
Merge pull request #6382 from mikeller/fix_smartport_delay
Removed delay from SmartPort frame processing.
2018-07-17 18:42:12 +12:00
Michael Keller 5b4ba6510b
Merge pull request #6375 from DieHertz/bfdev-diehertz-unify-gyro-filtering
Unified gyro filtering debug and non-debug
2018-07-17 18:35:22 +12:00
mikeller aff5653981 Changes for an improved UX. 2018-07-17 18:34:06 +12:00
mikeller df55fc99ec Added MSP for reboot to MSC. 2018-07-17 18:34:06 +12:00
Michael Keller e2cf7fc238
Merge pull request #6233 from leocb/add-gforce-osd
Added G-Force to the OSD
2018-07-17 18:28:58 +12:00
mikeller 334117a4f0 Changes from review. 2018-07-17 01:36:36 +12:00
mikeller 7fe0c8f892 Added RC smoothing parameters to MSP. 2018-07-17 01:36:36 +12:00
Michael Keller 8607b1c38b
Merge pull request #6038 from supiiik/master
MSP for smart_feedforward and throttle boost
2018-07-17 01:26:48 +12:00
mikeller 4da6980230 Changed FPort telemetry frame rate to support being driven by the RX. 2018-07-17 01:12:20 +12:00
mikeller 5bcbeae21a Removed delay from SmartPort frame processing. 2018-07-17 00:48:12 +12:00
Robert Lacroix 18765e3593 Add basic VTX unit test
The vtx code doesn't have a lot of test coverage, so this adds a basic unit test that asserts vtx pit mode behavior

_Legal disclaimer: I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties._
2018-07-16 14:10:46 +02:00
leocb 4def6e3281 Fixed OSD G-force symbol as suggested 2018-07-16 08:59:15 -03:00
Robert Lacroix cb792f30d2 Delay allowing sticky modes
On bootup aux channels start out at default and allow sticky modes right away,
although they should only be allowed once they are actually not active.

_Legal disclaimer: I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties._
2018-07-16 13:50:55 +02:00
leocb c9df378dcc Really fixed OSD G Symbol 2018-07-16 08:36:02 -03:00
mikeller ef5e040d27 Fixed MPU6500 driver for ICM20601. 2018-07-16 23:20:48 +12:00
leocb d0be9578e3 Fix G-force unit symbol 2018-07-16 08:10:23 -03:00
Andrey Mironov 77d3484b6d Unified gyro filter debug and non-debug by pseudo-templates 2018-07-16 11:03:16 +03:00
mikeller 30a51e2023 Removed legacy 'MSP_BF_CONFIG' and 'MSP_SET_BF_CONFIG' MSP commands. 2018-07-15 23:49:23 +12:00
Michael Keller f40b5979f4
Merge pull request #6339 from McGiverGim/fix_osd_warnings_when_esc
Fix low priority warnings when ESC sensor enabled
2018-07-15 16:15:17 +12:00
Bruce Luckcuck ef4a03507f Adjustments strings for OSD not kept in sync with enumeration causing invalid pointers
When the separate rc rates and rc expos for roll/pitch were added the descriptive names were never added to the OSD display strings array. Then later PID audio was added causing the array to be out of sync with the enumerated adjustment types.  This led to a corrupted pointer reference in the OSD display.

Also the adjustment display name used for the OSD display was never initialized so the pointer was pointing to random memory.

Removed the use of globals and changed to use "getter" functions.
2018-07-14 22:56:35 -04:00
Michael Keller b504a4869d
Merge pull request #6090 from mikeller/improve_iterm_relax
Minor code improvements for iterm relax.
2018-07-15 12:13:00 +12:00
Michael Keller 2c084cbf2b
Merge pull request #6335 from robertlacroix/sticky-paralyze
Allow linking of modes
2018-07-14 15:47:24 +12:00
Robert Lacroix aa18ab4afa Allow linking of modes
This allows modes to be linked, for example to link vtx pit mode to paralyze. Whenever paralyze is activated, vtx pit mode is activated as well. Also the logic to prevent mode changes when enabling paralyze can be removed in favor of making paralyze sticky.

Modes can be linked in CLI by providing the mode id as the last parameter of the aux command. For example in order to link vtx pit mode to paralyze, replace the last 0 of the pit mode aux (39) with the mode id of paralyze (45):

```
aux 2 39 2 1700 2100 0 0
```

becomes

```
aux 2 39 2 1700 2100 0 45
```

_Legal disclaimer: I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties._
2018-07-13 13:05:15 +02:00
Michael Keller 14e3da855f
Merge pull request #6344 from DieHertz/bfdev-diehertz-fix-micros-race-condition
Ensured micros() doesn't return a smaller value on millisecond bound
2018-07-13 20:46:53 +12:00
Michael Keller e5d5e92bda
Merge pull request #6342 from DieHertz/bfdev-diehertz-immersionrc-synergy-f3-target
Added IRCSYNERGYF3 target
2018-07-13 20:39:47 +12:00
Andrey Mironov c0bac1c663
Used operator > to get rid of potential deadband 2018-07-12 21:42:09 +03:00
Andrey Mironov a0d2f444ac Ensured micros() doesn't return a smaller value on millisecond bound 2018-07-12 16:40:02 +03:00
Andrey Mironov ea74659bcb Added IRCSYNERGYF3 target 2018-07-12 15:46:08 +03:00
Andrey Mironov ffeecaf007 Removed CONFIG_FASTLOOP_PREFERRED_ACC 2018-07-12 14:42:18 +03:00
Miguel Angel Mulero Martinez b9633eb59d Fix low priority warnings when ESC sensor enabled 2018-07-12 09:16:00 +02:00
mikeller 80acf5a53d Minor code improvements for iterm relax. 2018-07-11 21:32:55 +12:00
Michael Keller ac2f39a10c
Merge pull request #6253 from mikeller/fix_gps_rescue_without_gps
Fixed compilation error when building USE_GPS_RESCUE without USE_GPS.
2018-07-11 21:09:59 +12:00
Michael Keller b4953b8ff5
Merge pull request #6134 from mikeller/allow_custom_includes
Allow tests to define custom include directories (for libs).
2018-07-11 21:09:23 +12:00
Michael Keller cd19906eac
Merge pull request #6329 from Scavanger/HoTT-Telemetry-Altitude-Fix
HoTT Telemetry: GPS based altitude was not converted to meters.
2018-07-11 20:25:25 +12:00
Andi Kanzler eb72a69cb4 GPS based Altitude was not converted to meters. 2018-07-10 16:30:46 +02:00
Michael Keller ea53a18ae0
Merge pull request #6297 from DieHertz/bfdev-hertz-cli-task-statistics-reset-max-time
CLI tasks command: reset max execution time
2018-07-09 23:09:33 +12:00
Michael Keller 9a21df34c2
Merge pull request #6281 from jflyper/bfdev-cms-menu-title-tidy
Change CMS menu page title for PROFILE from "IMU" to "PROFILE"
2018-07-09 23:09:17 +12:00
Michael Keller 83612180fc
Merge pull request #6265 from atomgomba/improvement-acro-trainer-osd
Add Acro Trainer as flight mode to OSD
2018-07-09 22:57:56 +12:00
Michael Keller b2e56de9df
Merge pull request #6260 from etracer65/undef_feature_cleanup
Fix various compiler warnings for combinations of undefined USE_ features
2018-07-09 22:51:43 +12:00
Michael Keller 5371350150
Merge pull request #6129 from McGiverGim/iterm_relax_decreasing_I
Add Iterm Relax INC modes
2018-07-09 22:43:33 +12:00
AJ Christensen fa82c287ae Remove MSP BOX BME entries for baro, gps home, gps hold 2018-07-09 11:26:35 +12:00
mikeller 8d63e2698f Updated versions after 3.4.0 release. 2018-07-08 23:37:16 +12:00
Michael Keller cce8a59be4
Merge pull request #6302 from mikeller/increment_eeprom_version
Increment EEPROM version to force config reset.
2018-07-08 15:14:52 +12:00
Michael Keller 5f549498cf
Merge pull request #6300 from mikeller/fix_smartport_overflow
Fixed frame received detection logic for SmartPort.
2018-07-08 15:12:26 +12:00
mikeller 69831133f3 Increment EEPROM version to force config reset. 2018-07-08 13:11:59 +12:00
mikeller 58a3085228 Fixed frame received detection logic for SmartPort. 2018-07-08 12:56:54 +12:00
Bruce Luckcuck 899942621c Fixes from review 2018-07-07 20:22:37 -04:00
Bruce Luckcuck ae2abc5d50 Remove features from STM32F3DISCOVERY to free up flash space 2018-07-07 19:29:07 -04:00
Bruce Luckcuck af267864e9 Add OSD warning and beeper pattern if rc smoothing initialization not complete
In the OSD display the warning "RCSMOOTHING".  Also play a beep pattern of 3 short, 1 long that will repeat.

If rx rate filter training completes the warning/beeper will stop. The warnings are only active when armed.
2018-07-07 18:43:06 -04:00
Andrey Mironov f1e33d170e
Added stub for unittest 2018-07-07 14:56:33 +03:00
Andrey Mironov 5a66fb510f Added reset of task max time to CLI tasks command 2018-07-07 14:04:00 +03:00
Michael Keller ad975d3948
Merge pull request #6292 from DieHertz/bfdev-hertz-frhub-escsensor-data-warning
Ensured telemetry data is initialized if ESC sensor is unavailable
2018-07-06 22:31:08 +12:00
Andrey Mironov 176e5df3aa Ensured telemetry data is initialized if ESC sensor is unavailable 2018-07-06 10:19:41 +03:00
s0up 90b9b649d0 disable immediate re-arming on land/abort for gps rescue 2018-07-05 21:17:43 -07:00
Michael Keller 521ab88d5c
Merge pull request #6280 from etracer65/smix_reverse
Fix null pointer reference for "smix reverse"
2018-07-06 14:37:19 +12:00
Curtis Bangert 03222452f4 Optimized CMS over CRSF initialization 2018-07-05 08:57:23 -04:00
jflyper 1126159243 Change CMS menu page title for PROFILE from IMU to PROFILE 2018-07-04 11:04:44 +09:00
Bruce Luckcuck d58118d1d3 Fix null pointer reference for "smix reverse"
The short syntax `smix reverse` is meant to print the table. When the logic was checking for parameters it was failing to deal with the null pointer when no parameters were present. Additionally the `smix reverse` was called at the end of a successful command to display the table so even though the command was succeeding it was crashing on the null pointer reference when trying to display the result.

Also some stylistic cleanup
2018-07-03 19:37:23 -04:00
Bruce Luckcuck 359a014a98 Fix SPI FrskyD rx frame rate detection
Decrease the minimum on the valid rx frame time window. SPI FrskyD seems to have frames with quite variable timing and if a frame was outside the valid window training would get reset and never complete.  The valid frame timings have no impact on the calculations or operation - they are just sanity checks.
2018-07-03 17:03:37 -04:00
Bruce Luckcuck 2e83accbfe Disable more telemetry types and fixup warning/errors if USE_SERIAL_RX is not defined 2018-07-03 08:50:12 -04:00
Michael Keller b44784d962
Merge pull request #6271 from Faduf/Bugfix_YupiF7_arming_issue
Bugfix YupiF7 3.4
2018-07-03 21:59:38 +12:00
Faduf ae473d30be Bugfix YupiF7 3.4 2018-07-02 21:47:13 +02:00
Kiripolszky Károly b5e0a82852 add Acro Trainer as flight mode to OSD 2018-07-02 15:16:51 +02:00
Michael Keller 463d7aa1c1
Merge pull request #6261 from jflyper/bfdev-fix-non-rearming
Call flashfsIsSupported instead of flashfsIsReady to check flash chip existence
2018-07-02 23:54:36 +12:00
jflyper 9d1e4db800 Call flashfsIsSupported instead of flashfsIsReady to check flash chip existence 2018-07-02 09:46:54 +09:00
Bruce Luckcuck a769d43b90 Fix various compiler warnings for combinations of undefined USE_ features 2018-07-01 20:21:00 -04:00
Bruce Luckcuck a754ad4f47 Change TASK_RX frequancy from 50hz (20ms) to 33hz (30ms)
Work around to better handle RX protocols that have frame intervals >= 20ms.  Otherwise the task would run at the end of the task interval causing slower protocols to run again after the remaining delay. This interferes with rc interpolation and also the frame rate detection in rc smoothing.
2018-07-01 18:08:46 -04:00
mikeller abc7cba3ce Fixed compilation error when building USE_GPS_RESCUE without USE_GPS. 2018-07-01 23:17:23 +12:00
Michael Keller 8e9e757448
Merge pull request #6251 from mikeller/fix_disabling_gps_rescue_on_3d
Added disabling of GPS_RESCUE when 3D is enabled.
2018-07-01 22:32:40 +12:00
Michael Keller bea4db7cbf
Merge pull request #6192 from Faduf/bugfix_yupif7_orientation
Bugfix board alignment YupiF7
2018-07-01 22:21:48 +12:00
mikeller 3f082b569b Fixed broken targets. 2018-07-01 21:37:40 +12:00