startRight method

Future<bool> startRight({
  1. int? currBinocular,
  2. int? motorSpeed,
  3. int timeout = 5,
})

Implementation

Future<bool> startRight(
    {int? currBinocular, int? motorSpeed, int timeout = 5}) async {
  String _cgi = "decoder_control.cgi?command=6&onestep=0&";
  if (currBinocular != null) {
    _cgi = _cgi + "curr_binocular=$currBinocular&";
  }
  if (motorSpeed != null) {
    _cgi = _cgi + "motor_speed=$motorSpeed&";
  }
  bool ret = await _command.writeCgi(_cgi, timeout: timeout);
  return ret;
}