Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INAV 7.1.1 #9934

Merged
merged 47 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
9db5a54
Version to 7.1.1
DzikuVx Apr 11, 2024
f403610
Update Fixed Wing Landing.md
0crap Apr 8, 2024
67b688c
No longer require MAG to unlock GPS related flight modes
DzikuVx Mar 22, 2024
8eeea07
Merge pull request #9896 from iNavFlight/b14ckyy-Update-FW-landing-Doc
DzikuVx Apr 11, 2024
80adbbc
Merge pull request #9890 from iNavFlight/MrD_Add-extra-description-to…
DzikuVx Apr 11, 2024
db13d5d
Update navigation.c
breadoven Apr 11, 2024
354eb2c
updates
breadoven Apr 12, 2024
1134c45
Update osd.c
breadoven Apr 15, 2024
d00780a
Update blackbox.c
breadoven Apr 15, 2024
eb8843b
changes
breadoven Apr 15, 2024
79e974d
Update navigation.c
breadoven Apr 16, 2024
17e7855
Update osd.c
breadoven Apr 16, 2024
0a2a804
Merge pull request #9950 from breadoven/abo_blackbox_add_auto_enabled…
DzikuVx Apr 17, 2024
c3eba6a
Merge pull request #9669 from Aocoda-RC/aocodarc-f405v3
sensei-hacker Apr 17, 2024
55f4611
Merge pull request #9954 from iNavFlight/mmosca-backport-new-targets
DzikuVx Apr 17, 2024
c5a05c0
Merge pull request #9919 from YI-BOYANG/master
DzikuVx Apr 10, 2024
5a8aa64
Merge pull request #9955 from iNavFlight/mmosca-backport-new-targets
mmosca Apr 17, 2024
a1d28a5
Merge pull request #9807 from jhemcu/jhemcu-targets
mmosca Apr 20, 2024
7dabfb0
Fix ZEEZF7 output mapping
DzikuVx Apr 21, 2024
3e961f7
Fix line endings
DzikuVx Apr 21, 2024
34e8d82
Enable baro-less navigation by default
DzikuVx Apr 21, 2024
7246709
Merge pull request #9966 from iNavFlight/dzikuvx-enable-baro-less-by-…
DzikuVx Apr 21, 2024
66e4526
Merge pull request #9947 from breadoven/abo_nav_improvements
DzikuVx Apr 21, 2024
1d919de
Update navigation.c
breadoven Apr 21, 2024
814f687
Merge branch 'release_7.1.1' into abo_autolanding_landing_disarm_fix
breadoven Apr 21, 2024
00fa921
Merge pull request #9940 from breadoven/abo_autolanding_landing_disar…
breadoven Apr 22, 2024
523c483
Merge pull request #9951 from breadoven/abo_stats_throttle_high_fix
DzikuVx Apr 22, 2024
72b5fab
Revert enforcing mode on TIM3
DzikuVx Apr 29, 2024
0bf3d3c
Merge pull request #9990 from iNavFlight/mmosca-flywoof745-fixes
DzikuVx Apr 29, 2024
e0f383b
Revert to macos13 in release_7.1.1 to fix build without backporting a…
mmosca Apr 29, 2024
6669af8
back to unix line endings
mmosca Apr 29, 2024
59d9160
Unix line endings
mmosca Apr 29, 2024
61ac48f
fix warning
mmosca Apr 29, 2024
3fd5f28
Fix warnings
mmosca Apr 29, 2024
3af52f7
More warning fixes
mmosca Apr 29, 2024
a469daa
macos latest
mmosca Apr 29, 2024
ef5a0dd
Merge pull request #9993 from iNavFlight/mmosca-revert-to-macos13
mmosca Apr 29, 2024
6f8e32f
Merge pull request #9991 from iNavFlight/mmosca-cherrypick-flywoof745…
mmosca Apr 29, 2024
09d404f
nav hold fix
breadoven May 1, 2024
f88f630
Merge pull request #9999 from breadoven/abo_nav_hold_fix
DzikuVx May 2, 2024
2a62aff
WP altitude enforce hold fix
breadoven May 3, 2024
83de3f9
change loiter control logic
breadoven May 4, 2024
8ad1e5d
simplify hold state logic
breadoven May 4, 2024
32ba122
Add comments
breadoven May 6, 2024
dd91a87
Merge pull request #10002 from breadoven/abo_wp_alt_enforce_hold_fix
DzikuVx May 6, 2024
cd6c51d
Merge remote-tracking branch 'origin/master' into release_7.1.1
DzikuVx May 7, 2024
6eb6377
Compilation fix
DzikuVx May 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -1814,11 +1814,11 @@ Allows to chose when the home position is reset. Can help prevent resetting home

