Michel Pastor
11f1762d45
Fix building without USE_CMS
2018-07-25 16:26:47 +02:00
Michel Pastor
d61978b328
Fix building without USE_WIND_ESTIMATOR
2018-07-25 16:23:59 +02:00
Konstantin Sharlaimov
14738b5c90
Merge pull request #3635 from iNavFlight/de_crsf_fix
...
Updated CRSF frame format to use the sync byte instead of the frame address
2018-07-21 23:06:05 +02:00
Konstantin Sharlaimov (DigitalEntity)
04904864e7
Fix CRSF telemetry address byte
2018-07-21 22:26:14 +02:00
Konstantin Sharlaimov
6fe07340fa
Merge pull request #3634 from iNavFlight/agh_fix_pixracer_mag_orientation
...
Fix default mag orientation in PIXRACER target
2018-07-21 21:31:50 +02:00
Alberto García Hierro
7d7d09bab2
Fix default mag orientation in PIXRACER target
...
Orientation was not defined, so it used the default one
(non-flipped, non-rotated) while the MAG in this board is actually
rotated 90º CW.
Thanks to Jivitesh Debata for testing the fix.
2018-07-21 18:44:00 +01:00
Alberto García Hierro
b0dd9d14d9
Merge pull request #3633 from iNavFlight/agh_akk_smartaudio_bug_workaround
...
Add workaround for AKK VTX with S.Audio bug
2018-07-20 23:23:51 +01:00
Alberto García Hierro
84da3a5940
Add workaround for AKK VTX with S.Audio bug
...
It shouldn't affect VTX properly implementing SmartAudio, since
the workaround only requires sending an extra zero byte. Tested
with AKK X2 Ultimate.
Actual fix by @codecae and @mikeller from BF.
Fixes #3625
2018-07-20 21:25:21 +01:00
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
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