Skip to content

Data format to use RTK Plugin to forward RTCM messages #176

Open
@lukask0ch

Description

@lukask0ch

Hi, I'm trying to use MAVSDK-Java to send RTCM messages coming from an NTRIP Provider to a PX4 Drone with a F9P uBlox GPS Receiver. I get this data as a byte array and need to convert it to a string to send it with the sendRtcmData() function.
The data is being sent and I can see it arriving in QGroundControl. However, the GPS status is still 3d lock and not going to RTK. I assume the data conversion to string is wrong. I also tried Base64 encoding, as posted here mavlink/MAVSDK#2352. But from what I can see, the MAVSDK version used in the Java wrapper is not using Base64 encoding yet, as it has been implemented only recently mavlink/MAVSDK#2332.
What encoding type is needed to successfully send this data?

MAV_RTK = new Rtk("127.0.0.1",14551);
MAV_RTK.initialize();
byte[] data; // coming from ntrip
Rtk.RtcmData rtkData = new Rtk.RtcmData(new String(data, StandardCharsets.UTF_8));
MAV_RTK.sendRtcmData(rtkData).subscribe();

Using MAVSDK-Java 2.1.0 and PX4 v1.15.0Beta

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions