Commit Graph

6443 Commits

Author SHA1 Message Date
Anders Hoglund 7967a90836 Another try in cleaning up the typeconversions cppcheck is complaining about. 2016-11-18 00:54:38 +01:00
Anders Hoglund d4338b1a93 Revert "Fix a few cppcheck warnings."
This reverts commit 1dc90432cc.
2016-11-18 00:00:11 +01:00
Martin Budden e58d4bc0ad Changed CRSF RX to be bidirectional 2016-11-17 22:36:11 +00:00
Martin Budden 3c5dd1604e Ensured there is sufficient time to send a telemetry frame 2016-11-17 22:36:11 +00:00
Martin Budden 5d9c22e823 Changed telemetry to use broadcast address 2016-11-17 22:36:11 +00:00
Martin Budden 7249eefb9d Updated CRSF telemetry so that telemetry and RX frames do not overlap 2016-11-17 22:36:11 +00:00
Martin Budden e4997353c8 Fixed checkCrsfTelemetryState 2016-11-17 22:36:11 +00:00
Martin Budden c987f268b7 Fixed up CRSF CRC checking. Fixed telemetry port mask 2016-11-17 22:36:11 +00:00
Martin Budden de694386ba Fixed test code 2016-11-17 22:36:11 +00:00
Martin Budden 5cd1582b26 Removed unnecessary function declaration from crsf.h 2016-11-17 22:36:11 +00:00
Martin Budden e7928fc019 Added test code 2016-11-17 22:36:11 +00:00
Martin Budden 2a420d94f8 Added CRC checking. Renamed address constants. Updated tests. 2016-11-17 22:36:11 +00:00
Martin Budden 4a225cf9b1 Added test data. Improved build #defines 2016-11-17 22:36:11 +00:00
Martin Budden ad71436df3 Fixup after rebase 2016-11-17 22:36:11 +00:00
Martin Budden 302fd67321 Added comment about flight mode text 2016-11-17 22:36:11 +00:00
Martin Budden 2b343af861 Implemented flight mode telemetry 2016-11-17 22:36:11 +00:00
Martin Budden 818a91b6c1 Fixed baud rate and inversion. Added more tests 2016-11-17 22:36:11 +00:00
Martin Budden 6b53b200ae Removed unnecessary headers 2016-11-17 22:36:11 +00:00
Martin Budden 707bfbff93 Removed MAG from NAZE for ROM size reasons 2016-11-17 22:36:11 +00:00
Martin Budden 7cde105c24 Added CRSF to SERIAL_RX lookup table 2016-11-17 22:36:11 +00:00
Martin Budden 890eab203b First cut of CRSF RX and telemetry code 2016-11-17 22:36:11 +00:00
Martin Budden 935547fe50 Merge pull request #1525 from basdelfos/esc_telemetry_dshot_rebase
Implementation of KISS ESC Telemetry protocol (rebase)
2016-11-17 23:30:03 +01:00
Anders Höglund 6f7496db67 Merge pull request #1591 from Wind0r/remove_double_includes
remove double includes
2016-11-17 22:24:56 +01:00
Bas Delfos 248f7184eb Fixed build failure of AFROMINI target 2016-11-17 22:19:11 +01:00
Anders Höglund 5a0d91e12a Merge pull request #1590 from AndersHoglund/fix_zerodiv
Fixed zero div error.
2016-11-17 22:05:12 +01:00
Bas Delfos bc1109c546 Use motorCount from mixer.c instead of determine motor count again 2016-11-17 22:04:45 +01:00
Bas Delfos 0df4c63132 Fixed cell calculation when ESC telemetry is enabled 2016-11-17 22:04:44 +01:00
Bas Delfos a3da6e3288 Some improvements and fallback on vbat sensor when esc telemetry fails 2016-11-17 22:04:44 +01:00
Bas Delfos e9af6c5fed Get rid of build warning on non DSHOT targets 2016-11-17 22:04:44 +01:00
Bas Delfos a146a6bc4b Added ESC Telemetry to all targets that support DSHOT 2016-11-17 22:04:44 +01:00
Bas Delfos 7c154c98db Enabled ESC telemetry on X_RACERSPI target 2016-11-17 22:04:44 +01:00
Bas Delfos 8bef913430 Use MAX_SUPPORTED_MOTORS and some code cleanup 2016-11-17 22:04:44 +01:00
Bas Delfos 2e925de36f Fix for AFROMINI failing build in Travis CI 2016-11-17 22:04:44 +01:00
Bas Delfos 9fe84c0ff2 Fixed current updates and review comments 2016-11-17 22:04:44 +01:00
Bas Delfos 16178a0662 Implementation of KISS ESC Telemetry protocol 2016-11-17 22:04:44 +01:00
Steffen Windoffer fc0b4e3b50 remove double includes 2016-11-17 22:02:38 +01:00
Anders Hoglund b6e21fdee7 Fixed sero div error. 2016-11-17 21:44:53 +01:00
Anders Höglund 14370426af Merge pull request #1587 from Wind0r/save_size_mem_pwm_rx
removed not used static variables
2016-11-17 19:28:03 +01:00
Anders Höglund f113fc302b Merge pull request #1586 from AndersHoglund/fix_cppcheck_issues
Fix a few cppcheck warnings.
2016-11-17 19:27:39 +01:00
Anders Höglund 15ab4b55a7 Merge pull request #1585 from Wind0r/performance_redundantAssignment
fix cpplint redundant assignment warnings
2016-11-17 19:27:00 +01:00
Hydra c3943f4ec2 Allow ADC DMA stream to be specified. 2016-11-17 19:23:02 +01:00
Hydra dc7609faf7 Fix ADC debugging code. 2016-11-17 19:22:52 +01:00
Hydra 1a813353bb STM32F4 - Fix UART5 TX via DMA.
Previously the wrong DMA controller was used.  UART5 is on
DMA1/Stream7/Channel4.

Additionally the wrong defines were used for UART4 and UART5 with
regards to RX DMA.
2016-11-17 19:19:31 +01:00
Hydra e38e5f97c4 SPRACINGF3EVO - Migrate transponder to new IO. 2016-11-17 19:11:11 +01:00
Steffen Windoffer 8384c0f33b removed not used static variables 2016-11-17 19:09:12 +01:00
Hydra 1b1d7a0ce6 SPRACINGF3MINI - Migrate transponder to new IO. 2016-11-17 19:08:41 +01:00
Hydra 782d8316da Move transponder to use IO/Timer configuraton.
Initialisation now matches LED strip code.
2016-11-17 19:07:33 +01:00
Anders Hoglund 1dc90432cc Fix a few cppcheck warnings. 2016-11-17 19:05:07 +01:00
Steffen Windoffer 67c85c97d1 fix cpplint redundant assignment warnings 2016-11-17 18:37:22 +01:00
atomiclama d4a81879d8 Fixed a problem when the motor count for motorInit came from a custom
mixer table lookup which was 0.

1. took the motor count from the loading of the custom mixer table.
2. Moved the mixerconfig to before motorInit as motorInit needs the
motorCount.
3. removed pwmIsSynced checks as this was a order of init problem, and
not required as pwmCompleteMotorUpdate protects itself.
2016-11-17 13:28:52 +00:00