Hi every one. i am new to here, i an using the latest 1.0 code, FMA and EM-406GPS,when switching on the AP, it does not go where it should be, when i set it to RTL is fly-away.Same as the way point..Try to set the yaw rev, but still no luck.. doing the same thing but flying away to the other driction.Any one have any idears?
You need to be a member of diydrones to add comments!
Hi I have just tested it again..as last time when I tested it I only took it for 2 runs..
this time I took it for 10 runs.. in result It when NE 4 times N 3 times SW 3 times.
It's totally random..? what is happing? do you have a simulator setup that you could enter My coordinates here are:
-43.561256° 172.565375° in Decimal Degrees and setup a few waypoints see if it will work or not..
I have been trying to setup the simulator form the other blog but could not get it going..
Please help.
Sorry about that.. EP = electric powered car. I meant YAW.
So are you saying if I use the latest code it should work? or I have to integrate the NE code to the latest code?
Hi took the board out of the plane and put it on to a EP car, and adjust the Yak max and min so to make a full turn it have to do a 20m circle. the car seems only goes to NE when RTL set to return home. did not try the Way points..
Hi just tested it.. it still have not fix it..
My coordinates here are:
-43.561256° 172.565375° in Decimal Degrees
or
43° 33.675'S 172° 33.922'E in Degrees, Decimal Minutes
I used the NE code you sent me it did not work so In the NE code:
if(*token=='E'){
lon=lon*-1;
I changed the E to S and the Yaw rev but still no luck?
Hi i have modified the GPS_NAV code a bit.. but that does seems fixed it..
token = strtok_r(NULL, search, &brkb); //lat, north or south?
//If the char is equal to S (south), multiply the result by -1..
if(*token=='S'){
lat=lat*-1;
}
//This the same procedure use in lat, but now for Lon....
token = strtok_r(NULL, search, &brkb);
temp=strtol (token,&pEnd,10);
temp2=strtol (pEnd+1,NULL,10);
temp3=(temp*10000)+(temp2);
temp3=temp3%1000000;
temp/=100;
lon=temp+((float)temp3/600000);
token = strtok_r(NULL, search, &brkb); //lon, east or west?
if(*token=='E'){
lon=lon*1;
}
is there any where else i have to change too?? any help??
Hi the code you just sent is the one i used in the first time and had problem with.. it did not take it to the right direction..
""I think this is because you're south of the equator and our code is confused! Try the special NE mode code and see what happens.""
ARE you sure the code you fist post out is the special NE mode code not the "older code before we fixed the GPS lock bug" coz that's what i uploaded on to it?
Do you have a working special NE mode code that i can use??
Uploaded the code but still No luck.. The GPS LED does not working right..
when i plug in the battery after 40sec the GPS lock (blue LED) came on... when i hit the autopilot switch the BLUE LED turned off or after few Mins it turned off itself... i checked the red LED on the GPS after the Blue LED turned off it was blinking which shows the GPS still in lock??
Replies
this time I took it for 10 runs.. in result It when NE 4 times N 3 times SW 3 times.
It's totally random..? what is happing? do you have a simulator setup that you could enter My coordinates here are:
-43.561256° 172.565375° in Decimal Degrees and setup a few waypoints see if it will work or not..
I have been trying to setup the simulator form the other blog but could not get it going..
Please help.
So are you saying if I use the latest code it should work? or I have to integrate the NE code to the latest code?
My coordinates here are:
-43.561256° 172.565375° in Decimal Degrees
or
43° 33.675'S 172° 33.922'E in Degrees, Decimal Minutes
I used the NE code you sent me it did not work so In the NE code:
if(*token=='E'){
lon=lon*-1;
I changed the E to S and the Yaw rev but still no luck?
token = strtok_r(NULL, search, &brkb); //lat, north or south?
//If the char is equal to S (south), multiply the result by -1..
if(*token=='S'){
lat=lat*-1;
}
//This the same procedure use in lat, but now for Lon....
token = strtok_r(NULL, search, &brkb);
temp=strtol (token,&pEnd,10);
temp2=strtol (pEnd+1,NULL,10);
temp3=(temp*10000)+(temp2);
temp3=temp3%1000000;
temp/=100;
lon=temp+((float)temp3/600000);
token = strtok_r(NULL, search, &brkb); //lon, east or west?
if(*token=='E'){
lon=lon*1;
}
is there any where else i have to change too?? any help??
""I think this is because you're south of the equator and our code is confused! Try the special NE mode code and see what happens.""
ARE you sure the code you fist post out is the special NE mode code not the "older code before we fixed the GPS lock bug" coz that's what i uploaded on to it?
Do you have a working special NE mode code that i can use??
when i plug in the battery after 40sec the GPS lock (blue LED) came on... when i hit the autopilot switch the BLUE LED turned off or after few Mins it turned off itself... i checked the red LED on the GPS after the Blue LED turned off it was blinking which shows the GPS still in lock??
How do i fix this?? Please, Please advice?