1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 07:15:18 +03:00
Commit graph

37 commits

Author SHA1 Message Date
mikeller
feaa082ac3 Fixes from review. 2018-10-24 02:02:59 +13:00
Bruce Luckcuck
0d7f8f5feb Fix CRSF telmetry GPS speed calculation
Calculation was assuming that the GPS groundspeed was in 1/10 m/s when in reality it's in cm/s units.  This was causing the value sent in telemetry to be 10 times too large.
2018-09-18 07:07:22 -04:00
thomas.bridi
1a67f5da17 fix: missing test 2018-08-27 18:28:06 +02:00
mikeller
6de1c32d9d Added shadow copies for CLI and MSP. 2018-08-21 00:36:47 +12:00
mikeller
8abf138e2a Fixed tests, SPRACINGF3OSD. 2018-08-21 00:36:31 +12:00
AirBreak69
0e52e21524 GPS altitude: cleanup all occurancies to assume source is in cm per lsb resolution
Harmonized (and partly corrected) all occurancies of gpsSol.llh.alt and getEstimatedAltitude() to handle altiude sourced in cm resolution.
This was introduced by GSP_RESCUE/RTH.
Introduced a naming convention that include the unit into the variable/function names:
gpsSol.llh.alt -> gpsSol.llh.alt_cm
getEstimatedAltitude() -> getEstimatedAltitude_cm()
2018-08-19 00:11:30 +12:00
Michael Keller
6e718b504a Fixed tests. 2018-08-06 08:37:26 +12:00
mikeller
35b93f2c18 Fixed tests. 2018-07-19 00:09:55 +12:00
jflyper
041bfb22c6 Create a pg for rxConfig 2018-05-27 09:13:04 +09:00
Curtis Bangert
3a7540e042 Corrected issue with telemetry init when battery cell estimatation is undefined 2018-02-08 22:31:50 -05:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
Alberto García Hierro
d666151188 Don't check batteryConfig fields from the telemetry, call APIs instead
This makes the telemetry code less dependendant on the battery
implementation.

New functions introduced:
    isBatteryVoltageAvailable()
    isAmperageAvailable()
2017-12-04 17:14:17 +00:00
Martin Budden
8cb7abd15f Added data parameter to UART RX callback 2017-11-25 10:11:37 +00:00
Martin Budden
e7bee05005 Merge pull request #4210 from codecae/msp_shared_ringbuffer
Improved msp frame handling for CRSF
2017-10-09 15:05:56 +01:00
Curtis Bangert
4fd948cb24 Created buffer for msp frames and improved msp over telemetry performance for CRSF. 2017-10-09 08:52:16 -04:00
Curtis Bangert
99f02ffdd0 Added conditions to test for accelerometer configuration before sending telemetry 2017-10-04 13:38:32 -04:00
mikeller
860ec23fbe Fixed check for halfduplex mode in CRSF. 2017-09-19 01:43:55 +12:00
Curtis Bangert
5ccd39843d Reset msp handling upon receipt of new incoming frames in msp_shared 2017-09-10 15:55:05 -04:00
mikeller
aa1edbd978 Restored SmartPort MSP frame handling to how it was before the addition of MSP over CRSF. 2017-09-11 04:01:52 +12:00
Curtis Bangert
863b24ae6a Corrected smartport regression issue with msp_shared
Corrected condition where an extra padded zero was added to outgoing msp buffers.
Whitespace tidy and removal of unnecessary condition.
Commented OSD and CMS from STM32F3DISCOVERY target.h
Various improvements to msp_shared (removed byte loops, point arithmetic)
Raised schedule priority of CRSF device and MSP calls
Reworked buffers in msp_shared to enable writes.
Moved msp buffers to msp_shared
Added new custom frames and reworking msp implementation
Implemented CRSF device info reply
Adding crsf ping/pong device info functionality
Changed Colibri FC address to Betaflight address
Implementing MSP in CRSF Telemetry
Decoupled msp functionality from smartport into msp_shared
Moved USE_SERVOS to FLASH>128 per mikeller
2017-09-10 01:36:59 -04:00
Steffen Windoffer
1d3a2f253e fix crsf mah telemetry 2017-09-04 19:45:19 +02:00
Martin Budden
604b661a62 Rationalised CRSF constants 2017-08-31 17:02:49 +01:00
Martin Budden
4ba8669cc3 Additional crc functions 2017-08-13 12:02:46 +01:00
Martin Budden
944fe0761c Tidied UART enum definitions 2017-07-29 13:30:37 +01:00
Martin Budden
564e0c94b8 Move some GPS variables into struct. Some alignment with iNav 2017-06-25 14:44:04 +01:00
Hydra
067d3c0ac2 CF/BF - First cut of Current/Voltage/Battery cleanup.
many refactorings, bugs squished, concerns separated,
single-responsibility violations fixed and performance optimizations.
2017-03-19 10:40:03 +00:00
Martin Budden
e41d6a3b5b Preparation for conversion to parameter groups 2017-02-01 10:44:12 +00:00
Martin Budden
79d4b2146d Preparation for conversion to parameter groups 2017-02-01 08:46:19 +00:00
Martin Budden
003d331291 Fixup test code 2017-01-31 14:20:34 +01:00
mikeller
e3644ca507 Made ESC feedback and vbat calculation more resilient.
Fixed tests.

Cosmetic fix.
2017-01-05 01:07:04 +13:00
mikeller
e782ca55e6 Unified 'calculateBatteryPercentage' and 'calculateBatteryCapacityRemainingPercentage'.
Fixed tests.

Changed consumption calculations to be based on latest amperage value.
2016-12-01 13:14:14 +13:00
Martin Budden
22c5b88fd0 Updated CRSF telemetry 2016-11-25 11:35:36 +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
2a420d94f8 Added CRC checking. Renamed address constants. Updated tests. 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
890eab203b First cut of CRSF RX and telemetry code 2016-11-17 22:36:11 +00:00