ArduPilot / ArduPilot/MAVProxy
MAVExplorer: Diff expression in saved graph causes scaling issues
- Dominant language
- Python
- Stars
- 595
- Forks
- 773
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 18
Description
**Symptom**
Scaling of the graph is arbitrary and incorrect
**Suspected Cause**
Having an XML file with a diff expression as a saved graph causes issues with axis scaling with other diff expressions
**Replicate:**
1. Start and load file with nothing in .mavproxy/mavgraphs.xml
2. Plot something like diff(HEARTBEAT._timestamp,0) and everything looks good
3. Save graph to save it
4. Click the Test button and see that the axis scaling is wrong
5. Manually enter expression again to see that manual still has proper scaling
6. Reload saved graphs from menu to load in the new preset graph.
7. Manually enter expression again and now it also has bad scaling
Contributor guide
No contributing guide indexed for this repository
Research direction
Start MAVExplorer and reproduce the sequence using an empty .mavproxy/mavgraphs.xml, the diff(HEARTBEAT._timestamp,0) expression, and the Test button. Then trace saved-graph loading and axis scaling for diff expressions; done means saved and manually entered graphs retain correct scaling after saving and reloading.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100