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
Add UI for accelerometer calibration #2451
Conversation
d9d5b30
to
160eda0
Compare
3a7b219
to
524c0bd
Compare
d61ee23
to
a0f4b0f
Compare
471136a
to
1739d25
Compare
1739d25
to
480320b
Compare
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.
Lol, Patrick merged before I finished the review, but:
- Some small UI problems:
- The dialogue titles are hard to read in dark mode (and just ugly anyway)
- (Maybe) the fonts are smaller than they should be for a dialogue?
- Quick Calibration works fine.
- Full calibration:
- It doesn't show a success message
- It doesn't let me close the dialogue
</template> | ||
|
||
<v-card> | ||
<v-card-title class="text-h5 grey lighten-2"> |
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 light grey color makes it almost unreadable in dark mode because the font is white.
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> |
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.
Differently from the Quick Calibration, I can't close this dialogue.
Another one:
|
}, | ||
current_state_text() { | ||
const AccelStateText: { [key: number]: string } = { | ||
[CalState.WAITING_FOR_LEVEL_POSITION]: 'Place the vehicle on a level surface', |
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 message isn't clear enough: we must say what position we expect the vehicle to be. A level surface can mean anything.
<div> | ||
Quick calibration requires that you place the vehicle on a level surface and keep it still for a few seconds. | ||
It is usually enough if your vehicle is generally leveled while in use. | ||
</div> |
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.
why do we need a div here?
depends on #2463