### inav_use_gps_no_baro

_// TODO_
Defines if INAV should use only use GPS data for altitude estimation when barometer is not available. If set to ON, INAV will allow GPS assisted modes and RTH even when there is no barometer installed.

| Default | Min | Max |
| --- | --- | --- |
| OFF | OFF | ON |
| ON | OFF | ON |

---

Expand Down
10 changes: 8 additions & 2 deletions src/main/blackbox/blackbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -1308,10 +1308,16 @@ static void writeSlowFrame(void)
static void loadSlowState(blackboxSlowState_t *slow)
{
memcpy(&slow->flightModeFlags, &rcModeActivationMask, sizeof(slow->flightModeFlags)); //was flightModeFlags;
// Also log Nav auto selected flight modes rather than just those selected by boxmode
if (!IS_RC_MODE_ACTIVE(BOXANGLE) && FLIGHT_MODE(ANGLE_MODE)) {
// Also log Nav auto enabled flight modes rather than just those selected by boxmode
if (FLIGHT_MODE(ANGLE_MODE)) {
slow->flightModeFlags |= (1 << BOXANGLE);
}
if (FLIGHT_MODE(NAV_ALTHOLD_MODE)) {
slow->flightModeFlags |= (1 << BOXNAVALTHOLD);
}
if (FLIGHT_MODE(NAV_RTH_MODE)) {
slow->flightModeFlags |= (1 << BOXNAVRTH);
}
if (navigationGetHeadingControlState() == NAV_HEADING_CONTROL_AUTO) {
slow->flightModeFlags |= (1 << BOXHEADINGHOLD);
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/fc/fc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ static void updateArmingStatus(void)
DISABLE_ARMING_FLAG(ARMING_DISABLED_NO_PREARM);
}

if (ARMING_FLAG(ARMING_DISABLED_LANDING_DETECTED) && !IS_RC_MODE_ACTIVE(BOXARM)) {
DISABLE_ARMING_FLAG(ARMING_DISABLED_LANDING_DETECTED);
}

/* CHECK: Arming switch */
// If arming is disabled and the ARM switch is on
// Note that this should be last check so all other blockers could be cleared correctly
Expand Down
1 change: 0 additions & 1 deletion src/main/fc/fc_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
#include "drivers/pwm_esc_detect.h"
#include "drivers/pwm_mapping.h"
#include "drivers/pwm_output.h"
#include "drivers/pwm_output.h"
#include "drivers/sensor.h"
#include "drivers/serial.h"
#include "drivers/serial_softserial.h"
Expand Down
3 changes: 2 additions & 1 deletion src/main/fc/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2266,9 +2266,10 @@ groups:
min: 0
max: 255
- name: inav_use_gps_no_baro
description: "Defines if INAV should use only use GPS data for altitude estimation when barometer is not available. If set to ON, INAV will allow GPS assisted modes and RTH even when there is no barometer installed."
field: use_gps_no_baro
type: bool
default_value: OFF
default_value: ON
- name: inav_allow_dead_reckoning
description: "Defines if INAV will dead-reckon over short GPS outages. May also be useful for indoors OPFLOW navigation"
default_value: OFF
Expand Down
17 changes: 10 additions & 7 deletions src/main/io/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ static const char * divertingToSafehomeMessage(void)
return OSD_MESSAGE_STR(OSD_MSG_DIVERT_SAFEHOME);
}
#endif
return NULL;
return NULL;
}


