QuirkyCort / gears

Generic Educational Robotics Simulator
Other
65 stars 41 forks source link

Pybricks mode - reset angle #113

Closed mrfabroa closed 11 months ago

mrfabroa commented 2 years ago

When running in Pybricks mode, usage of reset_angle()causes an error reset_angle() missing 1 required argument since the generated code is reset_angle() and not `reset_angle(0)

QuirkyCort commented 2 years ago

You're right. Personally, I find it strange that the pybricks api for reset_angle is "reset_angle(angle)" and not "reset_angle(angle=0)". Anyway, I'll fix the generated code first.

Subsequently, I'll change the api in Gears to "reset_angle(angle)", but not immediately as this will break compatibility with older code.