Uber Gruber said:
Quote:
Quote:
4616=Nearest visual contact at bearing %03.0f, range %.0f meters!
Interesting, i wonder what would happen if you replace the above line with:
4616=Nearest visual contact at bearing %03.0f, range %g\b\b\b000 meters!
In my quick test, using a range value of 4730 meters, it writes over the last three digits with zeros....i.e resulting in 4000 meters.
|
I made the change, and it doesn't work. The problem is that SH3's code doesn't recognise the \b (backspace) command, and shows (for example) 4730 meters as '4730bbb000'. I presume your 'quick test' must have been done with a C-compiler, not with SH3.
I also tried using 'range %03.0f\b\b\b000' with the same result.
Pity, it was a good idea. I don't think that there can be a solution now, except in the hard code.
Stiebler.