Hot answers tagged programming
It is not possible to modify the properties of myBlock in the current version of EV3 SW. It is possible by tampering the block source files: create a copy of your *.ev3. Just in case rename *.ev3 to *.zip extract all files from the zip edit files as needed move changed files back into zip (Under Windows drag and drop to zip) rename *.zip to *.ev3 I ...
If I were you, I'd make it this way: The leader robot has a very bright light shining backwards, but not in a tight beam, rather a wide cone, so it can be seen from the back easily. The follower robot has the light sensor facing forward, with a cowl around and in front of the sensor in order to narrow its sensing angle. In other words, the sensor is ...
You can use finite state machine. In this case you will have these 5 states: RUN Action: turn on the motors for moving straight Transition to state TURN in case of event: ultrasonic sensor detects obstacle closer than 4.5 inch). Transition to state WAIT in case of event: color sensor detects red color WAIT Action: stop motors Transition to state ...
Checking the source code, it appears that the opOutput_Get_Type command is not implemented. In both links, it is mentioned in the comments, but there is nothing in the actual code. Unfortunately, I am not finding a different way to get this information.
There's an official app released by LEGO called the LEGO MINDSTORMS COMMANDER. It's available on both Android and iOS. I believe this is what you are looking for. LMC lets you control the EV3 brick via bluetooth on your smartphone. It's not exactly an API, but it lets you control the EV3.
Only top voted, non community-wiki answers of a minimum length are eligible