Closed sashakid closed 9 years ago
- What is ESTLocationBuilderSide? How can I implement correctly these values for my location?
In ESTLocationBuilder.h there's a comment saying it's: /** Side of the boundary segment as seen from inside of the location. */
I'm not sure about 2. but I think you get it right. Let's wait for Estimote's answer.
There is one more thing I see in your code:
[locationBuilder addBeaconIdentifiedByMac:kBeaconMac1
atBoundarySegmentIndex:0
inDistance:0
fromSide:ESTLocationBuilderLeftSide];
In your case, Beacon1 is in the middle of the wall, so the value of paramter inDistance
should equal 7.46/2= 3.73
meteres from whichever side (left or right), as it is centered ;)
@mzygar
* @param distance Distance from the beacon to the side of the boundary segment.
What is the boundary segment in that case? I thought it's wall in my loaction.
Imagine you are standing in the middle of the room.
You take a look at the first wall (boundarySegmentIndex:0), the one with Beacon1 on it. You measure the distance between the beacon and right or left end of the wall. You put the result in [locationBuilder addBeaconIdentifiedByMac:MAC1 atBoundarySegmentIndex:0 inDistance:<YOUR DISTANCE HERE> fromSide:<LEFT OR RIGHT HERE>;]
repectively.
Then you turn and repeat the process for the remaining walls(changing boundarySegementIndex accordingly)
Does that make sense?
Ok, I understand what you mean.
distance between the beacon and right or left end of the wall
In my case for 1st wall it will be:
[locationBuilder addBeaconIdentifiedByMac:kBeaconMac1
atBoundarySegmentIndex:0
inDistance:3.73
fromSide:ESTLocationBuilderLeftSide];
So, I shouldn't repeat the same for right side?
So, I shouldn't repeat the same for right side?
Nope, you measure once per beacon. If you measured the distance to the left side, there is no need to measure distance to the right(as the SDK can compute it). You just move on to the next beacon/wall.
@mzygar thanks for explaining :-) Maybe someone could help me with 2nd question.
For the 2nd question: align yourself along the [0,1] vector. Looking at your floor plan, that'd be "facing the top". Then open the compass app, read the number it shows, punch it into the setLocationOrientation:
method. Let us know if this solves your problem (:
Really appreciate you coming here with your issue, it tells us know our documentation still needs some work. Thank you! :bowtie: :tada:
BTW, in the future, consider posting on our forums instead: forums.estimote.com :wink:
Thanks, it works )
Hi, guys, I can't create correct location manually and have some questions about it. I draw picture to explain what location I want to build. I was looking for answers on my question in your manual and in comments for SDK code but I still can't understand some moments:
This is my code, please, tell me what am I doing wrong. Thanks :-)