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

8404 commits

Author SHA1 Message Date
Konstantin Sharlaimov
2783dfc2c7
Merge pull request #3617 from shellixyz/rename_bb_vbat_and_amperage
Rename BB vbat and amperage fields to match recent changes
2018-07-18 21:26:58 +02:00
Konstantin Sharlaimov
b1339d70f8
Merge pull request #3609 from giacomo892/navTgtPosition_int32
Switch navTgtPos BB to int32_t
2018-07-18 21:26:08 +02:00
Konstantin Sharlaimov
c3d02e3408
Merge pull request #3613 from iNavFlight/agh_new_rssi_min_max
Replace rssi_scale and rssi_invert with rssi_min and rssi_max
2018-07-18 21:12:53 +02:00
Konstantin Sharlaimov
72071378f8
Merge pull request #3619 from iNavFlight/agh_validate_settings
Validate all settings at startup
2018-07-18 21:12:10 +02:00
Alberto García Hierro
9f81873d0a Fix valid ranges for 3d_deadband_throttle and fw_ff_to_i_time_constant
Their default values were outside their valid ranges
2018-07-18 11:32:31 +01:00
Alberto García Hierro
33372aacfb Validate all settings in startup
When reading the EEPROM, perform a full setting validation to ensure
all have values in their allowed ranges. This will prevent arming
in case of an improperly performed upgrade changes any setting to
an invalid value.
2018-07-18 11:22:57 +01:00
Konstantin Sharlaimov
2700108bb7
Merge pull request #3616 from iNavFlight/agh_remove_sport_sensor_wait
Eliminate 500us Smarport response delay
2018-07-17 19:30:29 +02:00
Alberto García Hierro
7290410d6f Eliminate 500us Smarport response delay
In 1.9.1, we didn't have any delays due to a bug which
wasn't updating the time of the last received S.Port request
but no problems were reported besides the lost of all sensors
after 35 minutes (caused by the overflow of the time
comparison).

However, enforcing the delay seems to cause issues with MSP
over SmartPort, see the following BF issues which has
already included the fixed delay in a release:

https://github.com/betaflight/betaflight/issues/6313
https://github.com/betaflight/betaflight/issues/6360
https://github.com/betaflight/betaflight/issues/6369

Tracing back the origin of the delay, it looks like it was added
as a cautionary measure at some point because FPort does need it,
but everything indicates S.Port works fine without it.

