I think I understand what you are trying to do. When the car comes to an obstacle it needs to short cut across the oval to find the line again. I see that as doable. One thing to think about is how will the car know if it is going counter clockwise or clockwise. One way is to always go the same way, meaning always go counter clockwise and always turn left.
Thanks Don, I slowed down the wheel speed so that maybe it could catch the line when crossing at 90 degrees rather than run through the oval and out the side but that still does not help. If the sensors all hit black at the same time, ie 90 degrees to the straight line then the car does not turn. If it was programmed to turn left or right when all sensors see black at the same time then it should get back on line rather than run out of the oval. Not sure that my blocks are in the right places in order to combine ultrasonic and patrol .
@@makecodeandhardware1395 It looks like something has gone wrong with the extension. When I load it I also get a Matrix LiDAR Distance tab. When I look at the source code it has stuff that wasn't included in the current Maqueen Plus V2. I went back to an older project and it looks correct. Sometime over the last 4 months they released a version that includes a whole bunch of stuff from an older version, or they re-released an older version.
I think I understand what you are trying to do. When the car comes to an obstacle it needs to short cut across the oval to find the line again. I see that as doable. One thing to think about is how will the car know if it is going counter clockwise or clockwise. One way is to always go the same way, meaning always go counter clockwise and always turn left.
Thanks Don, I slowed down the wheel speed so that maybe it could catch the line when crossing at 90 degrees rather than run through the oval and out the side but that still does not help. If the sensors all hit black at the same time, ie 90 degrees to the straight line then the car does not turn. If it was programmed to turn left or right when all sensors see black at the same time then it should get back on line rather than run out of the oval. Not sure that my blocks are in the right places in order to combine ultrasonic and patrol .
@@makecodeandhardware1395 It looks like something has gone wrong with the extension. When I load it I also get a Matrix LiDAR Distance tab. When I look at the source code it has stuff that wasn't included in the current Maqueen Plus V2. I went back to an older project and it looks correct. Sometime over the last 4 months they released a version that includes a whole bunch of stuff from an older version, or they re-released an older version.
@@jdonwells Is LiDAR on our horizon for MakeCode and Micro:bit ? I see that DF Robot has it for Arduino.
@@makecodeandhardware1395 If what I am seeing is true, it will be a very nice robot. We just don't have any yet.
I added a video on my channel for you. There is a link to an example solution.