Skip to content

Commit 375dfc9

Browse files
committed
feat: added tinygo-escmotor ErrorCode
1 parent 55b335d commit 375dfc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

constants.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ const (
151151
ErrorCodeESCMotorSpeedBelowMinPulseWidth
152152
ErrorCodeESCMotorSpeedAboveMaxPulseWidth
153153
ErrorCodeESCMotorNilHandler
154+
ErrorCodeESCMotorInvalidNeutralPulseWidth
154155
)
155156

156157
const (
@@ -293,6 +294,7 @@ var (
293294
ErrorCodeESCMotorSpeedBelowMinPulseWidth: "esc motor speed below min pulse width",
294295
ErrorCodeESCMotorSpeedAboveMaxPulseWidth: "esc motor speed above max pulse width",
295296
ErrorCodeESCMotorNilHandler: "esc motor handler cannot be nil",
297+
ErrorCodeESCMotorInvalidNeutralPulseWidth: "esc motor invalid neutral pulse width",
296298

297299
// Servo errors
298300
ErrorCodeServoFailedToConfigurePWM: "servo failed to configure pwm",

0 commit comments

Comments
 (0)