Add type parameters to motor and sensor constructors