-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Double storage for rally points and geofence #22533
Conversation
What's the memory cost? |
@dagar I tested on the fmu_v5x with SYS_AUTOSTART 1100 in SIH: When writing mission on RAM: So around 200 Bytes for SD Card, an around 4.5 KBytes when mission is in RAM. Do you think this is an issue? |
The memory cost goes up with each point on the polygon, correct? Factor of N? |
Nope, just wanted to make sure we're keeping an eye on it (memory is very tight on older STM32F4 boards). |
Sorry for the late reply @mcsauder depends on what you mean. For the mission in RAM the memory for the maximum mission/geofence/rally points is already reserved, so there wont be any additional memory cost there (and that is the reason for the difference between this PR and main, since we need to reserve double the storage in memory for geofence and rally points). When the mission is written on the SDcard, the dataman module does not need more memory depending on the mission. The only thing that is taking currently more memory when you upload bigger geofences and rally points is that the geofence and RTL mode cache all the points in memory (mission only caches the next 10 points irrespecitve of length). But that is the same both for the PR and main. So the memory difference is still the same. |
That makes sense to me. Are you able to demonstrate that a high degree polynomial geofence doesn't create a RAM problem? I haven't tried lately, but that was an issue I ran into. -Mark |
Sorry. NM, you've already addressed that. |
Well not completely but it is hard to check for all the different hardware and configs (the v5x i am testing on has still some margins at least for MC). That's why i checked the relative RAM difference but i do not know how close we already are for the other hardware and configs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I did not spot anything.
… on upload This way the old points are kept on an upload error.
9f81ec3
to
eae4ce3
Compare
rebased on main |
Solved Problem
If there is an error during uploading of the rally points or geofence, the old fence points get overwritten and are not accessible anymore.
Solution
Changelog Entry
For release notes:
Test coverage