Inspired by @mikeller's fix in BF, the static variables have
been made non-static.
2018-07-17 15:09:39 +01:00
Michel Pastor
12b77450af Rename BB vbat and amperage fields to match recent changes 2018-07-17 15:23:57 +02:00
Alberto García Hierro
6370e978f9 Replace rssi_scale and rssi_invert with rssi_min and rssi_max
rssi_min and rssi_max allow users to specify their RSSI range by
simply introducing the smaller and bigger values they see in the
configurator or OSD, similarly to how rxrange works.
2018-07-17 00:26:28 +01:00
giacomo892
b1a07a6166 switching navTgtPos to using real PREDICT(PREVIOUS) 2018-07-16 21:27:09 +02:00
giacomo892
440514087b make navTargetPos int32_t to allow logging of altitudes higher than 327m 2018-07-16 21:26:53 +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
Konstantin Sharlaimov
b98d3c0f50
Merge pull request #3612 from iNavFlight/agh_fix_f3evo_compass_direction
Fix default compass direction for SPRACINGF3EVO
2018-07-16 20:40:43 +02:00
Alberto García Hierro
11cf23f2c9 Fix default compass direction for SPRACINGF3EVO
Fixes #3438
2018-07-16 17:09:03 +01:00
Alberto García Hierro
21e79e5d93
Merge pull request #3608 from iNavFlight/agh_settings_validate_minmax
When encoding settings, validate that min <= max for all settings
2018-07-16 17:06:45 +01:00
Alberto García Hierro
1482e994a7 When encoding settings, validate that min <= max for all settings
This will help catch errors like the one fixed in #3563 early.
2018-07-15 23:35:40 +01:00
Alberto García Hierro
1c06b30bde
Merge pull request #3606 from Andreas-Hellberg/fix_sbus_sync_interval
Fix sbus_sync_interval min/max values.
2018-07-15 23:34:58 +01:00
AndreasHellberg
0ef59e3a79 Fix sbus_sync_interval min/max values. 2018-07-15 23:25:02 +02:00
Konstantin Sharlaimov
6cc3d2900d
Merge pull request #3349 from iNavFlight/de_nav_motor_stop
New setting for disabling motor_stop in NAV modes
2018-07-15 18:20:13 +02:00
Tim Eckel
2f32d56559
Merge pull request #3 from iNavFlight/development
Sync Development Branch
2018-07-14 20:36:25 -04:00
Alberto García Hierro
f2cf315ada
Merge pull request #3599 from iNavFlight/de_sbus_sync_config
Make sbus sync delay configurable
2018-07-14 22:23:51 +01:00
Alberto García Hierro
c54f11317d
Merge pull request #3597 from iNavFlight/shellixyz_change_default_fw_alt_pids
Change default ALT PIDs for fixed wing
2018-07-14 16:35:24 +01:00
Konstantin Sharlaimov (DigitalEntity)
8277edd2f3 Make sbus sync delay configurable 2018-07-14 17:14:13 +02:00
Alberto García Hierro
7d3622b266
Merge pull request #3596 from iNavFlight/agh_fix_rc_adjusments_speed
Fix RC adjustments triggering too fast
2018-07-14 15:55:03 +01:00
Michel Pastor
fa49e84507 Update PID init comments 2018-07-14 15:22:04 +01:00
Michel Pastor
5575617cd0 Change default ALT PIDs for fixed wing 2018-07-14 15:22:04 +01:00
Alberto García Hierro
a47b6c91d7 Fix RC adjustments triggering too fast
- Make sure we don't read before the adjustmentStates[0] element
- Prevent several adjustments using the same slot from resetting
the slot state (and hence, its timeout for the next update) when
another state using the same slot is active.
2018-07-14 15:08:46 +01:00
Alberto García Hierro
9bce0abd86
Merge pull request #3594 from iNavFlight/agh_home_arrow_show_unknown
Make the home arrow show only when we know all needed data
2018-07-14 15:02:29 +01:00
Alberto García Hierro
79147ce085
Merge pull request #3585 from junwoo091400/Fix_rc_adjustment_wrongIdxValue
Fix for RC Adjustment Ranges index wrongfully Accessing States Array
2018-07-14 14:49:38 +01:00
Alberto García Hierro
c811d3b861
Merge pull request #3595 from iNavFlight/agh_fix_small_negative_coordinates
Correctly display coordinates in the (-1, 0) range
2018-07-14 13:14:07 +01:00
Alberto García Hierro
b61d46a455 Correctly display coordinates in the (-1, 0) range
Fixes #3592
2018-07-14 11:59:03 +01:00
Alberto García Hierro
48560383fa Make the home arrow show only when we know all needed data
Home arrow will only be displayed if we have a GPS fix, we have
a home direction recorded and we have a proper heading. Otherwise
the indicator will blink and it will show a fixed arrow point up
while unarmed (so users can see the arrow when configuring the OSD)
and a '-' character when armed (so users can see if some sensor
has failed during a flight).
2018-07-14 11:48:12 +01:00
Alberto García Hierro
2081d30a67
Merge pull request #3581 from iNavFlight/de_diehertz_micros_fix
Ensured micros() doesn't return a smaller value on millisecond bound
2018-07-14 11:45:25 +01:00
Alberto García Hierro
8d0e443c06
Merge pull request #3588 from iNavFlight/agh_armed_no_home_position
Show a message when arming with GPS but without HOME
2018-07-14 11:44:53 +01:00
Alberto García Hierro
aadf8bfb76
Merge pull request #3593 from shellixyz/revert_PR_3540
Revert "PWM driver - startup value fix"
2018-07-14 11:44:29 +01:00
Michel Pastor
3ffef998c8 Revert "PWM driver - startup value fix"
This reverts commit 4514aad824.
2018-07-14 09:42:41 +02:00
Alberto García Hierro
ea84f16897 Show a message when arming with GPS but without HOME
Useful for people using extra_arming_safety = OFF, so they can
notice they armed without a home position recorded.
2018-07-13 23:10:15 +01:00
Konstantin Sharlaimov (DigitalEntity)
ca3e537815 Fix tests 2018-07-13 20:31:44 +02:00
junwoo091400
b5d588634b Fixed wrong Idx value for States array from UpdateFunction 2018-07-14 00:27:06 +09:00
Andrey Mironov
5838984b2c Ensured micros() doesn't return a smaller value on millisecond bound 2018-07-12 21:26:08 +02:00
Alberto García Hierro
81ce757459
Merge pull request #3575 from iNavFlight/agh_cms_osd_settings
Add menu for OSD settings to CMS
2018-07-12 11:14:31 +01:00
Alberto García Hierro
ad3b328479 Add menu for OSD settings to CMS
Main voltage decimals, coordinate digits, etc...
2018-07-12 10:29:14 +01:00
Alberto García Hierro
d0d042b008
Merge pull request #3573 from iNavFlight/agh_osd_coordinate_digits
Add support for configurable coordinate digits in OSD
2018-07-12 10:27:17 +01:00
Alberto García Hierro
53d8e7804c
Merge pull request #3571 from iNavFlight/agh_map_decrease_scale
Teach the map drawing code to reduce scale
2018-07-12 09:47:49 +01:00
Alberto García Hierro
8852b7f2d3
Merge pull request #3572 from iNavFlight/agh_overlapping_ahi
Avoid flickering when the AHI overlaps another element
2018-07-12 09:47:33 +01:00
Alberto García Hierro
8ca7f06860 Add support for configurable coordinate digits in OSD
8-11 are allowed values. This allows pilots to choose how much
space they want to dedicate to the coordinates, while providing
a consistent display with both latitude and longitude at the same
length.
2018-07-12 09:47:10 +01:00
Alberto García Hierro
ced30ef58f
Merge pull request #3570 from shellixyz/remove_battery_unnecessary_init
Remove unnecessary batteryCellCount initialization
2018-07-12 00:59:59 +01:00
Alberto García Hierro
d5af8ebf10 Avoid flickering when the AHI overlaps another element
Make the AHI avoid drawing over other elements that might partially
overlap with it.
2018-07-12 00:08:41 +01:00
Alberto García Hierro
31840b3d44 Teach the map drawing code to reduce scale
When looking for another scale when drawing would overwrite a
non-blank character, reduce the scale when we're close to the center
and increase it when we're far from it. Otherwise there are some
pathological cases when an indicator next to the map center would
cause the map to not draw anything.
2018-07-11 23:54:19 +01:00