mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-28 19:21:03 +08:00
explaining why we send 30 bytes crtp msg data instead of 31
This commit is contained in:
1 parent
7ac3c97aad
commit
d025eb0da0
1 file changed
+2
-1
@@ -51,7 +51,8 @@ SyslinkBridge::SyslinkBridge(Syslink *link) :
|
||||
_msg_to_send.header = 0;
|
||||
_msg_to_send.size = sizeof(_msg_to_send.header);
|
||||
_msg_to_send.port = CRTP_PORT_MAVLINK;
|
||||
_msg_to_send_size_remaining = CRTP_MAX_DATA_SIZE - 1;
|
||||
_msg_to_send_size_remaining = CRTP_MAX_DATA_SIZE - 1; // to send 30 bytes of data
|
||||
//ideally _msg_to_send.data size should be CRTP_MAX_DATA_SIZE but cfbridge does not receive 31 bytes of data due to a bug somewhere
|
||||
}
|
||||
|
||||
SyslinkBridge::~SyslinkBridge()
|
||||
|
||||
Reference in new issue
Block a user