Why data type indicator in uplink/downlink bytestream is in U32 format? #874
-
|
I'm working on using NRF24L01 component on F' with the end goal to eventually replace TCP/IP and UDP for downlink and uplink data. One small issue I found is that RF24 only allows a payload with the size of 32 bytes. But telemetry data packet has 35 bytes so I take a look to see if I can make them fit in one transaction. Here's where Im quite confused. For the byte that indicate the type (1 for telemetry), U32 is used. Since there are only 3 types of packet so far for this framework, Im wondering if there's any necessity of using U32 here instead of U8 or U16 that I'm not aware of. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
I believe you can set these in our configuration header. They default to U32, but could be set smaller to reduce the size in serialized byte streams. Note: at this time you'd need to modify fprime-gds to accept the new size of types (if you are using fprime-gds). Lines 57 to 85 in 48dec2b |
Beta Was this translation helpful? Give feedback.
I believe you can set these in our configuration header. They default to U32, but could be set smaller to reduce the size in serialized byte streams. Note: at this time you'd need to modify fprime-gds to accept the new size of types (if you are using fprime-gds).
fprime/config/FpConfig.hpp
Lines 57 to 85 in 48dec2b