1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-20 06:45:14 +03:00
Commit graph

3553 commits

Author SHA1 Message Date
Konstantin Sharlaimov (DigitalEntity)
1c20cdad75 Merge branch 'rth-safety'
Fixes #129
2016-04-02 17:00:01 +10:00
Konstantin Sharlaimov (DigitalEntity)
eed3852776 GPS: Fix GPS glitch detection. Closes #136 2016-04-01 17:11:51 +10:00
Konstantin Sharlaimov (DigitalEntity)
c180856b4f BARO: Remove averaging and extra LPF filtering. Changed defaults for sensor fusion for INAV 2016-03-29 11:13:15 +10:00
Konstantin Sharlaimov (DigitalEntity)
6d12c38b6c RTH: Better RTH safety. Prevent RTH from activating on airplanes if close to home. Initiate a land on multirotors when close to home. 2016-03-28 13:05:07 +10:00
Konstantin Sharlaimov
517c958d17 Merge pull request #84 from iNavFlight/gps-remove-svinfo
GPS: Remove satellites in view data, report HDOP and proper fix type.
2016-03-27 21:34:25 +10:00
Konstantin Sharlaimov
3c5ea84863 Merge pull request #117 from iNavFlight/thr-mid-hover
NAV: Make altitude hold aware of throttle expo curve midpoint. Closes #105
2016-03-27 21:15:36 +10:00
Konstantin Sharlaimov (DigitalEntity)
9a36b1ef45 NAV: Use Throttle expo curve midpoint as hover point for multicopters 2016-03-27 21:14:11 +10:00
Konstantin Sharlaimov
005b038b81 Merge pull request #114 from iNavFlight/rth-gps-timeout
RTH: Implement GPS wait timeout if no GPS available on RTH activation. Fixes #113
2016-03-27 19:35:20 +10:00
Konstantin Sharlaimov
bfb29b154d Merge pull request #132 from DzikuVx/sonar-cleanup
SONAR: Code cleanup, remove unused/useless code
2016-03-25 20:51:53 +10:00
Konstantin Sharlaimov (DigitalEntity)
c801ce80fa FW: Remove limitation of minimum ground speed for navigation 2016-03-24 10:55:58 +10:00
Pawel Spychalski (DzikuVx)
72b611ac5c useless code removed 2016-03-23 19:07:01 +01:00
Pawel Spychalski (DzikuVx)
f4cdbb2d0a duplicated condition removed 2016-03-23 18:46:19 +01:00
Konstantin Sharlaimov (DigitalEntity)
8860c9034b IMU: Weightened method of using accelerometer for IMU corrections 2016-03-23 13:50:51 +10:00
Konstantin Sharlaimov (DigitalEntity)
f3113b712a IMU: Remove fast IMU initialisation as not giving much of a benefit 2016-03-23 00:08:43 +10:00
Konstantin Sharlaimov (DigitalEntity)
871151f55c Bugfix for throttle tilt compensation. Throttle was not constrained to sane limits 2016-03-22 12:36:58 +10:00
Konstantin Sharlaimov
4f0df17db9 Merge pull request #118 from iNavFlight/optional-telem
TELEM: Made telemetry modules selectable at compile-time
2016-03-20 23:20:00 +10:00
Konstantin Sharlaimov (DigitalEntity)
111a1ade8f SERIAL: Explicit initialisation of serial port vtable 2016-03-20 19:55:59 +10:00
Konstantin Sharlaimov
0fe60c6e26 Merge pull request #120 from DzikuVx/inav-display-hdop
2D/3D fix and HDOP properly reported in OLED Display
2016-03-20 19:11:21 +10:00
Pawel
27a9599b0f code simplification 2016-03-19 16:52:29 +01:00
Pawel
06af51dacc 2D/3D fix and HDOP properly reported in OLED Display 2016-03-18 23:49:18 +01:00
Konstantin Sharlaimov (DigitalEntity)
7dd216ee11 TELEM: Made telemetry modules selectable at compile-time. Similar to GPS modules, you can configure any supported telemetry type, but you won't get any telemetry if module is not available 2016-03-18 14:36:38 +10:00
Konstantin Sharlaimov
e63e26ed46 Merge pull request #100 from iNavFlight/beeper-rework
BEEPER: New CLI command "beeper", ability to disable beeper when USB is connected w/o battery
2016-03-18 11:42:48 +10:00
Konstantin Sharlaimov (DigitalEntity)
0d041950e8 BEEPER: Bugfix for cliPrintf 2016-03-18 11:39:01 +10:00
Moto Moto
e85bd4a716 Fixed ON_USB beeper inhibit 2016-03-18 11:25:31 +10:00
borisbstyle
90f29f499e Add Beeper disable ON_USB 2016-03-18 11:25:31 +10:00
Pierre-A
7208561d68 new "beeper" CLI command
beeperCount in beeperOffSetAll for config_unittest

including suggestions by ledvinap

