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
Configurator 3.0.0 - Mission Control - Load Eeprom mission button #1270
Comments
Update on this issue: |
Hi, no, not in this one, Eeprom loading was corrected in a former PR. Arno |
On the last version 3.0.0, It seems to work fine on my side. Are you still facing issue with the last 3.0.0 version ? If not, can we close this Issue ? Regards Arno |
@ArnoTlse I found the issue. It occurs when Steps to reproduce. With a mission already saved to the eeprom and
Set @tonyyng Have you experienced this? |
What happens if you press |
With
Yes, That is confirmed by pressing |
The fix should be made in the Configurator code, which I'm not familiar with. |
Hi, I'll try to investigate why there is a difference when auto load on boot is ON. I don't see why it should change the behavior from eeprom as eeprom is only meant to be read when user request it. Maybe there is a change in the MSP protocole when auto load on boot is active? In the same time, I will look at the ability to switch on/off the auto load on boot in the settings and Arno |
Hi, I guess there have been a change in INAV FC 3.0 that trigger this issue now on the Configurator. I have not this issue on a previous 3.0.0 master version of my FC. The issue has appeared since the last release of INAV 3.0.0_final. With INAV 3.0.0_final release on my FC, when you load mission from FC, you can do it many time as you want, it loads perfectly. However, I reproduce the issue when I hit the Load from EEPROM button ; it works the first time. The second time, it brings you in 0,0 lon-lat location. The third time, it loads well the mission, the fourth, it brings you again at 0,0 lon-lat location, etc, etc ... So my main guess is that there have been a change in INAV FC way of loading EEPROM on the latest version of INAV 3.0.0. I have to investigate more on that to see what changes on INAV FC lead to this issue on Configurator now. Arno |
I made this change which was pulled into 3.0. As part of that change, this function changed so that if you call it when waypoints are already loaded, it will clear them.
I'm pretty sure that is the behavior you are seeing. When you clock Load the second time, the waypoints are being cleared. Can MP be changed so that it only executes Load if there are no waypoints in the FC memory? (posControl.waypointCount == 0) If you want to force this function to load the waypoints, call |
Hi @tonyyng, Ok thanks for the information. On MP side, as a first guess, I would prefer that when user hits load from Eeprom, it loads really the mission from Eeprom. If we take into account whether a mission is already loaded or not, I fear we cannot say of we have to update the load if mission has been updated between by a save. @stronnag, I wonder if you have experimented this also on MWP? Arno |
I have, and it's not so much of a problem, as mwp informs the user that there are WPs in memory (that does not however condone breaking of the MSP_WP_MISSION_LOAD API). |
@tonyyng , please test that iNavFlight/inav#7190 doesn't cause any issues for you. This restores legacy behaviour for MSP_MISSION_LOAD (and loading via stick command). In the latter case, the user may be flying LOS would expect the WPs to be loaded as previously. |
Ok, thanks. Good point, I'll try to improve the way the user is informed about missions already available in the FC. Today, there is a green/red flag to indicate if a mission has been properly saved into, but not indeed a complete indicator of mission status (lack a status when FC is connected or configurator is launched). |
@ArnoTlse |
The objective of my change was to avoid forgetting to load waypoints from EEPROM before launching. When you forget, you have to land, disarm, load waypoints and then launch again before you can fly waypoint missions. With However, this raises an issue if you are flying at a different field. If the waypoints are loaded from EEPROM and the first WP is too far, you won't be able to arm. That was the reason for changing the stick command to be a toggle. By reverting that part of the change, there is no way to unload the waypoints and arm. I suggest the following: Revert my change in
Then change the stick control logic:
I'm in the middle of house renos, so I really can't spare time to do much more. @stronnag I see you've gone ahead an made some changes. Can you add these changes? Also, I'm not sure I've addressed the problem you've described here. Can you comment?
|
Your proposed code would not compile as Tomorrow, I'll enhance the 3.0.1 branch to:
|
That sounds good. Thanks |
Hi, I have a question about MSP. How can we clear the RAM or the EEPROM of a mission with MSP ? Is it just by sending an empty mission or is there a MSP code to clear a mission? Arno |
Upload an empty mission (i.e a single RTH WP). Save to EEPROM. |
OK thanks. I'll add a dedicated button in the Configurator to clear a mission in this way. Arno |
Hi, I wonder whether we could close this issue now? Regards Arno |
Okay by me |
In Configurator 3.0.0 on Windows, when you click on the Load Eeprom mission button, nothing happens. You have to click on it a second time before it loads the mission.
The text was updated successfully, but these errors were encountered: