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

9218 commits

Author SHA1 Message Date
Loopur
32a5ec4250 Add barometer sensor QMP6988 2018-05-21 10:06:50 +08:00
s0up
ac6b8088c9 add gps rescue mode 2018-05-20 16:28:17 -07:00
Michael Keller
f01926b09b Moved pointers back. 2018-05-20 15:28:59 -07:00
mikeller
be8df4483e Optimised 'serialPort_t' struct. 2018-05-20 15:28:59 -07:00
mikeller
d67073c8b6 Optimised struct. 2018-05-20 15:28:59 -07:00
mikeller
4e54b1d1a5 Eliminated inefficient serial function calls at runtime. 2018-05-20 15:28:59 -07:00
mikeller
847e050955 Reorganised static variables in SmartPort code. 2018-05-20 00:55:07 +12:00
Michael Keller
dd151b3636
Merge pull request #5914 from etracer65/cli_cmd_feedback
Add responses for cli commands that were missing them for consistency
2018-05-20 00:31:57 +12:00
Michael Keller
155a71def7
Merge pull request #5913 from etracer65/cli_whitespace_ignore
Ignore leading whitespace for cli command parameters
2018-05-20 00:31:24 +12:00
Michael Keller
0b40e1c673
Merge pull request #5912 from jirif/smartport_without_esc_telemetry
Smartport not working without USE_ESC_SENSOR
2018-05-20 00:30:55 +12:00
Loopur
d36858a220 Add baro sensor of QMP6988 2018-05-18 18:37:28 +08:00
Loopur
495cfb4d07 Add barometer sensor QMP6988 2018-05-18 16:26:07 +08:00
Michael Keller
a14302afe2
Merge pull request #5905 from etracer65/rc_interp_task
Break out rc interpolation as a separate task and run before pid controller and motor update
2018-05-18 13:51:53 +12:00
Bruce Luckcuck
119571f77e Add responses for cli commands that were missing them for consistency
Most cli commands give some feedback if the command was successful. However a few did not return a response to provide an indication that the command was successful. This change adds feedback responses for the following commands:

adjrange
color
led
rxrange
serial
servo
vtx
2018-05-17 18:05:40 -04:00
Bruce Luckcuck
4423bf9018 Ignore leading whitespace for cli command parameters 2018-05-17 15:48:14 -04:00
jirif
1f04d74b62 Smartport not working without USE_ESC_SENSOR 2018-05-17 18:24:43 +02:00
mikeller
60f3f7a8bc Removed unneeded declaration of 'updateRcCommands()'. 2018-05-17 23:30:41 +12:00
Michael Keller
b5521b927d
Merge pull request #5909 from etracer65/gyro_calib_cleanup
Gyro calibration cleanup and use floating point calculations for zero offset
2018-05-17 23:19:43 +12:00
Michael Keller
82500afb1b
Merge pull request #5902 from mikeller/optimise_gyro_sanity_checks_f7
Optimised gyro sanity checks for F7.
2018-05-17 23:16:38 +12:00
Michael Keller
edfa6cfcb0
Merge pull request #5900 from jflyper/bfdev-drop-stale-gyro-support
Gradually retire stale/unused acc/gyro support
2018-05-17 23:16:21 +12:00
Bruce Luckcuck
4913099803 Gyro calibration cleanup
Data type and variable name cleanup.

Calculate the calibration sum using floats to prevent possibilities of future overflows.

Rename the calibratingG element to cyclesRemaining to be more representative of its purpose. Change its data type to int32_t to avoid calculations with signed and unsigned variables.