Expand All @@ -1047,7 +1047,7 @@ static const char * navigationStateMessage(void)
linearDescentMessageMs = millis() + 5000; // Show message for 5 seconds.

return OSD_MESSAGE_STR(OSD_MSG_RTH_LINEAR_DESCENT);
} else
} else
return OSD_MESSAGE_STR(OSD_MSG_HEADING_HOME);
}
case MW_NAV_STATE_HOLD_INFINIT:
Expand Down Expand Up @@ -1088,7 +1088,7 @@ static const char * navigationStateMessage(void)
// If there is a FS landing delay occurring. That is handled by the calling function.
if (posControl.landingDelay > 0)
break;

return OSD_MESSAGE_STR(OSD_MSG_PREPARING_LAND);
}
case MW_NAV_STATE_LAND_START_DESCENT:
Expand Down Expand Up @@ -2401,7 +2401,7 @@ static bool osdDrawSingleElement(uint8_t item)
{
char *p = "ACRO";
#ifdef USE_FW_AUTOLAND
if (FLIGHT_MODE(NAV_FW_AUTOLAND))
if (FLIGHT_MODE(NAV_FW_AUTOLAND))
p = "LAND";
else
#endif
Expand Down Expand Up @@ -5404,6 +5404,7 @@ static void osdRefresh(timeUs_t currentTimeUs)
static uint8_t statsCurrentPage = 0;
static bool statsDisplayed = false;
static bool statsAutoPagingEnabled = true;
static bool isThrottleHigh = false;

// Detect arm/disarm
if (armState != ARMING_FLAG(ARMED)) {
Expand All @@ -5429,6 +5430,7 @@ static void osdRefresh(timeUs_t currentTimeUs)
statsAutoPagingEnabled = osdConfig()->stats_page_auto_swap_time > 0 ? true : false;
osdShowStats(statsSinglePageCompatible, statsCurrentPage);
osdSetNextRefreshIn(STATS_SCREEN_DISPLAY_TIME);
isThrottleHigh = checkStickPosition(THR_HI);
}

armState = ARMING_FLAG(ARMED);
Expand Down Expand Up @@ -5494,7 +5496,7 @@ static void osdRefresh(timeUs_t currentTimeUs)
}

// Handle events when either "Splash", "Armed" or "Stats" screens are displayed.
if ((currentTimeUs > resumeRefreshAt) || OSD_RESUME_UPDATES_STICK_COMMAND) {
if (currentTimeUs > resumeRefreshAt || (OSD_RESUME_UPDATES_STICK_COMMAND && !isThrottleHigh)) {
// Time elapsed or canceled by stick commands.
// Exit to normal OSD operation.
displayClearScreen(osdDisplayPort);
Expand All @@ -5503,6 +5505,7 @@ static void osdRefresh(timeUs_t currentTimeUs)
} else {
// Continue "Splash", "Armed" or "Stats" screens.
displayHeartbeat(osdDisplayPort);
isThrottleHigh = checkStickPosition(THR_HI);
}

return;
Expand Down Expand Up @@ -5717,11 +5720,11 @@ textAttributes_t osdGetSystemMessage(char *buff, size_t buff_size, bool isCenter
tfp_sprintf(messageBuf, "LANDING DELAY: %3u SECONDS", remainingHoldSec);

messages[messageCount++] = messageBuf;
}
}

else {
#ifdef USE_FW_AUTOLAND
if (canFwLandCanceld()) {
if (canFwLandingBeCancelled()) {
messages[messageCount++] = OSD_MESSAGE_STR(OSD_MSG_MOVE_STICKS);
} else if (!FLIGHT_MODE(NAV_FW_AUTOLAND)) {
#endif
Expand Down
Loading
Loading