add gs
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
local function validateMotor(motor)
|
||||
assert(typeof(motor) == "table")
|
||||
assert(typeof(motor.start) == "function")
|
||||
assert(typeof(motor.stop) == "function")
|
||||
assert(typeof(motor.step) == "function")
|
||||
assert(typeof(motor.setGoal) == "function")
|
||||
assert(typeof(motor.onStep) == "function")
|
||||
assert(typeof(motor.onComplete) == "function")
|
||||
assert(typeof(motor.destroy) == "function")
|
||||
end
|
||||
|
||||
return validateMotor
|
||||
Reference in New Issue
Block a user