setManualMode method

  1. @override
Future<void> setManualMode(
  1. bool manualMode, {
  2. Duration enabledFor = Duration.zero,
  3. Map<String, dynamic>? extra,
})
override

Enter or exit manual mode for an arm that supports it. enabledFor limits how long the arm stays in manual mode; Duration.zero means no time limit.

await myArm.setManualMode(true, enabledFor: Duration(seconds: 30));

For more information, see Arm component.

Implementation

@override
Future<void> setManualMode(bool manualMode, {Duration enabledFor = Duration.zero, Map<String, dynamic>? extra}) async {
  final request = SetManualModeRequest()
    ..name = name
    ..manualMode = manualMode
    ..enabledFor = enabledFor.inSeconds
    ..extra = extra?.toStruct() ?? Struct();
  await client.setManualMode(request, options: callOptions);
}