-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Enhanced sat list for M8N/M9N #2603
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
Conversation
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.
Thanks for contributing.
Please remove commented out code.
Some remarks I made are valid in different places.
Hint: look at the Sonar code smells.
We should also test if this change is backwards compatible.
src/tabs/gps.html
Outdated
| <td style="width: 20%;" i18n="gpsSignalSatId"></td> | ||
| <td style="width: 15%;" i18n="gpsSignalQty"></td> | ||
| <td style="width: 65%;" i18n="gpsSignalStr"></td> | ||
| <!--<td style="width: 10%;" i18n="gpsSignalGnssId"></td>--> |
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.
Should this be removed?
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.
Actually, I forgot to ask about this. How does the localization system work? do I have to add gpsSignalGnssId with the "Gnss Id" string to the messages.json in all languages? In this case it's easy, but what about other strings that might need to be translated?
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.
Not, only English. We have translators that will do the rest of languages
src/js/tabs/gps.js
Outdated
| let quality = ''; | ||
| switch (FC.GPS_DATA.quality[i] & 0x7) { | ||
| case 0: | ||
| quality = quality + 'no signal | '; |
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.
| quality = quality + 'no signal | '; | |
| quality += 'no signal | '; |
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.
I have reworked those ugly switch cases, so this is no longer an issue :-)
03b1f2a to
8718685
Compare
haslinghuis
left a comment
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.
Please also fix the sonar and squash your commits when done. Looks good.
src/tabs/gps.html
Outdated
| <td>0</td> | ||
| </tr> | ||
| </table> | ||
| </table> |
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.
👾 was on the right position 😆
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.
ouch :-)
Only as a help for @TonyBlit , not all the Sonar issues need to be fixed. Sometimes they have no sense. In this case, the literal that has been duplicated I think it does not need to be fixed, it is part of an array and will be strange to define this outside and not the other elements. |
53def13 to
488c66f
Compare
|
@McGiverGim yeah, the first one it doesn't make sense, indeed. The other ones made me think I forgot to localize the messages, so I've fixed everything and squashed, hope all is good now. |
488c66f to
33783c4
Compare
McGiverGim
left a comment
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.
To me is good enough... good work! :)
As suggestion, in the Configurator PRs is good to attach a screen capture. It helps with the review.
haslinghuis
left a comment
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.
LGTM
|
@TonyBlit I've seen this in the firmware PR:
Can you modify this description: betaflight-configurator/locales/en/messages.json Lines 1465 to 1468 in dfd8a92
I think something like:
Sorry, I'm not English native, I'm sure you will find something better :) |
|
@McGiverGim Well spotted! I was not even conscious of this message. I've been tempted to mention ublox_use_galileo is only for M8N, but given M9N has galileo already enabled, maybe it's not worth complicating the sentence until M9N is widely adopted. |
deea9f9
|
SonarCloud Quality Gate failed.
|
limonspb
left a comment
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.
@TonyBlit please squash in 1 commit and i think its ready to go.
be70e00
40bcd55 to
be70e00
Compare
|
AUTOMERGE: (FAIL)
|
cbfeb25
be70e00 to
cbfeb25
Compare
|
SonarCloud Quality Gate failed.
|
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.
Really good features, my requested changes are not to important but if you can take a look would be nice
| <td style="width: 20%;" i18n="gpsSignalSatId"></td> | ||
| <td style="width: 15%;" i18n="gpsSignalQty"></td> | ||
| <td style="width: 65%;" i18n="gpsSignalStr"></td> | ||
| <td style="width: 12%;" i18n="gpsSignalGnssId"></td> |
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.
The use of styles into html part is old, now we try to move all styles in to css file.
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.
I wouldn't block this though. Both inline styles and styles files are redundant if we just move to vue/component based architecture, so one way or the other re-work will be needed.
|
Sonar disabled us here from merging this 😕 |








Modified the sat list in order to show extra info from the following PR: betaflight/betaflight#10921
New layout:

New sat list in action:
