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

11902 commits

Author SHA1 Message Date
mikeller
cedf2a1b45 Disabled on AIORACERF3 because of flash overflow. 2018-05-31 23:27:50 +12:00
mikeller
f17567491f Fixes from review. 2018-05-31 23:25:03 +12:00
mikeller
467a490a53 Ensured board info is preserved through invalid EEPROM version triggered reset. 2018-05-31 23:25:03 +12:00
mikeller
432f330e60 Fixes from review. 2018-05-31 23:25:03 +12:00
mikeller
b4c44d8a46 Fixed writing of empty signature. 2018-05-31 23:25:03 +12:00
mikeller
0bf4708033 Added support for signing board / serial number. 2018-05-31 23:25:03 +12:00
mikeller
1a2c129306 Fixed build for SPRACINGF3OSD. 2018-05-31 23:25:03 +12:00
mikeller
6131ac1449 Fixed tests. 2018-05-31 23:25:03 +12:00
mikeller
a101a58b68 Added ability to set and check board info. 2018-05-31 23:25:03 +12:00
Michael Keller
011711c0c1
Merge pull request #5998 from Cleric-K/failsafe-mode-switch
Failsafe switch choosable behavior
2018-05-31 23:15:51 +12:00
mikeller
f307bf3134 Fixed build for exotic targets. 2018-05-31 19:43:46 +12:00
Michael Keller
f013debb2d
Merge pull request #6008 from McGiverGim/gps_use_galileo
Add Galileo support to GPS
2018-05-31 19:33:53 +12:00
Miguel Angel Mulero Martinez
f43b36ce19 Add Galileo support to GPS 2018-05-31 08:20:58 +02:00
Michael Keller
ad7a847275
Updates from review. 2018-05-31 13:02:12 +12:00
Michael Keller
21f9e6b8ed
Updates from review. 2018-05-31 13:01:52 +12:00
Michael Keller
855639049c
Updates from review. 2018-05-31 13:00:58 +12:00
Michael Keller
74c824c6b3
Merge pull request #5968 from joelucid/absolute_control
Absolute control
2018-05-31 11:02:06 +12:00
Michael Keller
07dfbd7b62
Merge pull request #6001 from mikeller/make_rssi_scalable
Make all RSSI sources scalable.
2018-05-31 10:59:32 +12:00
Thorsten Laux
bb71b6ec64 correct drift 2018-05-30 23:06:27 +02:00
Thorsten Laux
8fe07af613 correct stickInput 2018-05-30 23:06:27 +02:00
Thorsten Laux
f1ea15029f remove pid.c.old 2018-05-30 23:05:16 +02:00
Thorsten Laux
0138200c1c initialize acErrorRate if iterm_relax is off 2018-05-30 23:05:16 +02:00
Thorsten Laux
b40db51448 address style issues and set off by default 2018-05-30 23:05:15 +02:00
Thorsten Laux
bd289121fc absolute control feature 2018-05-30 23:04:26 +02:00
Thorsten Laux
df71817fba incorporate style feedback 2018-05-30 23:01:54 +02:00
Thorsten Laux
7c8c3b6784 address style requests 2018-05-30 23:01:54 +02:00
Thorsten Laux
85b0f6f9c2 ITerm relax feature 2018-05-30 23:01:54 +02:00
mikeller
7e8f261436 Implemented 'beacon' command in CLI. 2018-05-31 01:48:27 +12:00
Michael Keller
d330ad519e
Merge pull request #6004 from mikeller/add_esc_sensor_offset
Added offset parameter to ESC sensor current calculation to compensate for non-ESC consumption.
2018-05-30 22:45:50 +12:00
mikeller
6eea0d45ca Changes from review. 2018-05-30 22:29:42 +12:00
Michael Keller
65e1b060f4
Merge pull request #6002 from AlienWiiBF/AFNG_F7_OSD
Add OSD support for AFNG F7 Horus30 board
2018-05-30 21:09:14 +12:00
Michael Keller
09081beef8
Merge pull request #5970 from etracer65/acro_trainer
Acro trainer
2018-05-30 21:08:26 +12:00
MJ666
533235619d Add UART3 to configuration to be used in absense of the SDCard. 2018-05-30 07:23:14 +02:00
MJ666
2fa03df7c4 AlienFlightNG F7 OSD support (AFNG F7 Horus30) 2018-05-30 07:23:12 +02:00
Bruce Luckcuck
ad067ee09a Overshoot logic updates, disable for GPS Rescue, constrain max setpoint
Updates for finalize the flight performance.

