hulop / NavCogIOS

NavCog is an example app of blelocpp library aimed specifically for the blind to help those people “explore” the world without vision. Now we are developing v3.
https://github.com/hulop/NavCogIOSv3
MIT License
10 stars 8 forks source link

Node info not read if node is a POSSIBLE destination #39

Open loopRW opened 8 years ago

loopRW commented 8 years ago

If a node is a possible destination node, but NOT the actual destination, the "info needed when coming from this edge", as set on map, is never read. This is a problem when going through a possible destination node during a trip.

e.g: start-------door(possible destination)-----end

an info set to be read at the door will not be read.

dsato80 commented 8 years ago

I'm not sure why but it may be caused by this line

if (![node2 hasTransition] && node2.type != NODE_TYPE_DESTINATION) {
  newState.arrivedInfo = [node2 getInfoComingFromEdgeWithID:node2.preEdgeInPath.edgeID];
}
loopRW commented 8 years ago

I will try to change that part as a quick fix, but this also can be dealt with destination poi