Genius
Genius
Genius
For a sufficiently defined "goingToCrashIntoEachOther" and "don't", isn't that basically how it works?
It definitely should be, but at some point in time, very intelligent people though that this was a Good Thing:
bReadLine(bPort,&arru8NumberList)
Well, even at that level of abstraction, it's a bit weird, because goingToCrashIntoEachOther
and dont()
both need the information from where a collision is going to take place, so you'd expect something to be passed into dont()
.
Well, and it's easy to dismiss this stuff as implementation details, but that if-statement needs to run as part of a loop. This loop should probably be on a separate thread, so it doesn't get blocked by other stuff going on. Which means access to the motors needs to be behind some form of mutex, which it needs to be able to acquire fairly quickly. And then, yeah, those implementation details quickly add up to become the part that's actually complex.
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.
Couldn't dont() just be an order to halt and goingToCrashIntoEachOther can be a simple true/false?
So the drones both stop, then start moving and immediately see they will crash into each other so they halt again. Drone version of you go, no no you go
; }
Crashes DESTROYED with CODING and ALGORITHMS.
"big air" is hating these revolutions [spinning fan emoji]
plsAndThankYou
yea, pretty much like that
should be everything_is_okay if it's going to be a boolean
These days they'd write "AI" and you'd be none the wiser, because even if it involves a machine learning model (which is definitely not a given either), they will still have used quite a lot of coding and algorithms to tie it all together.
I like to mentally substitute these terms with "magic". Because ultimately, it just means that they don't want to explain it to you, but they need to tell you something, so you don't ask about it.
If {not_broken} then {fix_it_anyway};
This is actually how I would start out if I were developing this algorithm. I always start with the highest-level code first, then flesh out all the details in function definitions.
Whoah, coding and algorithms???
I think you mean magic and miracles!
Magnets, how they work?