Disable if GPS Rescue is active

Constrain the max setpoint calculated by the angle correction logic. To catch border cases where the user activates the feature while inverted and has a high gain which could result in excessively high setpoint rates.

Make sure internal states are reset when feature is activated via mode switch.
2018-05-29 21:08:19 -04:00
Bruce Luckcuck
2384088855 Requested changes, cleanup and control logic updates
Also added a new parameter acro_trainer_gain to allow adjustments to the limiting strength.
2018-05-29 21:08:19 -04:00
Bruce Luckcuck
9b43839052 Acro trainer
Adds a new angle limiting mode for pilots who are learning to fly in acro mode. Primarily targeted at new LOS acro pilots, but can be used with FPV as well.

The feature is activated with a new mode named "ACRO TRAINER". When the feature is active, the craft will fly in normal acro mode but will limit roll/pitch axes so that they don't exceed the configured angle limit. New pilots can start with a small angle limit and progressively increase as their skills improve.

The accelerometer must be enabled for the feature to be configured and function.

Also the feature will only be active while in acro flight and will disable if ANGLE or HORIZON modes are selected.

For most users all they need to do is simply configure the new mode to be active as desired on the "Modes" tab in the configurator and configure the desired angle limit in the cli.

Configuration parameters:

acro_trainer_angle_limit: (range 10-80) Angle limit in degrees.

acro_trainer_lookahead_ms: (range 10-200) Time in milliseconds that the logic will "look ahead" to help minimize overshoot and bounce-back if the limit is approached at high gyro rates. The default value of 50 should be good for most users. For low powered or unresponsive craft (micros or brushed) it may be helpful to increase this setting if you're seeing substantial overshoot.

acro_trainer_debug_axis: (ROLL, PITCH) The axis that will log information if debugging is active.

To enable debugging:
set debug_mode = ACRO_TRAINER

debug(0) - Current angle
debug(1) - The internal logic state
debug(2) - Modified setpoint
debug(3) - Projected angle based gyro rate and lookahead period
2018-05-29 21:08:16 -04:00
Michael Keller
2fccb2b9b7 Fix from review. 2018-05-30 12:56:30 +12:00
Michael Keller
eecb59db45
Merge pull request #5963 from joelucid/iterm_relax
ITerm relax feature
2018-05-30 09:32:21 +12:00
Michael Keller
3d24eb1a68
Merge pull request #6005 from jflyper/bfdev-increase-SPI_PREINIT_IPU_COUNT
Increase SPI_PREINIT_IPU_COUNT to accommodate I/O rich boards
2018-05-30 09:28:36 +12:00
Cleric-K
e17abc4063 Failsafe switch choosable behavior #5994
The `failsafe_kill_switch` parameter has been renamed to
`failsafe_switch_mode` and it determines what happens
when the Failsafe mode is activated with an AUX switch.
It takes one of three values:
  0 - simulates RC signal loss - thus activates Stage1 failsafe
      (former behavior when kill switch option was OFF)
  1 - disarms immediately
      (former behavior when kill switch option was ON)
  2 - activates the failsafe procedure (Stage2) immediately (new)
2018-05-29 23:28:09 +03:00
jflyper
6402ebf5b8 Increase SPI_PREINIT_IPU_COUNT 2018-05-30 01:50:54 +09:00
Thorsten Laux
dc929baf75 make itermRelax into enum 2018-05-29 16:40:23 +02:00
borisbstyle
2161c68778
Merge pull request #5975 from fujin/minimize-filter-choices
gyro & d-term filters: remove filtering options except biquad/pt1
2018-05-29 15:56:53 +02:00
mikeller
ab916d16b2 Added beacon config printing. 2018-05-30 01:20:33 +12:00
mikeller
2c3bf6ad2d Removed 'PREFERRED' beeper settings. 2018-05-30 00:50:55 +12:00
mikeller
a0dd12db42 Added option 'disable_rx_loss_dshot_beacon' to stop RX loss Dshot beacon from working. 2018-05-30 00:50:55 +12:00
mikeller
e75eaf85ce Fixed tests. 2018-05-30 00:45:45 +12:00
mikeller
670cd49bd6 Added offset parameter to ESC sensor current calculation to compensate for non-ESC consumption. 2018-05-30 00:38:33 +12:00
mikeller
d401e3bbbe Fix usages, scaling. 2018-05-29 23:08:26 +12:00