PX4 Serial Receive Variable Data Length
显示 更早的评论
Hello,
I am currently trying to receive serial data from a UART&I2C Port in my simulink model. The data stream I am receiving has 6 signals with one singal being an iteration counter that increases from 1 - 1000. This means that the total character length of the serial pack is increasing as time progresses. I have no current way to alter the length of the transmission. When accepting signals that are longer than the prescribed length, valuable data is cut off. When accepting data that is shorter than the prescribed length, erroenous zeros are thrown in to the data making my signals have very jumpy time histories. The only time this system works is when the data is corrent length as specified in the serial receive PX4 block.
Is there a way for the PX4 Serial Receive block to handle a signal with a variable data length?
Furthermore, are there any work arounds with different serial receive blocks that can connect to the relevant ports on a Pixhawk 6x(dev/ttyS4)?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 PX4 Autopilots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!