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
Michel Pastor
0eded14827 Remove unnecessary batteryCellCount initialization 2018-07-12 00:42:07 +02:00
Alberto García Hierro
fba2e3ed77
Merge pull request #3567 from shellixyz/fix_rc_alignment_beeper
Fix beeping when using RC alignment adjust with beeper -ON_USB
2018-07-11 21:56:17 +01:00
Alberto García Hierro
108e336c5f
Merge pull request #3555 from iNavFlight/de_qmc5883_detection
Fix unreliable QMC5883L mag detection
2018-07-11 21:38:07 +01:00
Michel Pastor
a5a8eea30f Fix beeping when using RC alignment adjust with beeper -ON_USB 2018-07-11 22:15:33 +02:00
Alberto García Hierro
878a2aab51
Merge pull request #3533 from shellixyz/improve_readability
Improve readability
2018-07-11 20:43:37 +01:00
Michel Pastor
726a51ecd2 Improve readability 2018-07-11 20:24:01 +02:00
Alberto García Hierro
684a068ff2
Merge pull request #3564 from iNavFlight/agh_fix_vtx_powerlevels
Fix VTX power levels to be in 1-5 range rather than 0-4
2018-07-11 19:03:12 +01:00
Alberto García Hierro
be2dd33dda Fix VTX power levels to be in 1-5 range rather than 0-4
Drivers ignore zero, so the minimum power is actually 1.
Also, remove some hardcoded values and use proper constants
for them, fixing an issue with the number of power levels in
Tramp (sizeof of an uint16_t array was used rather than its count).

Fixes #3560
2018-07-11 17:37:05 +01:00
Alberto García Hierro
fabd3205e1
Merge pull request #3561 from iNavFlight/agh_reset_servo_biquad
Reset the biquad filter used for servos to 1500 on startup
2018-07-11 11:21:59 +01:00
Alberto García Hierro
3ccd4861d7
Merge pull request #3562 from iNavFlight/agh_fix_map_hittesting
Check for the correct display coordinate when drawing POI
2018-07-11 11:21:27 +01:00
Alberto García Hierro
327be8eeed
Merge pull request #3551 from krzysztofmatula/km-doc-diff
doc update: document 'diff' command
2018-07-11 01:03:09 +01:00
Alberto García Hierro
88b61318e8
Merge pull request #3544 from shellixyz/fix_roll_attitude_angle_display
Fix roll attitude angle display
2018-07-11 01:02:43 +01:00
Alberto García Hierro
867e46ebc9 Check for the correct display coordinate when drawing POI
When checking the display, we were testing for (poiY, poiY) rather
than (poiX, poiY), which was specially visible when drawing across
the horizontal line over the map center, since the test was always
for (0, 0), causing the scale to go to the maximum value since
(0, 0) always contains the map center symbol.

Fixes #3508
2018-07-11 00:54:57 +01:00
Michel Pastor
c4605fe163 Fix roll attitude angle display 2018-07-11 01:15:20 +02:00
Alberto García Hierro
1022ada9a7 Reset the biquad filter used for servos to 1500 on startup
Filter was initialized at zero, which delayed the servo centering
by ~2 seconds. The filter is now reset to 1500 during initialization,
so the servos receive 1500 from the start.

Coupled with #3540, this completely eliminates all servo twitching
during boot.

Thanks to @shellixyz for testing!
2018-07-10 23:03:55 +01:00
Alberto García Hierro
d882e0b596
Merge pull request #3557 from iNavFlight/agh_fix_missing_ahi_dot
Draw missing AHI character when it overlaps with the crosshairs
2018-07-10 21:52:16 +01:00
Alberto García Hierro
e71725fe53 Draw missing AHI character when it overlaps with the crosshairs
The crosshairs bounds were incorrectly calculated, causing the
character at the right of the crosshairs to not be drawn.

References #3449
2018-07-10 14:04:15 +01:00
Alberto García Hierro
6b6b49451b
Merge pull request #3548 from iNavFlight/agh_settings_info
Add support for retriving setting types and listing all of them
2018-07-09 23:31:45 +01:00
Alberto García Hierro
aa8e46b2de Use new setting accessor functions for retriving settings
This reduces flash usage by 96 bytes, making the cost of the whole
PR around 300 bytes.
Also, the settings tables in settings_generated.c are now made
static to make sure no code outside of settings.c can reference
them.
2018-07-09 22:36:01 +01:00
Konstantin Sharlaimov (DigitalEntity)
09b7c7f41e Fix unreliable QMC5883L mag detection (kudos to MJ666) 2018-07-09 20:56:16 +02:00
Alberto García Hierro
579bd5c6b2
Merge pull request #3546 from iNavFlight/de_ist8310_fix
Fix datasheet incompliance for IST8310 compass chip
2018-07-09 15:37:46 +01:00
Alberto García Hierro
c3296d5927
Merge pull request #3550 from krzysztofmatula/km-doc-omnibus-inverter
doc update: OMNIBUSF4V5 UART6TX inverter
2018-07-09 15:29:43 +01:00
Alberto García Hierro
96fa973d3f
Merge pull request #3553 from giacomo892/patch-4
Update README.md
2018-07-09 15:29:17 +01:00
giacomo892
9a88769317
Update README.md 2018-07-09 14:58:49 +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
Krzysztof Matula
257e326221 doc update: OMNIBUSF4V5 UART6TX inverter 2018-07-09 10:58:40 +02:00
Krzysztof Matula
a4a09f0f59 doc update: document 'diff' command 2018-07-09 10:57:32 +02:00
Alberto García Hierro
159a8d73ea
Merge pull request #3547 from iNavFlight/agh_update_slack_link
Update Slack auto-invite link
2018-07-09 01:27:31 +01:00
Alberto García Hierro
db9d29f896 Update Slack auto-invite link
Replace signup.team, which has been down for some time, with
publicslack.com
2018-07-08 20:33:00 +01:00
Konstantin Sharlaimov (DigitalEntity)
c4401dbc1d Fix datasheet incompliance for IST8310 compass chip 2018-07-08 21:23:46 +02:00
Alberto García Hierro
7ec87447fb
Merge pull request #3537 from iNavFlight/agh_local_times
Use local times (+TZ when possible) for external interfaces
2018-07-08 19:34:47 +01:00
Alberto García Hierro
6f79b8948d Use local times (+TZ when possible) for external interfaces
- BB logs format the date in the local TZ, including the UTC
offset in the header line.
- Files created in the SD card use the local time for timestamps,
since FAT doesn't have any notion of timezones.
- Time sync with RC Split uses the local time, since it doesn't
support timezones.
- Added new rtcGetDateTimeLocal() function, which allows removing
some branching in osd.c

