-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtcm messages unidentical with mavsdk::rtk.h #2510
Comments
Hi, based on this small snippet (so no context): do you realize that rtcm is a stream of data? As long as the whole stream contains the same content, it is ok. Packets are sent in chunks. Have you checked the whole stream for missing bytes? Please correct me if I am wrong but this is my understanding at the moment. |
@Wenz922 are you using v2 or v3? With v3 the rtcm data needs to be supplied base64 encoded. |
@julianoes i am using v2.12.2. |
Correct, no base64 with v2. And so are corrections not working at all? Can you share any other information about your setup? E.g. PX4 or ArduPilot? And what versions? |
@julianoes There are only partial RTCM messages that are received, so that the correction doesn't work. I am using PX4 version1.15.2.
|
Hi @julianoes , i have checked the version of MAVSDK and PX4 which i used. And the RTK devices are two H-RTK ZED-F9P Helical, one as Base and another one as Rover. Configuration is as followed : https://docs.holybro.com/gps-and-rtk-system/zed-f9p-h-rtk-series/portable-rtk-base-station-setup. It works well directly with holybro telemtry radio. Is it probably the reason of holybro telemtry with baudrate 57600? |
I will have to create a C++ example and test that myself. |
@julianoes that will be great! thanks a lot, stay updated ;) |
Hi, fwiw, I will double check my setup with MAVSDK v3.0.0 since I have used my setup successfully with MAVSDK v2 |
@reedev would you mind to share more detail, for example the code part of library rtk.h? |
As I said, I will check MAVSDK v3 with rtk, to see if it still works as expected as with v2. We know that v2 was working ok so I suggest to make your setup with v2 first. I don't see that you tried your setup with a different setup, are you sure your equipment, server etc are working properly? |
Sorry, @reedev i don't really understand what kind of setup do you mean here, could you explain a bit more? |
Aha sorry, I missed that part of your story. In that case I can't help you much further since my equipment and setup is completely different. I will test MAVSDK v3 to make sure that the MAVSDK is working ok. |
I am using mavsdk::rtk.h to send rtcm messages to a Pixhawk 6C. Here is a part of code:
`void subscribe_to_rtcm() {
rtcm_subscription_ = this->create_subscription<std_msgs::msg::String>(
rtcm_topic_, 10,
[this](const std_msgs::msg::String::SharedPtr msg) {
forward_to_pixhawk(msg->data);
});
}
But in logging the rtcm data size is not identical, What is the problem?
[INFO] [1739119220.793310883] [rtcm_base_node]: Published RTCM data of length: 256 bytes
[INFO] [1739119220.893626373] [rtcm_base_node]: Published RTCM data of length: 27 bytes
[INFO] [1739119221.075379546] [rtcm_base_node]: Published RTCM data of length: 144 bytes
[INFO] [1739119221.093328974] [rtcm_base_node]: Published RTCM data of length: 256 bytes
[INFO] [1739119221.193289930] [rtcm_base_node]: Published RTCM data of length: 256 bytes
[INFO] [1739119221.293425000] [rtcm_base_node]: Published RTCM data of length: 256 bytes
[INFO] [1739119221.393339313] [rtcm_base_node]: Published RTCM data of length: 256 bytes
[INFO] [1739119221.493329355] [rtcm_base_node]: Published RTCM data of length: 256 bytes
[INFO] [1739119221.593762593] [rtcm_base_node]: Published RTCM data of length: 256 bytes
[INFO] [1739119221.693307979] [rtcm_base_node]: Published RTCM data of length: 256 bytes
[INFO] [1739119210.293539628] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 256 bytes
[INFO] [1739119210.393929978] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 256 bytes
[INFO] [1739119210.493808059] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 168 bytes
[INFO] [1739119210.593585514] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 57 bytes
[INFO] [1739119210.693704616] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 15 bytes
[INFO] [1739119210.793863885] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 101 bytes
[INFO] [1739119210.893734223] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 1 bytes
[INFO] [1739119210.993963822] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 44 bytes
[INFO] [1739119211.093535019] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 0 bytes
[INFO] [1739119211.193466552] [rtcm_rover_node]: RTCM data forwarded to Pixhawk: 256 bytes
The text was updated successfully, but these errors were encountered: