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

64 commits

Author SHA1 Message Date
Jonathan Hudson
6ee7f3efa4 fix LTM attitude (mis-cast) 2025-02-07 17:17:30 +00:00
Pawel Spychalski (DzikuVx)
ae5869c0bc Merge branch 'release_7.1.0' into master_7.1.0 2024-03-19 09:11:11 +01:00
Scavanger
2fa82a33e7 7.1-RC1-Autoland-Fix 2024-03-13 17:01:49 -03:00
Roman Lut
599e45c48f added USE_GPS_FIX_ESTIMATION
fixed indentation
2023-08-09 09:48:46 +02:00
Roman Lut
0fb2c1edc8 Merge branch 'master' of https://github.com/RomanLut/inav into submit-gps-fix-estimation 2023-04-05 10:15:54 +02:00
Roman Lut
12cb0c5757 support GPS Fix estimation on sensor timeout 2023-03-06 17:56:36 +01:00
Roman Lut
936a7fd3a2 use pitot values only if healty 2023-02-27 18:03:17 +01:00
JuliooCesarMDM
9b5106aafe Rename pitotCalculateAirSpeed 2022-08-16 21:11:53 -03:00
breadoven
2416710b29 remove USE_NAV define 2021-11-17 21:47:40 +00:00
Michel Pastor
3aadc493c0
Rename NAV CRUISE mode to NAV COURSE HOLD (#6297) 2021-04-06 22:21:49 +02:00
Jonathan Hudson
f8242bc679 add launch and autotune to s-frame 2019-02-26 19:45:35 +00:00
Michel Pastor
c949d19725 Remove all trailing whitespaces in .c and .h files 2018-08-06 15:54:20 +02:00
giacomo892
46ef27db85 Implement CRUISE MODE for Fixed Wing (#3311)
* Nav cruise mode (2D/3D)
* CRUISE FLM on LTM telemetry
2018-06-16 18:27:22 +02:00
Pawel Spychalski (DzikuVx)
969825f53d Gimbal mode removed. If needed, this can be recreated using mixer itself 2018-05-09 08:20:12 +02:00
giacomo892
8b30841ab7 ltm shared scheduler fix 2018-04-11 21:44:55 +02:00
Alberto García Hierro
a9c91b6e07 Add FPort support
FPort code is mostly imported from Betaflight. To make future RX
updates easier, a few more changes have been done to make the
RX/Telemetry code in BF and INAV a bit closer.

- Imported RSSI handling code from BF with some changes
- frsky_vfas_cell_voltage setting renamed to report_cell_voltage
- Added telemetry_halfduplex setting
- sbus_inversion renamed to serialrx_inverted, should apply to all
protocols eventually
- New MSP cmds MSP_TX_INFO/MSP_SET_TX_INFO now allow setting the RSSI
via MSP, thus RX_MSP doesn't need to use an extra channel anymore.
2018-03-16 12:50:23 +00:00
Alberto García Hierro
c661d0676b Add accessors for battery functions
Implement functions for accessing battery/current state rather
than accessing global variables directly. This will let us reuse
the RX/telemetry code from BF minimizing the required changes.
Thanks to LTO, this only adds a small ~20 byte overhead in flash.
2018-03-13 12:46:50 +00:00
shellixyz
f00194c167 Improve battery monitoring (#2705)
* increase battery voltage resolution to 10mV
* increase battery voltage resolution to 10mV: update VBATT_HYSTERESIS
* increase battery voltage resolution to 10mV: fix telemetry and other places where vbat calculations needs to be divided by 10
* increase battery voltage resolution to 10mV: revert blackbox data to 100mV resolution because modifying the viewer is not trivial
* increase battery voltage resolution to 10mV: change new MSPv2 frame type names to follow convention

* smartport telemetry: remove wrong and now irrelevant comments

* Improve battery monitoring
* improve battery monitoring: fix/simplify the batteryAdcToVoltage function
* improve battery monitoring: Add OSD voltage decimals setting to OSD MISC menu
* improve battery monitoring: clean the batteryConfig struct
* improve battery monitoring: increase batteryConfig PG group version to 1
* improve battery monitoring: change capacity settings type from uin16_t to uint32_t (65Wh is not very large, it is about 6Ah for a 3S Li-Po)
* improve battery monitoring: rename capacity settings
* improve battery monitoring: improve OSD code
* improve battery monitoring: simplified taskUpdateBattery
* improve battery monitoring: use unfiltered vbat to decide if the battery is full
2018-02-02 12:28:34 +10:00
shellixyz
fd40892d8e Replace PASSTHROUGH with MANUAL flight mode (FW) (#2661)
* FW: add manual flight mode
* manual mode: separate roll and pitch expo
* manual flight mode: cleaning
* replace PASSTHRU mode with MANUAL mode
* manual mode: merge pitch and roll expo
* manual mode: add OSD menu for manual rates and expo
* manual mode: forgot to add yaw rate adjustment in OSD menu
* manual mode: add adjustments
* manual mode: move rates applications in fc_core
* group controlRateConfig settings by function
* group controlRateConfig settings by function: fix ALIENFLIGHTF3 default rates config
* manual mode rc adjustments: adapt to fc723121 changes
* manual mode: clean rc adjustments
* add new MSPv2 messages: MSP2_INAV_RATE_PROFILE and MSP2_INAV_SET_RATE_PROFILE
2018-01-31 19:44:43 +10:00
Alberto García Hierro
d5ba9c4eec Rename a few more flags
NAV -> USE_NAV
FIXED_WING_LANDING -> NAV_FIXED_WING_LANDING
ASYNC_GYRO_PROCESSING -> USE_ASYNC_GYRO_PROCESSING
BOOTLOG -> USE_BOOTLOG
STATS -> USE_STATS
2017-12-04 15:28:31 +00:00
Alberto García Hierro
7a1491e158 Prepend USE_ prefix to CPP directives for enabling features
Prepended to: 'ACC', 'GYRO', 'BARO', 'MAG', 'LED_STRIP',
'SPEKTRUM_BIND', 'SERIAL_RX', 'BLACKBOX', 'GPS', 'GPS_PROTO_UBLOX',
'TELEMETRY', 'TELEMETRY_LTM', 'TELEMETRY_FRSKY', 'CMS',
'GPS_PROTO_NMEA', 'GPS_PROTO_I2C_NAV', 'GPS_PROTO_NAZA',
'GPS_PROTO_UBLOX_NEO7PLUS', 'GPS_PROTO_MTK', 'TELEMETRY_HOTT',
'TELEMETRY_IBUS', 'TELEMETRY_MAVLINK', 'TELEMETRY_SMARTPORT',
'TELEMETRY_CRSF', 'PWM_DRIVER_PCA9685', 'PITOT', 'OSD',
2017-12-04 13:01:24 +00:00
Alberto García Hierro
ef18e03421 Change openSerial() to accept an additional parameter for the callback
This will eventually let us reduce global static variable usage and
share more code with BF, since they've already made this change
to their serial API.

While doing too much stuff in the callback is not ideal (it's called
from the ISR right now), we can change that later in the implementation
without affecting the API surface (by e.g. introducing a ring buffer
per serial port and calling the callback from TASK_SERIAL).
2017-11-30 11:18:02 +00:00
Martin Budden
95466e0e1a LTM telemetry tidy 2017-08-14 10:41:23 +01:00
Konstantin Sharlaimov
53f62e3fd7 Merge pull request #1841 from iNavFlight/de_airspeed_mods
Airspeed improvements
2017-07-16 22:13:27 +10:00
Martin Budden
fd7d770fb1 Whitespace tidy 2017-07-05 07:42:07 +01:00
Konstantin Sharlaimov (DigitalEntity)
e4902c2a22 Move airspeed to S-frame in LTM 2017-06-30 18:15:55 +10:00
Konstantin Sharlaimov (DigitalEntity)
4f6107c047 Add airspeed to MAVLink and LTM telemetry 2017-06-29 18:20:29 +10:00
Krzysztof Matula
aeac0f3d16 The MAG mode is usually a long-term setting, while ALTHOLD rather short-term.
Changing the order of if-s, so ALTHOLD is reported first, then MAG mode only if ALTHOLD is not enabled.
2017-04-27 00:57:21 +02:00
Konstantin Sharlaimov
f6a47afe05 Merge pull request #1498 from iNavFlight/ibus
SerialRX and telemetry modifications
2017-04-05 15:26:17 +10:00
Konstantin Sharlaimov (DigitalEntity)
d3147b71e8 Log last disarm reason to blackbox, report via LTM 2017-04-05 14:49:20 +10:00
Konstantin Sharlaimov (DigitalEntity)
7853920273 Allow SerialRX sharing with uni-directional telemetry; Allow SerialRX half-duplex on F4 (connect to TX pin) 2017-04-01 01:31:07 +10:00
Jonathan Hudson
11bed3fb58 fix cli for sub-9600 baud rates, update ltm to force slower scheduler on unrealisticly low rates 2017-03-27 21:30:21 +01:00
Konstantin Sharlaimov (DigitalEntity)
9f206ff755 Make LTM send X-Frame even for targets w/o GPS 2017-03-27 17:49:33 +10:00
Jonathan Hudson
6be27778da * tidy up LTM update schedules
* update CLI and Telemetry documentation
2017-03-26 11:51:32 +01:00
Jonathan Hudson
88ed98a7f5 reorder ltm slow rate stanzas 2017-03-25 20:49:47 +00:00
Jonathan Hudson
230ffc90ad Add an option to have different update rates for LTM 2017-03-25 20:29:24 +00:00
Konstantin Sharlaimov (DigitalEntity)
0e4833f41e Rename MAG mode to HEADING LOCK mode; Allow to operate without compass 2017-03-19 16:07:54 +10:00
Martin Budden
5fcd222cc7 Split time declarations out of system.h into time.h 2017-02-07 17:01:02 +00:00
Martin Budden
58e3f5aebe Moved navigation modules to navigation directory 2017-01-27 18:10:34 +00:00
Martin Budden
c85823e4ae Added telemetryConfig parameter group 2017-01-16 07:27:36 +00:00
Martin Budden
0d2d74a259 Renamed config/config.* to fc/config.* 2017-01-01 15:59:45 +00:00
Konstantin Sharlaimov (DigitalEntity)
4f348d5b58 Change MSP and LTM to indicate hardware failure, not hardware health; Send LTM X-frame always 2016-12-11 19:53:59 +10:00
Konstantin Sharlaimov (DigitalEntity)
45e5a86c31 Add overall hardware health reporting via MSP_STATUS/MSP_STATUS_EX and LTM 2016-12-11 19:53:59 +10:00
Konstantin Sharlaimov (DigitalEntity)
94044888db Fix missing mAh reporting in LTM 2016-11-28 22:38:50 +10:00
Martin Budden
d9f35dfc79 Reduced and rationalised #includes 2016-11-03 15:56:14 +00:00
Martin Budden
7ac65b172d Improvements to inav nrf24 protocol and telemetry 2016-08-18 13:50:50 +01:00
Martin Budden
944adb06f8 Minor changes to directory structure to reflect changes in Cleanflight and betaflight 2016-08-09 08:19:15 +01:00
Martin Budden
4f4a38a7c9 Use sbuf for header and crc 2016-08-08 22:40:51 +01:00
Martin Budden
8e9359944d Corrected checksums 2016-08-08 18:18:11 +01:00
Martin Budden
78f2dbf55d Converted ltm telemetry to use streambuf serialisation 2016-08-08 14:09:19 +01:00