Saves 40 bytes of flash on F3

Fixes #3531
2018-07-08 18:30:00 +01:00
Alberto García Hierro
d1862ecec2
Merge pull request #3542 from iNavFlight/agh_fix_auto_dst
Fix automatic DST support
2018-07-08 18:27:31 +01:00
Alberto García Hierro
fa4c1431c9 Fix automatic DST support
- Apply an offset of 3600s, not 3600ms.
- Update the applied offset to the datetime, so callers can format
the UTC offset properly.
- Apply automatic DST even when non-DST tz offset is zero.
2018-07-08 17:27:36 +01:00
Alberto García Hierro
6b2d5546e6
Merge pull request #3536 from iNavFlight/agh_fix_smartport_time_overflow
Prevent time comparison overflow in S.Port driver
2018-07-08 13:28:19 +01:00
Alberto García Hierro
5535b49f50
Merge pull request #3540 from iNavFlight/marbalon_pwm_startup_fix
PWM driver - startup value fix
2018-07-08 13:25:33 +01:00
Alberto García Hierro
b9281e3e5e
Merge pull request #3519 from teckel12/te_tweak_frsky_hdop_range
Fix FrSky HDOP range
2018-07-08 13:25:14 +01:00
Alberto García Hierro
9043a95ff4
Merge pull request #3490 from shellixyz/fix_current_bb_loggin_improve_battery_code
Fix current BB logging and improve battery code
2018-07-08 13:13:03 +01:00
Alberto García Hierro
34eed409e7
Merge pull request #3502 from shellixyz/fix_division_by_0_in_generateThrottleCurve
Fix division by 0 in generateThrottleCurve()
2018-07-08 13:12:38 +01:00
Alberto García Hierro
74e5ae8667 Prevent time comparison overflow in S.Port driver
Would stop S.Port telemetry after ~36 minutes.
After discussing this with @mikeller, we've decided to enforce the
500us response delay for S.Port, since it might be needed for some
receivers.

Fixes #3282
2018-07-08 12:49:16 +01:00
Marcin Baliniak
4514aad824 PWM driver - startup value fix 2018-07-08 10:28:32 +02:00
Michel Pastor
8fd2af31de Fix division by 0 in generateThrottleCurve()
When `thr_mid` is set to 100 a division by 0 is done in `generateThrottleCurve()`
2018-07-07 23:55:22 +02:00
Michel Pastor
e311f4ac1e Fix current BB logging and improve battery code 2018-07-07 23:48:30 +02:00
Alberto García Hierro
d7c8a6e84d
Merge pull request #3522 from giacomo892/wind_speed_BB_slow
Log estimated wind speed to BB slow frames
2018-07-07 22:41:55 +01:00
Alberto García Hierro
b0ccae5179
Merge pull request #3532 from iNavFlight/marbalon_limit_spi_speed
Add definition for MAX_SPI_SPEED to limit spi seed if defined for target
2018-07-07 22:40:28 +01:00
Marcin Baliniak
6d3a338f93 MAX_SPI_SPEED changed to BUS_SPI_SPEED_MAX 2018-07-07 23:00:19 +02:00
Alberto García Hierro
c1bcd75d20
Merge pull request #3513 from giacomo892/BBPosZ_fix
Remove posZ constrain to int16 for BB
2018-07-07 21:07:18 +01:00
Alberto García Hierro
2072c747d0
Merge pull request #3492 from shellixyz/fix_PID_output_display_and_logging
Fix PID controllers output display and logging scaling
2018-07-07 21:02:06 +01:00
Alberto García Hierro
f1c8ac484a
Merge pull request #3509 from shellixyz/fix_flight_timer
Fix flight timer for fixed wing when not using launch mode
2018-07-07 20:36:28 +01:00
Alberto García Hierro
b500f447a5
Merge pull request #3512 from shellixyz/make_failsafe_throttle_low_delay_default_0
Make failsafe_throttle_low_delay default 0
2018-07-07 20:36:10 +01:00