I currently have an application that requires me to send data with the least amount of bits possible. For example, if I am giving a direction in degrees then the range is 0 -359. that means with 9 bits, I have a number 0 - 511 with resolution of 1. There would be a 'waste' of 152 possible outcomes. I could use those possible outcomes for error handling, but am wondering if there is any method that could be used to pack in some more data.
The only other thought I had was I could add a multiplication factor of 359/511 so that I can squeeze in a little more precision.
Edit: Additional information:
- It should be assumed that not all messages will get through
some field examples:
Direction base(360) Day base(366) hour base(24) minute base(60)
With these three examples the total wasted outcomes is 905.