setCameraAngle method

void setCameraAngle(
  1. {required double swivel,
  2. required double tilt}
)

Sets the angle of the front camera.

Implementation

void setCameraAngle({required double swivel, required double tilt}) {
	collection.logger.trace("Setting camera angles to $swivel (swivel) and $tilt (tilt)");
	final command = DriveCommand(frontSwivel: swivel, frontTilt: tilt);
	collection.server.sendCommand(command);
}