percent method
Creates a position command mapped across the advertised range.
Implementation
DeviceOutputCommand percent(double percent, int duration) {
return DeviceOutputCommand(OutputType.hwPositionWithDuration, PercentOrSteps.fromPercent(percent), duration);
}