Do not speak instructions directly after a turn
ClosedPublic

Authored by sanjibanb on Jul 3 2016, 10:09 PM.

Details

Reviewers
nienhueser
rahn

Diff Detail

Repository
R34 Marble
Lint
Lint Skipped
Unit
Unit Tests Skipped
sanjibanb updated this revision to Diff 4917.Jul 3 2016, 10:09 PM
sanjibanb retitled this revision from to Do not speak instructions directly after a turn.
sanjibanb updated this object.
sanjibanb edited the test plan for this revision. (Show Details)
sanjibanb added reviewers: nienhueser, rahn.
sanjibanb set the repository for this revision to R34 Marble.
sanjibanb added a project: Marble.
sanjibanb added a subscriber: Marble.
nienhueser added inline comments.Jul 5 2016, 3:33 AM
src/lib/marble/routing/VoiceNavigationModel.cpp
371

This seems hard to understand. Can you introduce several boolean variables with speaking names that split it up in more readable pieces?

What happened to the lastDistance == 0 case?

sanjibanb updated this revision to Diff 4952.Jul 5 2016, 3:54 AM
sanjibanb updated this revision to Diff 4953.Jul 5 2016, 4:10 AM
This comment was removed by sanjibanb.
src/lib/marble/routing/VoiceNavigationModel.cpp
371

If I'm not wrong, the lastDistance == 0 case signifies the case of the user just coming to a new segment, right? I was thinking of not handling that case anymore because now we want the navigation to speak only when he has reached a distance instead of immediately.

sanjibanb added inline comments.Jul 5 2016, 5:23 AM
src/lib/marble/routing/VoiceNavigationModel.cpp
371

If I'm not wrong, the lastDistance == 0 check signifies the case of the user just coming to a new segment, right? I was thinking of not handling that case anymore because now we want the navigation to speak only when user has traveled a minimum distance instead of immediately after coming to the segment.

nienhueser accepted this revision.Jul 7 2016, 6:05 PM
nienhueser edited edge metadata.

Looks good.

src/lib/marble/routing/VoiceNavigationModel.cpp
371

What is the m_lastDistanceTraversed < 40 check for?

This revision is now accepted and ready to land.Jul 7 2016, 6:05 PM
sanjibanb added inline comments.Jul 7 2016, 6:15 PM
src/lib/marble/routing/VoiceNavigationModel.cpp
371

I followed the same logic here as for bool const turn's "d->m_lastDistance > 75 && distanceManuever <= 75" part, that is, when the guy had not covered 40 metres before, but just crossed that distance right now.