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 MapScaleMode to Navigation branch #622

Merged
merged 5 commits into from
Jun 27, 2023
Merged

Conversation

wonsuk73
Copy link
Contributor

  • Need to add MapScaleMode to support the map scale mode switching function to scale fixed mode or auto scale mode in navigation

Signed-off-by: Wonsuk Lee <wonsuk.lee@etri.re.kr>
Signed-off-by: Wonsuk Lee <wonsuk.lee@etri.re.kr>
Navigation.MapScaleMode:
datatype: string
type: actuator
allowed: ['SCALE_FIXED_MODE', 'AUTO_SCALE_MODE']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we expect more alternatives in the future? if not an alternative solution could be a boolean signal like IsAutoScaleMode (and if false then fixed mode is used). But this approach work for me as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erikbosch Thanks for valuable comment! I think IsAutoScaleMode is enough. I am going to revise the PR based on the consensus.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erikbosch Could you review updated one? Any comment on this?

Signed-off-by: Wonsuk Lee <wonsuk.lee@etri.re.kr>
@nickrbb
Copy link
Contributor

nickrbb commented Jun 20, 2023

The name of the signal and accompanying description are somewhat lacking. Previously the signal name indicated it was for scaling of maps, but now we don't have such an indication. I'd suggest renaming the signal to Navigation.IsMapScaleModeAuto or even Navigation.Map.IsScaleModeAuto if we foresee other signals for navigational maps coming in the future and therefore would benefit by creating a branch here. Regardless, please elaborate the description in the same manner e.g. Used to select between auto-scaling mode and manual-scaling mode of navigation map.

A minor nit: remove the two instances of "it is" from the comment i.e. If true, then..., If false, then...

@wonsuk73
Copy link
Contributor Author

wonsuk73 commented Jun 20, 2023

@nickrbb Thanks for valuable comments! I agree to make Navigation.Map branch to cover other map signals. I revised as below. Is it okay to you?


Navigation.Map:
  type: branch
  description: All map actions

Navigation.Map.IsAutoScaleMode:
  datatype: boolean
  type: actuator
  description: Used to select auto-scaling mode.
  comment: If true, then auto-scaling mode is used.
           If false, then manual-scaling mode is used.

@@ -120,6 +120,13 @@ Navigation.GuidanceVoice:
description: Navigation guidance state that was selected.
comment: ETC indicates a voice alternative not covered by the explicitly listed alternatives.

Navigation.IsAutoScaleMode:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if we add term "used" into the leaf name? like IsAutoScaleModeUsed

@erikbosch
Copy link
Collaborator

Meeting notes: Please review/discuss

@nickrbb
Copy link
Contributor

nickrbb commented Jun 21, 2023

@wonsuk73 Signal name looks better, but please also update the description to something more informative and meaningful.

@wonsuk73
Copy link
Contributor Author

wonsuk73 commented Jun 22, 2023

@nickrbb Thanks for feedback! Could you review updated one?


Navigation.Map:
  type: branch
  description: All map actions

Navigation.Map.IsAutoScaleModeUsed:
  datatype: boolean
  type: actuator
  description: Used to select auto-scaling mode. This feature dynamically adjusts the zoom level of the map 
               to provide an optimal view based on the current speed of the vehicle.
  comment: If true, then auto-scaling mode is used.
           If false, then manual-scaling mode is used.

Signed-off-by: Wonsuk Lee <wonsuk.lee@etri.re.kr>
Copy link
Collaborator

@adobekan adobekan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@nickrbb
Copy link
Contributor

nickrbb commented Jun 23, 2023

OK with me now, thank you.

@erikbosch
Copy link
Collaborator

Meeting notes: Ok to merge

@erikbosch erikbosch merged commit 0a23647 into COVESA:master Jun 27, 2023
3 checks passed
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.

4 participants