1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00
Commit graph

11629 commits

Author SHA1 Message Date
AirBreak69
482d38ade1
Tidy grab_fields() 2018-06-14 21:02:04 +02:00
AirBreak69
ff366098e5
Deleted extra 32bit altitude in msp 2018-06-14 20:58:41 +02:00
AirBreak69
ecc89d1ba1
Compensate 10x altitude resolution before transferring via MSP
GPS_RESCUE and subsequent changes increased gpsSol.llh.alt from 0.1m per lsb UNIT16 to 0.01m per lsb INT32.
The transfer of altitude data via MSP had to be corrected by factor 10 rescalings to be backwards compatible.
2018-06-14 01:31:24 +02:00
AirBreak69
719d50e8fb
Harmonized altitude from NMEA with ublox data to centimeters (0.01m per lsb)
Before GPS_RESCUE it was decimeter (0.1m per lsb) from ublox but meter (1m per lsb) from NMEA, stored as unit16.
Now both protocols should deliver centimeters (0.01m per lsb), stored as int32 in order to cover negative and high altitudes too.
2018-06-14 00:18:42 +02:00
AirBreak69
c1342c7197
Cleaner code for negative sign detection in grab_fields()
Following suggestions.
2018-06-14 00:08:15 +02:00
AirBreak69
66773cc1fa
Changed comment that altitude now is in 0.01m per lsb
Since introduction of GSP_RESCUE the altitude (from ublox receivers) is logged in cm (0.01m per lsb as int32). 
Before that is was scaled in decimeters (0.1m per lsb as uint16) from ublox receivers. But with NMEA protocol it was in meters per lsb.
This will be harmonized in another commit to cm (0.01m per lsb).
2018-06-13 23:57:10 +02:00
AirBreak69
45bf0ac4ec
Handle negative values in grab_fields() 2018-06-13 02:09:54 +02:00
AirBreak69
84ee9c624c
Reverted change and added 32bit versions of gpsSol.llh.alt 2018-06-13 01:25:59 +02:00
AirBreak69
b88fba225f
Deleted unused GPS_altitude from gpSolutionData_s
No code was referecing this
2018-06-13 00:06:56 +02:00
AirBreak69
0cabe7e70c Removed additional /* on top of block comment 2018-06-12 00:18:13 +02:00
AirBreak69
536ad399e6 GPS: handle negative and high altitudes; safer macros in maths.h
Fixes underflows at negative altitude (below MSL) and overflows at altitude higher than 655.35m
Corrected parenthesis in maths.h avoid incorrect equations if arguments contain expressions.
2018-06-12 00:02:29 +02:00
Michael Keller
a5ba01666b
Merge pull request #6081 from ctzsnooze/iTerm_Reset_Debugging
iTerm_relax update debug settings and change threshold for setpoint mode
2018-06-10 14:09:21 +12:00
mikeller
5ff68d2c82 Fixed logging inconsistencies. 2018-06-10 13:26:58 +12:00
Michael Keller
4850b31eeb
Merge pull request #6080 from mikeller/add_beacon_off_flags_to_msp
Added 'dshotBeaconOffFlags' to MSP.
2018-06-10 12:50:39 +12:00
Michael Keller
21414faf1c
Merge pull request #6079 from etracer65/dshot_beacon_motor_direction
Add guard time between dshot beacon and arming/disarming
2018-06-10 12:50:15 +12:00
ctzsnooze
53476d45de bit more fine tuning 2018-06-10 10:15:19 +10:00
mikeller
5c2f598357 Added 'dshotBeaconOffFlags' to MSP. 2018-06-10 11:20:28 +12:00
Michael Keller
893d778310
Merge pull request #6076 from mikeller/fix_frsky_x_spi_dropouts
Fixed overflow FrSky X channel decoding.
2018-06-10 11:19:03 +12:00
Bruce Luckcuck
1e6e9e719f Add guard time between dshot beacon and arming/disarming
Tries to prevent DSHOT beacon commands from interfering with commands to set the motor direction.

Adds a 2 second delay after disarming before DSHOT beacon commands will be sent. This attempts to prevent the beacon commands from interfering with the motor direction reset that happens after using crash flip mode.

During arming if a DSHOT beacon command has been sent within 2 seconds the arming will be delayed until the 2 seconds have passed. This attempts to prevent interference with the motor direction commands sent at arming.
2018-06-09 18:59:59 -04:00
ctzsnooze
6d2c1a3c01 initial debug changes 2018-06-10 08:40:04 +10:00
mikeller
2f0c8d26ff Fix from review. 2018-06-10 03:21:27 +12:00
Michael Keller
504b1479fb
Merge pull request #6075 from etracer65/rc_smoothing_typo
Fix typo where assignment was used instead of equality
2018-06-10 03:13:26 +12:00
Michael Keller
27f88b263d
Merge pull request #6073 from mikeller/fix_apply_deadband
Improved 'applyDeadband()', added 'fapplyDeadband()' at @diehertz' request.
2018-06-10 02:58:47 +12:00
Bruce Luckcuck
108e387022 Fix typo where assignment was used instead of equality 2018-06-09 10:29:25 -04:00
mikeller
0c045b8ec5 Fixed overflow FrSky X channel decoding. 2018-06-10 02:24:17 +12:00
mikeller
bc048bc23f Fixes from review. 2018-06-10 01:59:29 +12:00
Michael Keller
ce61f3b99d
Merge pull request #6071 from codecae/reintroduce-lma
Lagged Moving Average smoothing/filter
2018-06-10 01:52:31 +12:00
Bryce Johnson
99710c85b3 fix brackets 2018-06-10 01:37:31 +12:00
Bryce Johnson
a86e0bc41c frsky-spi-D16 was counting every telemetry state as a good packet. If it was garbage packet it would go straight into the rcData
Add some debugging
2018-06-10 01:37:31 +12:00
AJ Christensen
10da8313e8 Lagged Moving Average smoothing/filter
* We plan to use this for RC command filter based interpolation to satisfy CSRF
  use case, but not for gyro filtering.
2018-06-09 08:29:32 -04:00
mikeller
affaf86f0d Improved 'applyDeadband()', added 'fapplyDeadband()' at @diehertz' request. 2018-06-10 00:08:31 +12:00
Michael Keller
26a4f762a1
Merge pull request #6072 from AlienWiiBF/FortiniOSD_Rev3
Adding FortiniF4 Rev3 target
2018-06-10 00:05:16 +12:00
Michael Keller
fed5696f8d
Merge pull request #6036 from ctzsnooze/3.4-defaults
Initial default suggestions for 3.4
2018-06-09 23:32:33 +12:00
ctzsnooze
705d3939eb Initial default suggestions for 3.4
Set default RC smoothing channels to RPYT

first attempt at enabling features by default

update filter notes
2018-06-09 22:26:00 +12:00
Michael Keller
54c3363719
Merge pull request #6065 from mikeller/joelucid_relax2
Joelucid's overworked ITerm relax.
2018-06-09 22:21:09 +12:00
Michael Keller
0210be305a
Merge pull request #6067 from etracer65/rc_smoohting_crsf_init
RC smoothing - add rx frame training delay to deal with CRSF initialization
2018-06-09 21:40:37 +12:00
Michael Keller
caa7876843
Merge pull request #6068 from mikeller/re_enable_kissfcv2f7
Re-enabled building of KISSFCV2F7.
2018-06-09 21:40:16 +12:00
MJ666
344c35f909 Adding FortiniF4 Rev3 target 2018-06-09 09:49:54 +02:00
Michael Keller
d3673f11ee
Merge pull request #6059 from fujin/fix-debug-mode-names
gyro sensors/debug: standardize gyro debugging enum elements
2018-06-09 19:26:38 +12:00
mikeller
06428c1b05 More fixes. 2018-06-09 19:20:46 +12:00
Michael Keller
f8a86d6392
Merge pull request #6069 from mikeller/fix_dshot_beacon_description
Fixed Dshot beacon command description in CLI.
2018-06-09 19:10:13 +12:00
Michael Keller
32fc494827
Merge pull request #6070 from mikeller/disable_dshot_beacon_by_default
Disabled Dshot beacon by default.
2018-06-09 14:32:39 +12:00
AJ Christensen
b1069027c3 gyro sensors: use axis_e enum for consistency 2018-06-09 14:25:52 +12:00
AJ Christensen
03b480a8ef gyro sensors/debug: record standard deviation for roll *only*
* visibile in the DEBUG_GYRO_RAW[3]
2018-06-09 14:18:47 +12:00
AJ Christensen
f8ebdf06f1 debug: update debugModeNames
* TBC
2018-06-09 14:12:32 +12:00
mikeller
d43c178488 Fixes from review. 2018-06-09 13:22:36 +12:00
mikeller
78cbd5725c Fixed Dshot beacon command description in CLI. 2018-06-09 12:06:50 +12:00
mikeller
bdc2b48d36 Disabled Dshot beacon by default. 2018-06-09 12:02:15 +12:00
Michael Keller
c54b7e7db9
Merge pull request #6064 from mikeller/add_mag_support_to_dalrcf405
Added MAG support to DALRCF405.
2018-06-09 11:35:41 +12:00
mikeller
935d61694d Re-enabled building of KISSFCV2F7. 2018-06-09 11:11:46 +12:00