Repository navigation
Adding auto-drive demo - #80
Conversation
|
The demo depends on #76. |
|
Thanks for adding this, what I'll do is post about it to the ev3dev.org site - there's not much going on there right now. |
|
There is a slight issue I had with the new bindings while implementing this. The boostc version stopped the motors in their destructors, and pure python version does not. When something goes wrong in the middle of the script (that is, an exception is thrown and the script exits prematurely), motors keep rotating, and there is no easy way to stop the motors. May be we should reintroduce the boostc behavior? |
|
+1 I'll do this on the code generated by open-roberta too. |
|
Good idea - destructors should reset the peripheral - this may apply for sensors as well... |
|
How do you reset a sensor? |
|
Maybe @rhempel meant to restore e.g. the mode. |
|
But then we either need a concept of default mode for each sensor type, or to remember the state the sensor had at construction time. |
|
I just mean to consider resetting the sensor. For example the NXT light sensor allowed to use the LED as a multi colored light. The destructor should turn the light off. I see the motor destructor PR is done - leave the sensors for later - it won't break anything :-) |
Ref #47