Commit Graph

11809 Commits

Author SHA1 Message Date
Bruce Luckcuck 7d783acafa Reduce beacon arming guard time to 1.2 seconds
Based on feedback from KISS and BLHeli developers the maximum delay for a beacon command is 1020ms.  Since there is some built-in delay in sendint the DSHOT beacon command 10 times leaving a little margin for error at 1.2 seconds.
2018-06-15 10:51:12 -04:00
Miguel Angel Mulero Martinez d63eecffaa Add Iterm Relax INC modes 2018-06-15 15:08:09 +02:00
Bruce Luckcuck a93005c692 Clean up duplicate OSD stat reset 2018-06-15 00:00:19 -04:00
s0up 343049d653 fix the calculation of acceleration magnitude average to run at gps update freq vs PID looptime freq to save CPU resources 2018-06-14 14:36:31 -07:00
MJ666 df60162b02 Fix wrong QMC5883L mag detection 2018-06-14 21:12:24 +02:00
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
Michael Keller 9a06900c83
Merge pull request #6104 from etracer65/beacon_arm_delay_osd
Display OSD message and countdown if arming is delayed due to beacon
2018-06-14 23:08:31 +12:00
Curtis Bangert 8950eb1f68 Moved updateGPSRescueState to imuUpdateAttitude. gps_rescue.c tidy. 2018-06-14 02:21:12 -04:00
Michael Keller 156b71182f
Merge pull request #6116 from betaflight/revert-6110-gps_rescue_update_fix
Revert "Moved updateGPSRescueState to imuUpdateAttitude. gps_rescue.c tidy."
2018-06-14 13:26:12 +12:00
Michael Keller 4ead807edd
Revert "Moved updateGPSRescueState to imuUpdateAttitude. gps_rescue.c tidy." 2018-06-14 13:25:52 +12:00
Michael Keller 1aa78531f7 Fixes from review. 2018-06-14 12:24:30 +12: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
Andrey Mironov 7b035ce3a8
Merge pull request #6110 from codecae/gps_rescue_update_fix
Moved updateGPSRescueState to imuUpdateAttitude. gps_rescue.c tidy.
2018-06-14 01:01:33 +03: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
Bruce Luckcuck 3e706224c9 Only reset motor directon on disarming when crash flip mode was active
Previous logic always reset the motor direction if the crash flip mode was configured.
2018-06-13 16:41:27 -04:00
Bruce Luckcuck c15933fbd6 Change beacon arming delayed message to use the warning message
Uses the OSD_WARN element rather than a separate separate screen before arming.  The "BEACON ON" message will appear for the first 0.5 seconds and then "AM IN x.y" will countdown for the remaining delay.

Also fixed OSD_WARN element blinking related to battery warnings to only blink the warning element if the battery warnings are actually configured.
2018-06-13 12:05:10 -04:00
Curtis Bangert 953e2ad0e9 Moved updateGPSRescueState to imuUpdateAttitude. gps_rescue.c tidy. 2018-06-13 11:36:49 -04:00
mikeller 906a4bcb78 Fixed Dshot command check on non-F7. 2018-06-14 01:46:24 +12:00
mikeller 39a38fd951 Fixes from review. 2018-06-14 00:52:35 +12:00
mikeller 48ed3d0b15 Fixes from review. 2018-06-13 23:51:26 +12:00
Michael Keller 11d8171c36
Merge pull request #6082 from wysiwyng/signed_current
Make current in blackbox signed (fixes #6057)
2018-06-13 22:59:56 +12:00
Michael Keller a0b4ce799d
Merge pull request #6097 from brucesdad13/alienwhoop-target-update
Updated ALIENWHOOP defaults for Betaflight 3.4 Release
2018-06-13 22:59:21 +12:00
Michael Keller d6622eb0fb
Merge pull request #6106 from wind0r/remove_unused_use_copy_profile
remove unused use copy profile
2018-06-13 22:58:39 +12:00
Steffen Windoffer 8464699977 remove unused use copy profile 2018-06-13 11:17:34 +02:00
aa07a820ba Fixed whitespace 2018-06-13 03:31:38 -04:00
989e532e0c Fixed up ALIENWHOOP target default PR as requested 2018-06-13 03:23:56 -04:00
Johnny Halfmoon 97d2998c7d Modified crazybee board docs 2018-06-13 08:22:31 +02:00
AirBreak69 45bf0ac4ec
Handle negative values in grab_fields() 2018-06-13 02:09:54 +02:00
Bruce Luckcuck 843a25903a Display OSD message and countdown if arming is delayed due to beacon
Provides a clear indication that arming is delayed for cases where DSHOT beacon is active.

Clears the OSD and displays "DISABLING BEACON" and "ARMING IN X.Y" with an active countdown in tenths of a second while arming is delayed due to DSHOT beacon. Once delay period is over the normal "ARMING" message appears.

If the DSHOT beacon is not active then this delay screen is not displayed.
2018-06-12 20:04:06 -04: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
mikeller 444e5c43a5 Fixed USB HID channel mapping in Windows. 2018-06-13 01:34:36 +12:00
e35810347d Updated ALIENWHOOP defaults for Betaflight 3.4 release 2018-06-11 22:57:00 -04: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
wysiwyng d35a14834c Measured current is now signed in blackbox 2018-06-10 12:53:34 +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
Johnny Halfmoon 29be67bc54 Added a list of known issues
This board has some quirks which new users should be aware of.
2018-06-10 00:08:29 +02:00
mikeller 2f0c8d26ff Fix from review. 2018-06-10 03:21:27 +12:00