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.
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
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.
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.
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
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.