DexterInd / GoPiGo3

The GoPiGo3 is a Raspberry Pi Robot!
https://gopigo.io
Other
96 stars 85 forks source link

Error translating line follower Bloxter Code to Python #251

Closed Auroric closed 5 years ago

Auroric commented 5 years ago

When using the line follower blocks, "line follower (red) sees" and "line follower (black) sees", the equivalent python code has a syntax error, causing the code to fail to run. If instead one checks if the line position is equal to a string using the "line_follower values" and the equals and text blocks, the issue is not found. I believe this occurs because, when using the "line follower (red) sees" and "line follower (black) sees" code blocks, the colon that ends the if statement is on the next line. I have included images of both functioning bloxter code and non-functioning code (where the python equivalents are almost identical, except the colon as noted previously).

bloxter_bloxter_error

bloxter_bloxter_functioning

bloxter_python_error

CleoQc commented 5 years ago

@Auroric You are indeed right. Thanks for reporting the issue and debugging it for us. Fix is incoming.

CleoQc commented 5 years ago

There is an update for DexterOS available now: https://www.dexterindustries.com/dexteros/update-dexteros/

Thank you for having reported the issue, and let us know if you have any question about running the update.

(it took a while to post cause we experienced a website issue, the update itself was done pretty quickly)