Right now we always assume that a radio message will be 255 bytes and 64 bytes for a CAN message. This should change to optimize our data transmission sizes. Two options: heap allocation (bad) or just switch the message type to decide what the size is. I'm more a fan of not using heap allocation as it can be costly and potentially unsafe.
Right now we always assume that a radio message will be 255 bytes and 64 bytes for a CAN message. This should change to optimize our data transmission sizes. Two options: heap allocation (bad) or just switch the message type to decide what the size is. I'm more a fan of not using heap allocation as it can be costly and potentially unsafe.