sevreNniarB
lvl.3
Germany
Offline
|
BGA Posted at 11-12 09:03
Just to be more precise, the code you create in the lab is actually inserted in the middle of a template code that connects with the actual S1 features (that is why you do not need to import anything, for example). Funny thing, the way to code is inlined makes the start() function be completely unnecessary (anythng that you type outside any function will be executed) and it is most likely there just to make Scratch code easier to reason about.
Yes, it is really a mess... I've whitelisted the Python functions & module import and some stuff is still not working because of the way they have implemented it (sandwich style)... ever tried to write a class? GL with it Well, you are able to code everything outside of Lab and execute it directly, but that's a whole other story.
BTW: A lot of the system is heavily secured (SELinux, Checksums, FS checks, you name it). When you mess with the wrong files the S1 will reboot and reinitialize with its factory image... the whole system screams: “stay out!” and I really hope the efuses will not blow up my board one day
I'm sorry, but the S1 is not designed for real robotics development/coding or the cool stuff you see on the YouTube Robomaster shows...
Cheers |
|