Skip to content

LD app didn't detect Freefall state and GroundContact state in operational mode, LD_OP_MODE_AUTO #346

@ynielson

Description

@ynielson

When I tested the Freefall state of the LD app by calling freefall_history.setState(TRUE) by force,
the app didn't detect the Freefall state ever.
The Freefall detection was fixed to return FALSE in the function, DetectFreeFall(), which was called every time the App woke up.

The GroundContact state was fixed to return FALSE too.
Even though the app set the GroundContact state by checking the landed_history and detecting GroundContact state,
logically GroundContact can never be TRUE in the function, UpdateState().

  • Test case: Test_LD_Execute_AutoFreefall(), Test_LD_Execute_AutoGroundContact()
    ld_Execute_AutoFreefall_DetectFail_2023-03-28 17-49-56
    ld_Execute_AutoGroundContact_DetectFail_2023-03-28 17-51-02

Metadata

Metadata

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