8000 Simulator template minor error · Issue #671 · autorope/donkeycar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Simulator template minor error #671
67ED
Closed
@Keenan1967

Description

@Keenan1967

return pilot_angle if pilot_angle else 0.0, pilot_throttle * cfg.AI_THROTTLE_MULT, pilot_brake if pilot_brake else 0.0

In the above line, I think it should instead be:
return pilot_angle if pilot_angle else 0.0, pilot_throttle * cfg.AI_THROTTLE_MULT if pilot_throttle else 0.0, pilot_brake if pilot_brake else 0.0

Without the safety check for pilot_throttle, my program was crashing when trying to run an AI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0