Mavlink Request Data stream #11463
Unanswered
Ricky-Millar
asked this question in
Q&A
Replies: 1 comment 1 reply
-
pretty sure that bf only samples the gps at 2hz, you'd need to increase that to get more data. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I was looking into the implementation of mavlink in betaflight and am I right in saying it uses the depreciated "REQUEST_DATA_STREAM" message instead of the "SET_MESSAGE_INTERVAL", for GCS to change the speed to the transmission of mavlink telemetry?
the reason I ask if I am trying to get gps info kinda quick to smooth out an antenna tracker (10-50hz). but in betaflight the default is 2hz. And I'm really struggling to get it to change from that.
https://github.com/betaflight/betaflight/blob/master/src/main/telemetry/mavlink.c#:~:text=%5BMAV_DATA_STREAM_POSITION%5D%20%3D%202%2C%20//2Hz
I'm wondering if anyone has managed to change a mavlink message interval in betaflight? I've tried a few things but currently I'm using
mavlink_msg_data_stream_pack(CC_SYSID, CC_COMPID, &msg,MAV_DATA_STREAM_POSITION, 50, 1); len = mavlink_msg_to_send_buffer(buf, &msg); client.write(buf, len);
https://mavlink.io/en/messages/common.html#REQUEST_DATA_STREAM
which gets me a response, but the message is still coming in at 2hz ( not 50)
here is my full code if you want to go digging, its a bit of a mess but at the moment https://github.com/Ricky-Millar/VS-NodeMCU-1.0-antenna-tracker/blob/ab67bdd143b54fbe10d19ed6f1d5f0c4f6cdc783/src/main.cpp#L150
Beta Was this translation helpful? Give feedback.
All reactions