Configure Zubax GNSS
Connect Zubax GNSS to Mac using supplied USB-UART bridge with a CLIK-Mate connector.
screen /dev/tty.usbserial-A6XUYELD 115200 8N1
cfg set uavcan_node_id 77
cfg save
reset
Type CTR-k
to exit screen
uavcan_node_id should be set to a value between 1 - 125
Write the following to /etc/rc.txt on the Pixhawk's SDCard.
# uORB will be started again by the main init script later, it's OK
if uorb start
then
echo "ext: uORB started"
if uavcan start 1
then
echo "ext: UAVCAN started"
else
echo "ext: Could not start UAVCAN"
fi
else
echo "ext: Could not start uORB"
fi
# This delay allows UAVCAN to pick external sensors before internal ones
sleep 2
Connect Zubax to Pixhawk
- Connect Zubax GNSS module to Pixhawk using supplied UAVCAN Micro to DF13 connector via one of CAN1 port on Zubax.
- Connect CAN bus terminator to the other CAN1 port on Zubax.
Configure Pixhawk to use Zubax
- Set GPS_TYPE parameter to 9
- If you are using a secondary GPS, connect it to Pixhawk's GPS port and set GPS_TYPE2 to a value appropriate for the unit (0 = off, 1 = auto, 2 = uBlox, 8 = SwiftNav, 9 = PX4-UAVCAN)
http://copter.ardupilot.com/wiki/configuration/arducopter-parameters/#gps_type_gps_type
Login to NSH and check the UAVCAN status
uavcan status
Test using uBlox u-center
screen /dev/tty.usbserial-A6XUYELD 115200 8N1
gnssbridge
CTR-k, y to exit screen
Once you are done, bring up the console and type
reset
or just power cycle the unit to restart Zubax in normal mode.
References
- http://zubax.com/product/zubax-gnss
- http://docs.zubax.com/Zubax_GNSS
- http://docs.zubax.com/Zubax_GNSS_tutorial:_Using_with_Pixhawk
- http://docs.zubax.com/Zubax_GNSS_tutorial:_Evaluating_GNSS_performance_using_u-blox_u-center
- http://docs.zubax.com/UAVCAN_Interface
- http://docs.zubax.com/Auxiliary_Serial_Port_Interface
- http://productforums.zubax.com
- http://diydrones.com/profiles/blog/show?id=705844%3ABlogPost%3A1977627&commentId=705844%3AComment%3A1978328&xg_source=activity
- http://diydrones.com/forum/topics/zubax-gnss?commentId=705844%3AComment%3A1968051