Use odroid to send a false NMEA GPS state to pixhawk

I have a motion capture system and want to send the position of the quad to the pixhawk. I've been reading a lot about this, but haven't found how I can actually achieve this. I know that, I have to connect the UART port from the odroid (5V) to the serial4/5 (3.3V) port of the pixhawk. To send the GPS NMEA message I have to use GGA, VTG and RMC at 38400 bps or 57600 bps and the refresh rate should be 5hz and I should set the type of the GPS to 5 using manvlink.

My question is should I just send for example the $GPRMC, $GPGGA and $GPVTG strings like these at a rate of 5Hz?

$GPRMC, 131027.732,A,4807.0379,N,01131.0000,E,0.0,0,020315,003.1,E*75

$GPGGA, 131027.732,4807.0379,N,01131.0000,E,0,08,0,9,300,M,0,M,,*68

$GPVTG, 0,T,348,M,0.0,N,0,0K,A*2E

would the pixhawk understand if I just start sending strings with this format?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –