With Android Studio, the hardware map doesn't get called/instantiated until the specific OpMode is used. This makes it easy to test multiple different opmodes all with different configuration needs and they can co-exist within the same code base. With AppInventor, though, it looks like the hardware map is instantiated immediately upon picking an OpMode. This means we have to have a full configuration file even if we only want to test one particular OpMode. When we are dealing with trollbots for testing, they don't have all the motor controllers/servos/etc. Is there any way that we can try to get AppInventor to "defer" instantiation or something? We've tried disabling certain code blocks that call the bits we don't want to use, but that doesn't seem to help, it still wants to instantiate everything upon starting.
I know we can always create smaller programs and then use the BackPack to copy/paste, but we've run into some problems with that (they're 7th graders and don't always use consistent variable/motor names and that causes problems when pulling blocks back to a main).
This may not be possible, I'm just hoping someone might have some similar experience with this problem.
Thanks!
I know we can always create smaller programs and then use the BackPack to copy/paste, but we've run into some problems with that (they're 7th graders and don't always use consistent variable/motor names and that causes problems when pulling blocks back to a main).
This may not be possible, I'm just hoping someone might have some similar experience with this problem.
Thanks!
Comment