Commit Graph

11620 Commits

Author SHA1 Message Date
s0up ac6b8088c9 add gps rescue mode 2018-05-20 16:28:17 -07:00
mikeller 43c706fc95 Rebased, fixed regex for target name at end of line. 2018-05-20 15:28:59 -07:00
mikeller 2be4d5e569 Fix from review. 2018-05-20 15:28:59 -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 0ded96910d
Merge pull request #5904 from mikeller/add_target_independence_check_to_travis
Added target independence check to travis 'test' target.
2018-05-20 00:46:47 +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
Michael Keller 9bd8ba0673
Merge pull request #5911 from mikeller/remove_unneeded_declaration
Removed unneeded declaration of 'updateRcCommands()'.
2018-05-18 09:51:09 +12: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 fccca5220c
Merge pull request #5908 from SteveCEvans/fixmdtypos
Fix doc typos
2018-05-17 23:19:24 +12:00
Michael Keller a786f8edfd
Merge pull request #5903 from mikeller/add_linker_memory_usage_display
Added memory usage output to linker.
2018-05-17 23:16:57 +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
Steve Evans c05d9ef935 Fix doc typos 2018-05-16 22:13:51 +01:00
Michael Keller 2cb8f7e3e6
Merge pull request #5907 from etracer65/gyro_calib_fix
Fix gyro calibration zero offset calculation
2018-05-17 07:11:13 +12: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
mikeller 09ea369b44 Added target independence check to travis 'test' target. 2018-05-16 23:28:11 +12:00
mikeller e823920662 Added memory usage output to linker. 2018-05-16 23:17:03 +12: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
Michael Keller e405e41d0c
Merge pull request #5897 from jflyper/bfdev-serial-tx-buffer-size-temporary-fix
Temporary increase serial TX buffer sizes
2018-05-15 22:00:30 +12: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 3a149dd450 Rebased, fixed regex for target name at end of line. 2018-05-14 19:18:20 +12:00
mikeller 4c11c6666b Fix from review. 2018-05-14 19:13:37 +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