1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 16:55:22 +03:00
Commit graph

1153 commits

Author SHA1 Message Date
Paweł Spychalski
5f63b73226
Merge pull request #897 from iNavFlight/agh_fix_double_call_dispatch
Fix double dispatch of MSP calls with the same code
2020-01-22 09:49:27 +01:00
Paweł Spychalski
669c440960
Merge pull request #896 from iNavFlight/agh_dataview_as_hex
Add DataView.asHex()
2020-01-22 09:44:40 +01:00
Alberto García Hierro
b9fef4e25c Fix double dispatch of MSP calls with the same code
Current MSP handling groups callbacks by their MSP command
and when a response comes back it calls all the pending handlers
with the same response object.

This works fine when all MSP calls are either pure input or pure
output (e.g. the have a non-empty payload in just one direction).
However, we've had some calls that have a payload in both directions
for some time, like MSPV2_SETTING. For those MSP commands, the
response will depend on the request, so calling all handlers on
the first response received produces the wrong results. It's also
problematic on handlers that expect any kind of response, since the
DataView object is reused, but its offset was never reset which
would result in the second handler getting an empty response.

Change this strategy to call just the first pending handlers for
the MSP command received in the response. While this is still
a theoretical race condition (there's no guarantee a sequence of
the same command with different payloads will be replied in the
same order as they were issued to the FC), it's the best we can
do unless we add some kind of nonce/token system to each MSP
request, which would incur a significant overhead.
2020-01-21 21:03:03 +00:00
Alberto García Hierro
ad465ec654 Add DataView.asHex()
Returns the DataView as an hex formatted string with a '/' indicating
the current offset position. Useful for debugging.
2020-01-21 20:56:38 +00:00
Alberto García Hierro
b7d36044b0 Remove double initialization of helper.defaultsDialog
helper.defaultsDialog.init() was called from both onConnect()
and onValidFirmware(). Thanks to @dzikuvx for pointing out that
just the last call was enough.
2020-01-21 20:18:32 +00:00
Niccolò Maggioni
0d3659a92e
Show µs in mixer when "ONE" input is selected 2020-01-11 19:21:50 +01:00
Konstantin (DigitalEntity) Sharlaimov
e6b5719cc4 [DJI] Add support for DJI FPV goggles and SBUS Fast protocol 2020-01-02 10:34:57 +01:00
Paweł Spychalski
3102b0dfe3
Merge pull request #868 from iNavFlight/dzikuvx-pid-tuning-tabs
Tabs on PID Tuning tab
2019-12-09 17:59:54 +01:00
Pawel Spychalski (DzikuVx)
f56b6ef40c Merge branch 'master' into dzikuvx-pid-tuning-tabs 2019-12-09 17:57:42 +01:00
Pawel Spychalski (DzikuVx)
4ebb8fb3ff Fix some minor issues on mixer tab 2019-12-09 17:55:33 +01:00
Paweł Spychalski
bdc76449e1
Merge pull request #875 from shellixyz/add_BMP388_2
Add BMP388 baro
2019-12-04 18:57:52 +01:00
Pawel Spychalski (DzikuVx)
80a81efd7a Allow firmware of 2.4 family 2019-12-04 18:31:14 +01:00
Michel Pastor
07083f93ba Add BMP388 baro 2019-12-01 00:38:43 +01:00
Pawel Spychalski (DzikuVx)
51945769c7 Basic PID Tab rework 2019-11-21 22:20:44 +01:00
Pawel Spychalski (DzikuVx)
761ad4d587 Basic GUI for dynamic filters 2019-11-21 20:34:06 +01:00
Pawel Spychalski (DzikuVx)
34a4057f79 Improve Outputs handling 2019-11-21 19:52:28 +01:00
Pawel Spychalski (DzikuVx)
73015617c7 Enable Blackbox on blackbox page 2019-11-21 19:21:14 +01:00
Pawel Spychalski (DzikuVx)
78fbb84f9e Basic framework to work with features 2019-11-21 18:28:52 +01:00
Pawel Spychalski (DzikuVx)
22335fa99e Merge remote-tracking branch 'origin/master' into release-2-3-0 2019-11-20 23:56:16 +01:00
Pawel Spychalski (DzikuVx)
85893d07cd Activate defaults only on 2.3 firmware 2019-11-20 11:55:28 +01:00
Pawel Spychalski (DzikuVx)
91ffb96e1e Setup miniquad defaults 2019-11-20 11:49:26 +01:00
Pawel Spychalski (DzikuVx)
c27d956323 Dummy dialog 2019-11-20 11:49:14 +01:00
Paweł Spychalski
7cce386aab
Merge pull request #851 from iNavFlight/dzikuvx-mandatory-defaults-dialog
Defaults dialog
2019-11-20 09:58:33 +01:00
Pawel Spychalski (DzikuVx)
dfce134a2a Merge remote-tracking branch 'origin/master' into dzikuvx-outputs-tab-configuration 2019-11-20 09:56:42 +01:00
Pawel Spychalski (DzikuVx)
4b43259f9e Setup miniquad defaults 2019-11-02 17:57:53 +01:00
Pawel Spychalski (DzikuVx)
f18696ab9a Dummy dialog 2019-11-02 15:24:56 +01:00
Pawel Spychalski (DzikuVx)
8c8ddd4f52 Outputs configuration in outputs tab 2019-11-02 12:12:23 +01:00
Pawel Spychalski (DzikuVx)
79a16a8fe3 Cleanup 2.1 version 2019-10-27 20:17:20 +01:00
Pawel Spychalski (DzikuVx)
cb1ff69703 Cleanup INAV 2.0.0 2019-10-26 22:30:59 +02:00
Michel Pastor
a17b8ee4d1
Add setting name to the MSP2_COMMON_SETTING_INFO message (#843) 2019-10-17 23:44:40 +02:00
Alberto García Hierro
3b9e12a15c
Merge pull request #835 from iNavFlight/agh_frskyosd
Add support for selecting FrSky OSD in the ports tab
2019-10-17 09:49:55 +01:00
Michel Pastor
fced137e82 Rename SPL006 to SPL06 2019-10-14 20:16:07 +02:00
Alberto García Hierro
0e47a8415c Add support for selecting FrSky OSD in the ports tab 2019-09-26 09:47:30 +01:00
Pawel Spychalski (DzikuVx)
4b0d70cf3c Sticky operator 2019-09-24 13:53:39 +02:00
Pawel Spychalski (DzikuVx)
87456f2bf6 Cleanup servos tab 2019-09-23 19:03:08 +02:00
Pawel Spychalski (DzikuVx)
9c627f7445 Report logic condiotion activation status 2019-09-14 12:55:16 +02:00
Pawel Spychalski (DzikuVx)
5325ef857a Version bump to 2.3 2019-09-09 20:40:52 +02:00
Michel Pastor
150aa6916b
Add SPL006 barometer (#823) 2019-08-25 02:14:22 +02:00
Pawel Spychalski (DzikuVx)
f71fa9a348 Output allocation method that is more aligned with FC counterpart 2019-07-16 21:16:25 +02:00
Alberto García Hierro
9e81e6dbb1 Make firmware flasher more robust
Check for DFU/serial port regularly during 10 seconds instead of
waiting 1s and trying once. Also, make sure that we don't mistake
DFU devices with serial ones, since the serial port might appear
briefly while the FC is rebooting.
2019-07-16 19:56:58 +02:00
Pawel Spychalski (DzikuVx)
9b01cec4fb Support 16 servos 2019-07-09 12:42:54 +02:00
Paweł Spychalski
f432bcff45
Merge pull request #794 from nmaggioni/nm_flight_modes_as_logic_conditions
Flight modes as logic conditions
2019-07-09 09:33:56 +02:00
Alberto García Hierro
2f159fb83c Serial: Fix arguments to i18n.getMessage() in onInvalidFirmwareVersion()
Formatting arguments are passed as an array
2019-06-24 18:04:56 +01:00
Niccolò Maggioni
ea935bb25e
Flight modes as logic conditions 2019-06-12 18:06:27 +02:00
Pawel Spychalski (DzikuVx)
4a0bf7b93b Fix app not starting in chrome 2019-06-09 13:11:09 +02:00
Michel Pastor
a60c481e13
Add new RTH mode AT_LEAST_LINEAR_DESCENT to GUI (#788) 2019-06-04 02:16:42 +02:00
mirko-it
e1d92bc114 Fix for Load/Save mission not working (#783)
* Offline missions (with FC disconnected) are now available for load and save to file.
Supports XML file format, should be compatible enough with other software

* removed default file name

* removed code in early stage of future developments

* code style and fc buttons

* map resize handling

* fix include nwdialog and fs packages

* xml2js lib with all dependencies in a single file
2019-05-31 12:01:04 +02:00
Michel Pastor
4cf10eedf9
Add the GSM SMS telemetry option (#781) 2019-05-25 17:30:50 +02:00
Pawel Spychalski (DzikuVx)
ad94f9f275 Fix 2.1 compatibility issues 2019-05-25 13:51:08 +02:00
Konstantin Sharlaimov (DigitalEntity)
bc95909055 [PORTS] Add ESC and OPFLOW to serial port bit masks 2019-05-11 22:04:23 +02:00