Controller battery API
See:
Add and complete the following impl block in src/controller.rs
impl Controller {
pub fn get_battery_capacity(&self) -> Result<i32, ControllerError> {
todo!()
}
pub fn get_battery_level(&self) -> Result<i32, ControllerError> {
todo!()
}
}
Modify the example program in examples/controller.rs
so that it prints the controller's battery status as a percent.
Edited by Timothy Morland