Need help to understand parameter in BitUtil

ak20156 years ago

Hi Anton,
Thanks for this nice application, happy new year to you and your team.
I am trying to add some new feature in GT06, just need your help.
Can you hint what is the 4,10 in BitUtil.to() function.

 position.set(Position.KEY_SATELLITES, BitUtil.to(length, 4));
 position.setCourse(BitUtil.to(flags, 10));
Anton Tananaev6 years ago

It's indexes of the bits.