Recent content by matsalleh
-
M
Point Triangulation in Fixed Space
Ahhhh now I get you! I thought we were testing for zero! Why don't I just check they add up to 360, then take some kind of average or something? Or maybe we just use 3 angles? Thanks, (I really mean it, you've helped me a lot!) Do you want me to credit you in my paper? :D Chris- matsalleh
- Post #25
- Forum: Aerospace Engineering
-
M
Point Triangulation in Fixed Space
I don't understand you. If the device is @ 100.5,100.5; the algorithm will never find a solution with a step size of 1, surely I need to set the minimum to something slightly higher than zero? What do you mean by, checking if it's reasonable? Thanks, Chris.- matsalleh
- Post #22
- Forum: Aerospace Engineering
-
M
Point Triangulation in Fixed Space
Okay, so my question is: If I can't get zero, what's my threshold for minimum? Are you suggesting also, that I gradually decrease my step size until a solution is found? So try with dx=1, no solution found, try dx = 0.1, no solution found, ... ?? Thanks, Chris- matsalleh
- Post #20
- Forum: Aerospace Engineering
-
M
Point Triangulation in Fixed Space
Can you just confirm how your algorithm works? It starts at half way and then tests each direction? I don't see how it's possible to get zero without using a really really small step size (infinitely small) ? And yes, it's a device limitation, the stepper motor I'm using only moves in...- matsalleh
- Post #18
- Forum: Aerospace Engineering
-
M
Point Triangulation in Fixed Space
I actually designed a bit of code using 2 for loops before I saw your example. It's actually surprisingly quick: #include <stdio.h> #include <math.h> #define STEP 1 #define THRESHOLD 0.0005 #define ANGLES 4 float lsq(int w, int l, float x, float y, float p[]); int main(void){...- matsalleh
- Post #14
- Forum: Aerospace Engineering
-
M
Point Triangulation in Fixed Space
What three circles? Would you be able to draw a diagram? That algorithm goes way beyond my understanding of mathematics. And I really have no clue on how to use levmar. All the examples talk about curve fitting and stuff. *straight over my head* I get how you have derived derived...- matsalleh
- Post #11
- Forum: Aerospace Engineering
-
M
Point Triangulation in Fixed Space
I don't know angles A,B and C :( It's been a few years since I've done maths like that. Alter x and y until phi[1-4] is satisfied? I'd like to implement this solution with C, is there kind of optimised algorithm to do this? I didn't really understand the last bit of your post. What...- matsalleh
- Post #7
- Forum: Aerospace Engineering
-
M
Point Triangulation in Fixed Space
I googled it and came to this: http://www.map-reading.com/resect.php I don't understand how this helps me? I need an analytical way of calculating my position, using a computer/micro-controller. Haha, I had that idea just before I slept last night (sad I know). I didn't really know where...- matsalleh
- Post #4
- Forum: Aerospace Engineering
-
M
Point Triangulation in Fixed Space
Hello, I'm an undergraduate electornics engineer. I'm trying to design a system where I am able to find my relative position in a room. Using electronics, I am able to find the angles between the corners of the room, as observed from the point. I also know the dimensions of the room...- matsalleh
- Thread
- Point Space Triangulation
- Replies: 25
- Forum: Aerospace Engineering