GPS module used by 3DR
It comes an idea of using 3DR gps module for other applicaiton, but few things need to knowL:
1. it's not a NEMA one, the one I have iswith ublox chip, 6 or 7, by default,it communicates through uart at 38400bps, and it use an other portocol UBX, which is an binary one.
different chip has different config file:
https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_GPS/config
it can be loaded to gps by uusing u-center from ublox
https://www.u-blox.com/en/product/u-center-windows
the config used by 3DR has majorly following out put in UBX
00:08:24 R -> UBX NAV-SOL, Size 60, 'Navigation Solution'
00:08:24 R -> UBX NAV-SVINFO, Size 208, 'Satellite Status and Information'
00:08:24 R -> UBX NAV-STATUS, Size 24, 'Navigation Status'
00:08:24 R -> UBX NAV-POSLLH, Size 36, 'Geodetic Position'
00:08:24 R -> UBX NAV-VELNED, Size 44, 'Velocity in WGS 84'
00:08:24 R -> UBX NAV-CLOCK, Size 28, 'Clock Status'
But there are some out put not clear.
Idea is to see how to config ublox with only few info at desired rate.
I can chage the out put of serial1 form cfg-prt :
change the out put to ubx only, but not able to change it to NEMA:
in fact it dose change to NEMA, but in CFG-MSG, NEMA did not config to out put on serial1
I can also change baud rate,.
as well as frequency in CFG-RATE, by changing measurement period to 1000ms as 1HZ
it changes to:
00:20:10 R -> UBX NAV-SOL, Size 60, 'Navigation Solution'
00:20:10 R -> UBX NAV-STATUS, Size 24, 'Navigation Status'
00:20:10 R -> UBX NAV-POSLLH, Size 36, 'Geodetic Position'
00:20:10 R -> UBX NAV-VELNED, Size 44, 'Velocity in WGS 84'
I wish to take out navigation solution and velocity.
To do so , go thUBX_CFG_MSG,
and select the message in the drop box,
like 01-060NAV_SOL
and then do the check on uart1, unckeck
So, I leave only 01-12 NAV-VELNED and NAV-POSLLH
and go to
CFG-CFG and "save current configuration"
unplug and re-start, it comes at 38400 and only 2 ubx out put, remember to select EEPROM as well.
So I have config a gps send out only GPGGA at 5Hz.
Which I plan to connect to a wireless serial stuff, to send to mission planner
1. it's not a NEMA one, the one I have iswith ublox chip, 6 or 7, by default,it communicates through uart at 38400bps, and it use an other portocol UBX, which is an binary one.
different chip has different config file:
https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_GPS/config
it can be loaded to gps by uusing u-center from ublox
https://www.u-blox.com/en/product/u-center-windows
the config used by 3DR has majorly following out put in UBX
00:08:24 R -> UBX NAV-SOL, Size 60, 'Navigation Solution'
00:08:24 R -> UBX NAV-SVINFO, Size 208, 'Satellite Status and Information'
00:08:24 R -> UBX NAV-STATUS, Size 24, 'Navigation Status'
00:08:24 R -> UBX NAV-POSLLH, Size 36, 'Geodetic Position'
00:08:24 R -> UBX NAV-VELNED, Size 44, 'Velocity in WGS 84'
00:08:24 R -> UBX NAV-CLOCK, Size 28, 'Clock Status'
But there are some out put not clear.
Idea is to see how to config ublox with only few info at desired rate.
I can chage the out put of serial1 form cfg-prt :
change the out put to ubx only, but not able to change it to NEMA:
in fact it dose change to NEMA, but in CFG-MSG, NEMA did not config to out put on serial1
I can also change baud rate,.
as well as frequency in CFG-RATE, by changing measurement period to 1000ms as 1HZ
it changes to:
00:20:10 R -> UBX NAV-SOL, Size 60, 'Navigation Solution'
00:20:10 R -> UBX NAV-STATUS, Size 24, 'Navigation Status'
00:20:10 R -> UBX NAV-POSLLH, Size 36, 'Geodetic Position'
00:20:10 R -> UBX NAV-VELNED, Size 44, 'Velocity in WGS 84'
I wish to take out navigation solution and velocity.
To do so , go thUBX_CFG_MSG,
and select the message in the drop box,
like 01-060NAV_SOL
and then do the check on uart1, unckeck
So, I leave only 01-12 NAV-VELNED and NAV-POSLLH
and go to
CFG-CFG and "save current configuration"
unplug and re-start, it comes at 38400 and only 2 ubx out put, remember to select EEPROM as well.
So I have config a gps send out only GPGGA at 5Hz.
Which I plan to connect to a wireless serial stuff, to send to mission planner
留言
張貼留言