ArduPilot / ArduPilot/MAVProxy

Map: horizontal grid lines end early if map is not square

Open
#1,045 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
595
Forks
773
Avg merge
2d 6h
Merged PRs (30d)
18

Description

If I adjust the size of the map so that it is shorter vertically than it is horizontally then the horizontal yellow lines stop mid-way across the window. I guess when deciding how long the horizontal lines should be, the calculation is using the height of the window instead of the width. The same issue is not present for the vertical lines if the map window is made tall and skinny.
![image](https://user-images.githubusercontent.com/1498098/165052911-c3b2fdef-c461-438d-8436-e2d1daf19429.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by resizing the map window to be wider than it is tall, then locate the map rendering entry point that draws the horizontal and vertical grid lines. Compare the line-length calculations for both directions; done means horizontal lines extend across the full map window in non-square layouts without regressing vertical lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.