Skip to content

User Story #5 -- Robot Recharge #6

Description

@medinafdzz

Before executing a command to move the robot (User Story #3), the robot checks the charge left in the battery by querying the IBS (User Story #2). When the charge left returned by the IBS is equal to or less than 10%, the robot turns off the cleaning system, turns on the recharging LED, and stays still (i.e., the robot does not move whatever the command it receives). In this case, it returns a string containing the status of the rover preceded by an exclamation mark.

Requirement:

  • Update the implementation of CleaningRobot.execute_command(command: str) -> str to manage the behavior associated with the charge left.

Example:

  • Let us suppose there is not enough charge left and the status of the robot is (1,1,N). If the robot receives the command f, it does not move and returns the following string: !(1,1,N)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions