Skip to content

Take off after landing #2

@relic-se

Description

@relic-se

I am using the code from my PR, #1. So, this bug may be related to the changes made, but I'm not entirely certain.

After entering a level and successfully landing on my first mine, I can't seem to take back off. The thruster starts to go after holding down "A" but stutters and I get "engine shutoff" repeated in REPL. Because I have plenty of fuel and there are no "...:after engine_shutoff()" prints, I'm thinking this is being called here:

MoonMiner/code.py

Line 1934 in 0a25559

self.engine_shutoff()

ground_detected must be returning True when it shouldn't. I'm not familiar enough with the logic involved to determine a solution to this issue at this time.

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