Skip to content
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

Merged
merged 2 commits into from Mar 28, 2024

Conversation

Williangalvani
Copy link
Member

@Williangalvani Williangalvani commented Mar 14, 2024

depends on #2463

@Williangalvani Williangalvani force-pushed the accelcal branch 2 times, most recently from d9d5b30 to 160eda0 Compare March 19, 2024 15:54
@Williangalvani Williangalvani changed the title accel-cal wip Add UI for accelerometer calibration Mar 19, 2024
@Williangalvani Williangalvani force-pushed the accelcal branch 4 times, most recently from 3a7b219 to 524c0bd Compare March 20, 2024 17:31
@Williangalvani Williangalvani force-pushed the accelcal branch 2 times, most recently from d61ee23 to a0f4b0f Compare March 27, 2024 17:52
@Williangalvani Williangalvani marked this pull request as ready for review March 27, 2024 18:59
@Williangalvani Williangalvani marked this pull request as draft March 27, 2024 19:08
@Williangalvani Williangalvani force-pushed the accelcal branch 2 times, most recently from 471136a to 1739d25 Compare March 27, 2024 20:07
@patrickelectric patrickelectric merged commit c7cc0b9 into bluerobotics:master Mar 28, 2024
6 checks passed
Copy link
Collaborator

@joaoantoniocardoso joaoantoniocardoso left a 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:

  1. 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?
  1. Quick Calibration works fine.
  2. 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">
Copy link
Collaborator

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>
Copy link
Collaborator

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.

@joaoantoniocardoso
Copy link
Collaborator

Another one:

  • The next button in the full calibration dialogue is clickable multiple times.

},
current_state_text() {
const AccelStateText: { [key: number]: string } = {
[CalState.WAITING_FOR_LEVEL_POSITION]: 'Place the vehicle on a level surface',
Copy link
Collaborator

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>
Copy link
Collaborator

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?

@Williangalvani Williangalvani deleted the accelcal branch March 28, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants