File tree Expand file tree Collapse file tree
pi4micronaut-utils/src/main/java/com/opensourcewithslu/outputdevices Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .opensourcewithslu .outputdevices ;
22
3- import com .pi4j .io .exception .IOException ;
43import com .pi4j .io .pwm .Pwm ;
54import org .slf4j .Logger ;
65import org .slf4j .LoggerFactory ;
@@ -34,7 +33,7 @@ public ServoMotorHelper(Pwm servoMotor) {
3433 * Enables the servo motor by starting PWM output at 0% duty cycle and the
3534 * configured servo frequency.
3635 *
37- * @throws IOException if the underlying PWM implementation cannot start the signal
36+ * @throws com.pi4j.io.exception. IOException if the underlying PWM implementation cannot start the signal
3837 */
3938 public void enable () {
4039 log .info ("Enabling servo motor" );
@@ -45,7 +44,7 @@ public void enable() {
4544 /**
4645 * Disables the servo motor and stops PWM output.
4746 *
48- * @throws IOException if the underlying PWM implementation cannot stop the signal
47+ * @throws com.pi4j.io.exception. IOException if the underlying PWM implementation cannot stop the signal
4948 */
5049 public void disable () {
5150 log .info ("Disabling servo motor" );
@@ -72,7 +71,7 @@ float map(float value) {
7271 * </p>
7372 *
7473 * @param angle the target angle for the servo motor, between 0 and 180 degrees.
75- * @throws IOException if the underlying PWM implementation cannot update the signal
74+ * @throws com.pi4j.io.exception. IOException if the underlying PWM implementation cannot update the signal
7675 */
7776 public void setAngle (int angle ) {
7877 if (!isEnabled ) {
You can’t perform that action at this time.
0 commit comments