add BEEPER_SYSTEM_INIT condition
2016-03-18 11:25:30 +10:00
Konstantin Sharlaimov (DigitalEntity)
7ff6439c30 BLACKBOX: Log fixType and HDOP 2016-03-18 11:25:02 +10:00
Konstantin Sharlaimov (DigitalEntity)
fc3e649c03 LTM: Report 2D/3D GPS fix correctly 2016-03-18 11:25:01 +10:00
Konstantin Sharlaimov (DigitalEntity)
989f9e2085 GPS: Better GPS fix reporting: 0=none, 1=2D, 2=3D 2016-03-18 11:25:01 +10:00
Konstantin Sharlaimov (DigitalEntity)
1d55aeb125 GPS: Reinstate HDOP in gpsSol. Report HDOP as an extra field in MSP_RAW_GPS and as a first satellite signal quality in MSP_GPSSVINFO until Configurator fully support HDOP display 2016-03-18 11:25:00 +10:00
Konstantin Sharlaimov (DigitalEntity)
68073458c4 GPS: Remove satellites in view data; GPS baud rate defaulted to 38400; Added MSP_GPSSTATISTICS message to report GPS performance data (accuracy, rate, error count) 2016-03-18 11:24:59 +10:00
Konstantin Sharlaimov (DigitalEntity)
ddc75033ef Merge branch 'scheduler-queue' 2016-03-18 10:50:00 +10:00
Konstantin Sharlaimov
da8f1b1c74 Merge pull request #111 from iNavFlight/serial-buffering
Add serial write buffering by Michael Hope
2016-03-18 10:41:19 +10:00
Michael Hope
a7e2e2c7b2 serial: add writeBuf() and implement for USB.
This lets USB send up to 32 bytes in a frame instead of 32 one byte
frames.  Add a fallback for drivers that don't implement writeBuf().

serial: allow buffering to speed up USB virtual COM ports.

Add begin write and end write hints.  If implemented by the serial
driver, then the driver can buffer up data sent via serialWrite() and
flush it when serialEndWrite() is called.

Implemented at the buffer level as it requires the least change to how
serial_msp and serial_cli are architected.

Also tidy up the visibility in the VCP driver.

Prevent serial tx buffer overflow.

Note: this is likely not the best solution, we can investigate further
in due course.

drivers: add a buffering writer.

This wraps around the serial API and buffers a configurable number of
characters before flushing.

cli: add buffering.

This greatly speeds up the CLI when running over USB VCP under a
virtual machine.

msp: add buffering around the writes.

This bulks up the writes and lets the USB VCP driver send one 20 byte
frame instead of 20 one byte frames.  This speeds up the blackbox
download and makes VCP much more reliable when running under a virtual
machine.

Fix for: serial buffer broke BLHeli 1wire pass through
2016-03-18 10:40:58 +10:00
Konstantin Sharlaimov (DigitalEntity)
f063c46e9c MSP: Fixed incorrect assumption about BOX ordering. Fixes #116 2016-03-18 10:16:55 +10:00
Martin Budden
3a6a27e4bd Improved formatting of tasks statistics in CLI. 2016-03-17 15:55:04 +10:00
Konstantin Sharlaimov (DigitalEntity)
324711ddda SCHEDULER: Move scheduler code to a separate directory 2016-03-17 15:55:04 +10:00
Konstantin (DigitalEntity) Sharlaimov
33636bb847 Scheduler fixups 2016-03-17 15:55:03 +10:00
Martin Budden
7809389707 Initial commit of run queue for scheduler.
Removed isEnabled flag, replaced by task being in queue or not.

Improvements to queue.

Minor tidy.

Unittests

Minor optimisation: only inclued queueContains if it is required.

Optimised scheduler queue iterators.

Fixed static inline declaration of queue iterators. Minor tidy of case when selectedTask == NULL

Minor optimisations to queueAdd and queueRemove

Whitespace tidy.

Removed conditional inclusion of queueContains.

More test code. Fixed bug in queueAdd.

Added test to check filling up and emptying queue.

Some rework before rebase.

Post rebase fixup.

Improved inclusion of platform.h. Improved initialization in queueClear.
2016-03-17 15:55:03 +10:00
Konstantin Sharlaimov (DigitalEntity)
1f9e743395 RTH: Implement GPS wait timeout if no GPS available on RTH activation 2016-03-17 15:54:49 +10:00
Martin Budden
afed6b02d1 Made use of WS2811_DMA_TC_FLAG consistent. 2016-03-16 11:00:28 +10:00
Martin Budden
cfa91f244e Moved function declarations out of rx.c into relevant header files. 2016-03-16 10:59:20 +10:00
Dominic Clifton
ce77e76ca5 Disallow gyro sync denominator < 2 when gyro sync and gps are enabled on
F1 targets. Also disallow looptime < 2000 when GPS enabled.

Note: Too much CPU loads prevents arming, this reduces CPU load.
2016-03-15 21:47:48 +10:00
Dominic Clifton
ae2919f652 only run git log once per build. Closes #1909 2016-03-15 21:43:29 +10:00
Dominic Clifton
41b7e8a1ca Update makefile help to show 'bin' alias. See #1857 2016-03-15 21:43:21 +10:00
Dominic Clifton
397a864d3d Support out of order ISR events for PPM. Rename previousTime to
currentCapture to better indicate it's use.

Add some PPM event debugging code (disabled by default).
2016-03-15 21:43:13 +10:00
Echelon9
b148e016ae Don't promote two equivalent user facing options in 'make help'. The two alternative commands continue to exist for scripts etc. 2016-03-15 21:39:05 +10:00
Echelon9
b884f7d29f Correct typo in 'make help' description string 2016-03-15 21:38:54 +10:00
Echelon9
51d8192d1f Clean up stray 'make help' strings that do not apply to valid options 2016-03-15 21:33:58 +10:00
Read Error
455a358591 Lux Commit 2016-03-15 21:33:39 +10:00