Skip to content

Commit

Permalink
Fix wrong motor controller name.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettle authored Jul 21, 2024
1 parent e4a7b80 commit ccf1a19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PROTO PreconfiguredDBSLinearMotor [
import {assert} from 'wbutility.js';
assert(!fields.motorType.value.startsWith("NEO") || ["Spark Max", "Spark Flex", "PWM"].includes(fields.controllerType.value),
`PreconfiguredDCDBSMotor: Brushless motor "${fields.motorType.value}" cannot be driven by brushed motor controller "${fields.controllerType.value}"!`);
assert(fields.controllerType.value !== "NEO Vortex" || ["NEOVortex"].includes(fields.motorType.value),
assert(fields.controllerType.value !== "Spark Flex" || ["NEOVortex"].includes(fields.motorType.value),
`PreconfiguredDCDBSMotor: NEO Vortex controller can not drive a "${fields.motorType.value}"!`);
let motor = eval(wbfile.readTextFile(`${context.project_path}protos/deepbluesim/dbsmotor.js`));
>%
Expand Down

0 comments on commit ccf1a19

Please sign in to comment.