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)?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)? 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)? px4, uav toolbox, serial receive, uart, ascii, data length MATLAB Answers — New Questions