ArduPilot / ArduPilot/MissionPlanner

HW ID page should be able to avoid "or devtypeimu"

Open
#2,336 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
2.9k
Avg merge
19h 16m
Merged PRs (30d)
4

Description

While reviewing the compass ordering PR from @bugobliterator I noticed that the "HW ID" page on latest MP beta seems to provide two possibilities to the user for each device id:

So for example below (tested on a CubeBlack) the end of the first line says, "compass DEVTYPE_LSM303D or devtypeimu 2". I think we can do a little better:

- the parameter name starts with "COMPASS_" so we already know we're dealing with a compass so there's not need to present the "or devtypeimu 2" part.
- can't we replace "BUS_TYPE SPI" with just "SPI" and "DEV_TYPE_LSM303D" with just "LSM303D"? For a regular user I just think it's scary enough to try and figure this out... we don't need "bus type" in small letters followed immediately by "BUS_TYPE_" in capitals. I think ideally the top lines should look like this, "COMPASS_DEV_ID:131874, bus type:SPI, bus:4, address:3, LSM303D"

![image](https://user-images.githubusercontent.com/1498098/74579464-07c66d00-4fde-11ea-950a-6ea987b85e6b.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the HW ID page implementation and reproduce the displayed compass entry using the example in the issue. Trace how the parameter name, bus type, device type, and devtypeimu text are assembled. Done means the page presents the requested concise format and omits the redundant devtypeimu text for compass parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.