roverhelper
v1.0.0
Published
A simple package to manage the Mars Rover Curiosity's status and operations.
Readme
RoverHelper Package
A simple package to manage the Mars Rover Curiosity's status and operations.
Features
- Power management (ON/OFF)
- Speed control (0-100)
- Fuel management (0-100)
- Status monitoring
Methods
setPower(state: string)
Sets the power state of the rover ("ON" or "OFF")
setSpeed(speed: number)
Sets the rover's speed (0-100). Only works when powered on and has fuel.
addFuel(amount: number)
Adds fuel to the rover (capped at 100)
getStatus()
Returns the current status of the rover
