I am new to this list but i have a question and i hope someone could
help me out.
I want to write some code for MCL with sonar sensors. When the sonar
sensor configs are taken from stg_driver.cc and player_interface.cc they
are converted in UNISIGNED ints as shown below:
ntohs((uint16_t)(1000.0 * cfgs[i].pose.x));
ntohs((uint16_t)(1000.0 * cfgs[i].pose.y));
Does this make sense ? And why are that poses converted in
Host-byte-order ? Should't that be htons(.. instead?
Thanks for any help.
Best regards, Florian Krohs