Fix the zero offset calculation from the calibration results to return a floating point result rather than using integer math. This may result in slight improvements in reduced gyro drift.
2018-05-16 20:38:34 -04:00
Bruce Luckcuck
ce170990a2 Fix gyro calibration zero offset calculation
It seems like the gyro calibration sample count overflow fix (#5898) caused a downstream problem with the math to calculate the zero offset.  Casting the components of the formula to (float) solves the problem.
2018-05-16 13:06:07 -04:00
Bruce Luckcuck
fdee2e5228 Break out rc interpolation as a separate task and run before pid controller and motor update
Fixes an issue with motor "spikes" when rc interpolation was enabled for throttle. The problem was that the smoothing was happening too late in the sequence and the earlier process subTaskMotorUpdate() would use the unsmoothed throttle value in the mixer if new rx data had come in between the last and current PID loop.  Also because the setPointRate was calculated at the end of the smoothing, the PID controller would always be using the value from the previous loop iteration.
2018-05-16 10:21:29 -04:00
Michael Keller
1c605c3842
Merge pull request #5898 from etracer65/gyro_cal_overflow
Fix numeric overflow for gyro calibration samples when using 32KHz sampling
2018-05-16 22:55:19 +12:00
Michael Keller
ba1cff8b39
Merge pull request #5889 from jflyper/bfdev-poc-pg-array-resource
Add handling for array of PG structures in cli resource command.
2018-05-16 22:54:51 +12:00
mikeller
0263428be7 Optimised gyro sanity checks for F7. 2018-05-16 22:45:50 +12:00
jflyper
6c044829cc Mark unused acc/gyro support toward retirement. 2018-05-16 14:31:39 +09:00
Bruce Luckcuck
e4e4948c2a Fix numeric overflow for gyro calibration samples when using 32KHz sampling
The current data type was uint16 and that would overflow when using 32KHz sampling.  This caused the calibration to only run for about 0.9 seconds instead of the expected 3 seconds.  At 32KHz the sample count is 96774 which overflows uint16 so changed the data types to uint32.
2018-05-15 13:24:08 -04:00
jflyper
20b187fea9 Add handling of array of pg structures in cli resource command. 2018-05-16 01:06:29 +09:00
jflyper
5877ee1ebf Temporary increase serial TX buffer sizes 2018-05-15 07:16:51 +09:00
Michael Keller
6995f694a3
Merge pull request #5877 from mikeller/fix_target_dependencies
Removed some target dependencies, and added makefile target 'check-target-independence' to find dependencies.
2018-05-14 20:18:48 +12:00
Michael Keller
be3d75512e
Merge pull request #5879 from mikeller/fix_smartaudio_debugging
Cleaned up SmartAudio debugging.
2018-05-14 19:31:52 +12:00
mikeller
7a03ead75e Made SIMULATOR_BUILD a makefile driven option. 2018-05-14 19:13:37 +12:00
mikeller
ede204aa81 Removed some target dependencies, and added makefile target 'check-target-independence' to find dependencies. 2018-05-14 19:13:37 +12:00
Michael Keller
50ff0ddadb
Merge pull request #5878 from mikeller/enable_bidirectional_nmea_gps
Enabled bidirectional communication with NMEA GPS for all targets.
2018-05-14 19:08:53 +12:00
mikeller
65ecd84ec5 Removed unused function and invalid conditional. 2018-05-14 19:06:57 +12:00
Michael Keller
6a24c115a8
Merge pull request #5874 from etracer65/osd_warn_cli_parms
Add individual OSD warning options as cli parameters
2018-05-14 18:34:19 +12:00
mikeller
a48da6c1ee Cleaned up SmartAudio debugging. 2018-05-13 02:08:27 +12:00
mikeller
6a605be73b Enabled bidirectional communication with NMEA GPS for all targets. 2018-05-13 01:56:36 +12:00
Miguel Angel Mulero Martinez
0b0751a693 Add Dterm filter stage 2 info to blackbox 2018-05-12 10:37:29 +02:00
jflyper
fc92aea0f6
Merge pull request #5861 from mikeller/optimised_serial_port_t
Optimised 'serialPort_t' struct.
2018-05-12 09:56:46 +09:00
jflyper
58ea3a8180
Merge pull request #5860 from mikeller/eliminate_inefficient_serial_runtime_calls
Eliminated inefficient serial function calls at runtime.
2018-05-12 09:56:24 +09:00
Bruce Luckcuck
0916d117b8 Add OSD warning options as cli parameters
Previously only a single bitmapped parameter was available in the cli but this wasn't very useful as the users would have to understand the bit positions to enable/disable warning options. This change exposes each warning item as a separate parameter.
2018-05-11 20:06:34 -04:00
Michael Keller
9b16bf58ac
Merge pull request #5858 from mikeller/disable_unavailable_osd_characters
Disable unavailable OSD characters.
2018-05-12 12:03:51 +12:00
Michael Keller
2c1a4a2c08
Merge pull request #5857 from RolandChen/BF_official
FIX: Heli 120 Mixer
2018-05-12 12:02:36 +12:00
Michael Keller
ea8432b941
Merge pull request #5851 from robertlacroix/graveyard
Add Paralyze mode support
2018-05-12 12:02:18 +12:00
Michael Keller
f8bec77c58
Merge pull request #5850 from jflyper/bfdev-serialinit-nopin-uart
UART Treat uarts without a pin as non-existent
2018-05-12 12:01:52 +12:00
Michael Keller
7e6ba60d7d
Merge pull request #5831 from etracer65/osd_stats_reorder
Changes to support enhancements to BFC for OSD stats field ordering
2018-05-12 12:00:34 +12:00
Michael Keller
0363a0611a
Merge pull request #5787 from allenfor2017/update_pin_defines_for_sbf4
update target SPEEDYBEE F4
2018-05-12 11:53:18 +12:00
Michael Keller
81d265b481
Merge pull request #5862 from s0up/nav-removal
[GPS RESCUE] - Remove navigation.c and all references to USE_NAV
2018-05-12 11:51:21 +12:00