pulquero / RotorHazard

Multi-node video transmitter race timer for drone racing
Other
6 stars 0 forks source link

Error adding secondary timer #117

Open HazardCreative opened 2 years ago

HazardCreative commented 2 years ago

Describe the bug Can't add a secondary timer to cluster. Error occurs before connection attempt is made.

To Reproduce Steps to reproduce the behavior:

  1. Add secondary configuration, such as:
    "SECONDARIES": [
    {
    "address": "mrvtpanel.local:5000", 
    "mode": "mirror"
    }
    ],
  2. Start server
  3. View server log

Expected behavior Attempt to connect to secondary server

Log Dump

2022-08-16 09:15:29.842: __main__ [ERROR] Error adding secondary to cluster
Traceback (most recent call last):
  File "/home/pi/betahazard/src/rh/server.py", line 5629, in <module>
    secondary = SecondaryNode(sec_idx, secondary_info, RACE, getCurrentProfile, \
  File "/home/pi/betahazard/src/rh/cluster/ClusterNodeSet.py", line 43, in __init__
    if self.queryInterval_ms <= 0:
AttributeError: 'SecondaryNode' object has no attribute 'queryInterval_ms'

Additional context Immediate issue may be here, but adding _ms generates a number of other errors instead. https://github.com/pulquero/RotorHazard/blob/BetaHazard/src/rh/cluster/ClusterNodeSet.py#L42