Skip to content

Refactor repetitive code inside markhor_hw_interface_flippers.cpp #22

Description

@lvanasse

Inside : markhor_hw_interface_flippers.cpp

There's a lot of repeated logic that's pretty much identical for all the drives. For examples, things like printing the state of the drive or initializing the drive. All drives also have an upper/lower limit. I think this shows there's a missing abstraction that wraps the drive in a structure containing the pointer to the drive and the associated limits. Once you have that structure, it would also be much easier to just extract shared code like initializing and printing the state.

Originally posted by @IceSentry in #21 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    WFHIssue doable from homeenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions