Since good GPS modules are expensive and phones have a lot of positioning systems build in I decided to try and use an android smartphone as a GPS source for the APM. I have successfully made an app that connects to a usb to serial converter and sends the position data in NMEA format. When I connect this contraption to u-center it successfully gets a 3D fix with DOP lower than 1 in less than 15 seconds. However, when I connect this to the APM it says no GPS. Here are examples of how the original GPS sends data:
??:??:?? $GPGGA,0,*66
I don’t understand why the parsing algorithm in the APM and u-center give different results. Can someone enlighten me on how the parsing algorithm works in APM so I could convince it that my GPS is valid.
Since good GPS modules are expensive and phones have a lot of positioning systems build in I decided to try and use an android smartphone as a GPS source
“good” is rather subjective. A GPS equivalent to those found in most
phones can be had for not-much-money.
for the APM. I have successfully made an app that connects to a usb to serial converter and sends the position data in NMEA format. When I connect this
I sniffed the commands that APM sends over to the GPS, they look like the following:
apm → gps
??:??:?? $PUBX,41,1,0003,0001,38400,0*26
??:??:?? $PGCMD,16,0,0,0,0,0*6A
??:??:?? $PSRF100,0,38400,8,1,0*3C
And as far as I looked in to this message I didn’t find any configuration regarding the update rate. It only tries to set serial speed to 38400 even though it fails because the gps data is sniffable at 9600.
That version probably does not have the features I mentioned. So you will have to figure out how to set it properly. It needs at least 5Hz.
You would save yourself a lot of headakes by buying a newer generation autopilot with a flight capable GPS receiver. The Phone + FTDI cable is bulky and heavy.
There is no update any time this is last edited fw ,
But few more bucks to get pixhawk it’s more batter then apm. And 6m gps is not working properly with you need accuracy (i think) because it’s past generation technology and now it’s time to meet gnss with M8 also there is also available M9 this is more accurate then your mobile some cases.
Amicarlucas is right , heavy your copter more consume battery less flight time.