symysak / rtk-base-station

All-in-one RTK base station
0 stars 0 forks source link

config.json の精査 #3

Closed symysak closed 6 months ago

symysak commented 7 months ago

現状、config内(/mgmt-cli/running-config.json)に冗長な箇所が複数ある。わかりにくいので、どうにかしたい

1: 現状はcommitコマンド内で整合性を取っている

{
    "ntripcaster": {
        ...
        "mountpoint": "main",               <-ここと
        "sourcetable": {
            "mountpoint": "main",       <-ここ
            ...
        },
                ...
    }
}

2: usernamepasswordに依存した設定項目authenticationがある。username == "" && password == ""の場合、authenticationN、そのほかの場合Yである必要がある。 現状はcommitコマンド内で整合性を取っているが、わかりにくい

{
    "ntripcaster": {
        "username": "",
        "password": "",
                ...
        "sourcetable": {
                        ...
            "authentication": "N",
                        ...
        },
                ...
    }
}

3: latitudeはなるべく精度の高い座標(小数第8位程度まで)が設定されるべき。short_latitudeには小数第2位までの座標が設定されるべきである。 現状、整合性は取っていない

{
    "ntripcaster": {
                ...
        "sourcetable": {
                        ...
            "short_latitude": 0,
            "short_longitude": 0,
                        ...
        },
        "latitude": 0,
        "longitude": 0,
        "height": 0,
                ...
    }
}