Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,13 @@ public static MotorControllerType getControllerType(SparkBase motor){
}
return null;
}


/**
* Creates a motor config object for the given motor type.
*
* @param motorConfig the config for the specific type of motor (ex: MotorConfig.NEO, MotorConfig.NEO_VORTEX, etc)
*
*/
public static SparkBaseConfig sparkConfig(MotorConfig motorConfig){
SparkBaseConfig config = motorConfig.controllerType.createConfig();
//configs that apply to all motors
Expand Down
Loading