Mictronics / readsb-protobuf

Readsb is a Mode-S/ADSB/TIS decoder for RTLSDR, BladeRF, Modes-Beast and GNS5894 devices. Future development version with protocol buffer storage.
Other
86 stars 24 forks source link

4.0.3 range stats looks empty #31

Closed samlander closed 3 months ago

samlander commented 3 months ago

My graphs are all doing the right thing, except 'range'. It is empty: image rrdtool dump range_max.rrd | grep -v NaN says this:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "https://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
    <version>0003</version>
    <step>60</step> <!-- Seconds -->
    <lastupdate>1710983984</lastupdate> <!-- 2024-03-21 12:19:44 AEDT -->

    <ds>
        <name> value </name>
        <type> GAUGE </type>
        <minimal_heartbeat>120</minimal_heartbeat>
        <min>0.0000000000e+00</min>

        <!-- PDP Status -->
        <last_ds>0</last_ds>
        <value>0.0000000000e+00</value>
        <unknown_sec> 0 </unknown_sec>
    </ds>

    <!-- Round Robin Archives -->
    <rra>
        <cf>AVERAGE</cf>
        <pdp_per_row>1</pdp_per_row> <!-- 60 seconds -->

        <params>
        <xff>5.0000000000e-01</xff>
        </params>
        <cdp_prep>
            <ds>
            <primary_value>0.0000000000e+00</primary_value>
            <unknown_datapoints>0</unknown_datapoints>
            </ds>
        </cdp_prep>
        <database>
            <!-- 2024-03-20 14:59:00 AEDT / 1710907140 --> <row><v>0.0000000000e+00</v></row>
            <!-- 2024-03-20 15:00:00 AEDT / 1710907200 --> <row><v>0.0000000000e+00</v></row>
            <!-- 2024-03-20 15:01:00 AEDT / 1710907260 --> <row><v>0.0000000000e+00</v></row>
            <!-- 2024-03-20 15:02:00 AEDT / 1710907320 --> <row><v>0.0000000000e+00</v></row>
            <!-- 2024-03-20 15:03:00 AEDT / 1710907380 --> <row><v>0.0000000000e+00</v></row>
            <!-- 2024-03-20 15:04:00 AEDT / 1710907440 --> <row><v>0.0000000000e+00</v></row>
            <!-- 2024-03-20 15:05:00 AEDT / 1710907500 --> <row><v>0.0000000000e+00</v></row>
            <!-- 2024-03-20 15:06:00 AEDT / 1710907560 --> <row><v>0.0000000000e+00</v></row>
<snip, it's zeroes all the way down, I think>

I believe I have set SiteLat and SiteLon properly, same as CenterLat and CentreLon, and the marker is in the right position, and the map makes sense when it is freshly painted.

I will do more digging, but it is 30 years since I last used MRTG(?!) and I am a babe in the woods of ADS-B.

samlander commented 3 months ago

Oh. I see RECEIVER_OPTIONS, another place I might set lat/lon. Adding them in now.

samlander commented 3 months ago

hmmm yep, that'll do it. Sorry to wake you. Fixed now.

Mictronics commented 3 months ago

Range calculation needs a reference point to start from. That's your receiver position.