1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 01:05:21 +03:00
Commit graph

571 commits

Author SHA1 Message Date
Olivier C
468a040801 OSD Hud + LoRa radar (nearby aircrafts) (#4558) 2019-05-24 15:37:54 +02:00
Michel Pastor
85631d2477
Make MSP2_INAV_TEMP_SENSOR_CONFIG respect TEMPERATURE_LABEL_LEN (#4727) 2019-05-21 18:02:10 +02:00
yarreg
1eb6656766 Fix loop var init (#4725) 2019-05-21 15:33:26 +02:00
Michel Pastor
5f95df5124
Add g force OSD alarm settings to MSP (#4722) 2019-05-20 01:37:11 +02:00
Niccolò Maggioni
5b4fd73565 Current consumption alarm in OSD (#4715) 2019-05-19 17:52:24 +02:00
Konstantin Sharlaimov (DigitalEntity)
f800eb4a11 [OPFLOW] Fix compilation errors when USE_OPFLOW is not defined 2019-05-01 22:52:27 +02:00
Konstantin Sharlaimov (DigitalEntity)
1271e4d947 [OPFLOW] Refactor USE_* to make sure opflow is enabled for all targets; Implement opflow calibration 2019-05-01 21:43:48 +02:00
Konstantin Sharlaimov (DigitalEntity)
d2368ff17b Experimental opflow calibration; Add opflow calibration value to MSP [ci skip] 2019-04-30 21:40:12 +02:00
Pawel Spychalski (DzikuVx)
1d3d6f5121 MOTOR_STOP removed from Multirotors 2019-04-24 14:11:20 +02:00
Pawel Spychalski (DzikuVx)
d0073d63b7 Correct length of MSP SET frame for logic conditions 2019-04-01 21:06:46 +02:00
Alberto García Hierro
56474ce5ba
Merge pull request #4232 from iNavFlight/agh_refactor_rcdata
Refactor handling of RC input data
2019-03-18 19:36:00 +00:00
Alberto García Hierro
9829ba4851 Remove all MAX7456 specific code, replace it with generic interfaces
- Rename max7456_symbols.h to osd_symbols.h. We'll expect all supported
OSD drivers to use the same font style.
- Introduce drivers/osd.h, which defines the supported video systems
and the format for the OSD characters that all drivers must support.
- Remove drivers/vcd.h, since having a file for a single enum is
kind of annoying, move this enum to the new drivers/osd.h file.
- Add osdGetDisplayPort() for retriving the display port used by
the OSD.
- Add a new display function named writeFontCharacter() which takes
a character address and its data.
- Use the aforementioned 2 functions to implement character font
uploading in fc_msp.c, so it's not MAX7456-specific anymore.
2019-03-15 10:08:28 +00:00
Alberto García Hierro
d524d8c8cc Refactor handling of RC input data
- Remove globals rcData and rcRaw
- Use accesor functions to retrieve RX input data
- Refactor rx.c to use an array of structs instead of multiple arrays
- Drop the RC Preview menu from CMS. Implementing this without
globals requires significant flash and the usefulness of this menu
is questionable. If we get complains, we can add it back later.

Flash usage goes down ~250 bytes due to the removed menu. Final
binary is mostly unaffected, since LTO is able to inline the new
accessor functions in most cases.
2019-03-10 21:50:05 +00:00
Pawel Spychalski (DzikuVx)
e58a404452 Return -1 instead of 0 when logic conditions are disabled 2019-03-10 11:54:04 +01:00
Michel Pastor
04bd5b0b11
Update temperature related MSP messages (#4449) 2019-03-09 23:20:56 +01:00
Paweł Spychalski
c64a63b504
Convert XY VEL TO ACC controller to use feed forward component (#4326)
* modify navPidApply3 to use linear FF component

* store FF component in BB log

* Make VEL_XY FF component configurable

* change scaling for PID_VEL_XY FF component

* MSP2_PID frame to setup FF component

* Set default VEL XY FF to 40
2019-03-09 09:22:50 +01:00
Paweł Spychalski
5bfcdd8089
Refactor motor mixer to prepare for primary and secondary mixer bank (#4467)
* Refactor motor mixer to use getter instead of array copy and use getter to access

* Fix FASTRAM problem

* Solve the problem of 3D mixer scaling

* Prepare for primary and secondary motor mixer

* enable build on SPRF3NEO
2019-03-07 21:35:37 +01:00
Paweł Spychalski
c13a13b172
Logic Conditions framework (#4144)
* CLI for servo mix conditions

* RC channel greater than on servo mixer

* RC channel value based conditions

* MSP2 frames

* Docs update

* mixer condition changed to logic condition and generalized

* basic logic framwork extarcted to separate file'

* minor fixes

* Processing refactoring

* Flight values added to conditions

* Use logic conditions only on > F3

* Make logic conditions a separate entity and link from servo mixer to logic condition

* empty task to periadically compute logic conditions

* Compute logic conditions as task

* Add flags

* CLI logic to configure logic conditions

* MSP frames to get and set logic conditions

* Disabled condition always yelds false

* fixes for F3

* Review changes

* final fix in MSP2_INAV_SERVO_MIXER
2019-03-05 22:31:28 +01:00
Michel Pastor
145c4c08ab
Fix temp sensors label (#4339) 2019-02-10 23:48:10 +01:00
Michel Pastor
1aaf153748 Some temperature changes 2019-02-09 12:16:24 +01:00
Alberto García Hierro
bf4dfc8d18 Update RSSI source when rssi_channel changes via MSP (#4307)
Otherwise RSSI will not work until next reboot when channel is
changed from/to none.
2019-02-08 22:14:02 +01:00
Michel Pastor
7f6e45cb5b
Increase servo mix max rate (#4306) 2019-02-08 21:10:32 +01:00
Michel Pastor
d63ef61c0f Couple fixes 2019-02-07 23:46:20 +01:00
Michel Pastor
5270c523d6 Improve temperature framework
- Support for multiple LM75 sensors
- Support for the DS18B20 sensors
- CLI command temp_sensor to configure sensors
- Logging of all temperature sensor values
- Display of all temperature sensor values on the OSD with support for alarms
- New MSP messages to query and set sensor configuration and read temperatures
2019-02-07 23:46:20 +01:00
Konstantin Sharlaimov
939b206616
Merge pull request #4302 from iNavFlight/jh_extend_bbl_logging_rates
increase blackbox denom range (cleanup)
2019-02-07 19:21:42 +01:00
Konstantin Sharlaimov
d2c60a60e5
Merge pull request #4202 from iNavFlight/de_runtime_cal_refactor
Refactor run-time calibration
2019-02-07 19:15:13 +01:00
Pawel Spychalski (DzikuVx)
b5a7fb1461 fixes #4288 2019-02-03 11:59:49 +01:00
Jonathan Hudson
9d19ec5dc1 increase bbl denom range (cleanup) 2019-02-02 15:33:40 +00:00
Michel Pastor
426e451284
MSP safety fixes (#4281) 2019-01-30 23:34:50 +01:00
Konstantin Sharlaimov (DigitalEntity)
f8017b9d35 [CALIBRATION] Separate library for zero calibration with variance calculation (time based, with retry); Migrate GYRO and ACC to new calibration; Implement movement threshold for acc calibration to discard shaky measurements 2019-01-27 13:10:47 +01:00
Konstantin Sharlaimov
950beb550c
Merge pull request #3352 from iNavFlight/agh_osd_override_duration
Override the OSD layout for 10 seconds when configuring an item
2019-01-07 19:50:04 +01:00
Alberto García Hierro
d9cb55e16a Override the OSD layout for 10 seconds when configuring an item
When configuring the OSD via MSP (e.g. from the configurator), the
layout that was just altered is shown in the OSD for 10 seconds,
regardless of the selected OSD layout via modes.

This allows configuring the layouts when looking at them in the
goggles while the radio is powered off.
2019-01-07 13:37:47 +00:00
Konstantin Sharlaimov (DigitalEntity)
9f7bc59337 [VTX] Remove VTX_COMMON which is always defined 2019-01-07 10:36:27 +01:00
Konstantin Sharlaimov
2cd7ddea0a
Merge pull request #4142 from iNavFlight/agh_max7456_extra_chars
Add support for 512 character fonts on MAX7456, add boot logo
2019-01-06 12:12:44 +01:00
Pawel Spychalski (DzikuVx)
9fab108bbb smix reverse removed as obsolete 2019-01-02 21:51:17 +01:00
Alberto García Hierro
324a994042 Add support for read/write MAX7456 NVM for chars > 256
Add max7456Character_t, which represents the data for character a
single MAX7456 character.
Use max7456Character_t to read and pass character data around.
Change max7456WriteNvm() to accept a 2-byte character address.
Change MSP handler for MSP_OSD_CHAR_WRITE to accept 2 byte character
addresses. To keep backwards compatibility, check wether the caller
sent 55 or 56 bytes.
Add max7456ReadNvm() to read a character from the MAX7456 NVM, which
will eventually be used for font metadata.
2019-01-02 13:44:04 +00:00
Michel Pastor
4ee617771c Make the debug array cells int32 and increase cell count to 8 2018-12-03 14:52:48 +01:00
Konstantin Sharlaimov (DigitalEntity)
2b79d54cdb Serial port config uprates 2018-11-04 16:24:08 +01:00
Pawel Spychalski (DzikuVx)
aac9e485c0 async processing removed 2018-10-16 15:02:46 +02:00
Pawel Spychalski (DzikuVx)
bf626e2ec1 Braking disabled on Omnibus target 2018-08-07 14:13:12 +02:00
Pawel Spychalski (DzikuVx)
9212209d96 Merge branch 'development' into dzikuvx-mr-cruise-experiments 2018-08-07 09:46:58 +02:00
Michel Pastor
c949d19725 Remove all trailing whitespaces in .c and .h files 2018-08-06 15:54:20 +02:00
Konstantin Sharlaimov (DigitalEntity)
873b517e6b Unify reboot sequence across all use-cases 2018-07-23 21:31:46 +02:00
Konstantin Sharlaimov
3e670db83c
Merge pull request #3482 from iNavFlight/de_rcdata_ignore_failsafe
Ignore RC channel values sent by receiver in failsafe
2018-07-16 21:05:16 +02:00
Alberto García Hierro
5468d2fe6e Add support for retriving setting types and listing all of them
This allows an external caller to retrieve and change any setting
as well as listing all the available ones without any a priori
knowledge.
2018-07-09 13:58:02 +01:00
Pawel Spychalski (DzikuVx)
1231df9654 Merge branch 'development' into dzikuvx-mr-cruise-experiments 2018-07-04 17:08:56 +02:00
Konstantin Sharlaimov (DigitalEntity)
5950237aaf Don't allow data that RC receiver sends as failsafe values to pollute RC filter and rcData. Only meaningful for digital receivers that signal the link loss explicitly 2018-06-30 18:16:01 +02:00
Michel Pastor
cd3793ccbc Fix MSP2_INAV_ANALOG and convert amperage from int32_t to int16_t
- Fix MSP2_INAV_ANALOG to return possible negative values of `power`, `mAhDrawn` and `mWhDrawn`
- int16_t should be enough for amperage (+-325A)
2018-06-28 01:07:39 +02:00
Alberto García Hierro
d4d5e4a910
Merge pull request #3428 from iNavFlight/agh_name_as_setting
Add support for string settings, make "name" a setting rather an a CLI command
2018-06-25 10:21:47 +01:00
Alberto García Hierro
bc1d46d5cc
Merge pull request #3429 from iNavFlight/agh_vtx_settings_fixes
Fix VTX device type reported via MSP
2018-06-24 20:28:10 +01:00