Browse Source

init UAS data structure on every fill

Roel Schiphorst 3 years ago
parent
commit
495a4b8a2a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      RemoteIDModule/RemoteIDModule.ino

+ 2 - 0
RemoteIDModule/RemoteIDModule.ino

@@ -171,6 +171,8 @@ static void set_data(Transport &t)
     const auto &self_id = t.get_self_id();
     const auto &self_id = t.get_self_id();
     const auto &location = t.get_location();
     const auto &location = t.get_location();
 
 
+    odid_initUasData(&UAS_data);
+
     /*
     /*
       if we don't have BasicID info from parameters and we have it
       if we don't have BasicID info from parameters and we have it
       from the DroneCAN or MAVLink transport then copy it to the
       from the DroneCAN or MAVLink transport then copy it to the