New answers tagged programming
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.
Looking at your code, you're saying: Set the motors to a speed of 300, acceleration of 1000 Run the motors backwards Pause execution of your program for 500ms Stop the motors If you're not seeing colour id 7, go to 1. Assuming that this was exactly the same code you had on the Brick, I'd guess the delays introduced by the communication will cause a ...
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 ...
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.
This can be done using ev3dev. https://github.com/ev3dev/ev3dev/issues/46
Top 50 recent answers are included