View Single Post
Old 09-10-11, 03:21 PM   #7864
ETsd4
中国水兵
 
Join Date: Dec 2010
Posts: 278
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I updated the dll so that the contact distance reported back is a multiple of 50m (i.e. 9050m, 8000m, 3450m, etc.). Should we make this a multiple of 100m (or larger) instead?
Maybe a dynamic step width like this ... or something like this

S = rounded (sqrt(R))

S = step width in meters
R = true range to object in meters


Results...
Code:
        Distance        Steps
.......................................
   100m  -     600m     10m
   700m  -    2499m     50m
  2500m  -   22499m    100m
Example:
R = 4557m
sonarman "sees" object on the radar at = 4426m
S = 68m, rounded to 100m
sonarman reports = "object distance at 4 4 0 0 meters"

Edit: This formular does not offer truly "good values". Especially the rounded-function has some probs

Last edited by ETsd4; 09-10-11 at 08:50 PM.
ETsd4 is offline   Reply With Quote