• yetAnotherUser@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    5 hours ago

    The functions just store all variables in a globally accessible JSON file. Compartmentalization is for programmers that aren’t capable of writing bug-free code.

    • filcuk@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      The only logical way to coordinate multiple drones like this is to store the json on a local nas and have them take turns updating their vectors within

      • yetAnotherUser@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        4 hours ago

        I was thinking the drones would use Bluetooth to send the modified json to each other which negates the need for a NAS.

        Of course, two different drones may have modified the json nearly simultaneously so the json would need to be timestamped and the earlier timestamp overrules the later one in case of merge conflicts.