--type is required for this command.
Motors
motor.set-can-id
Change a motor’s CAN ID and save it to the motor.
Changes a motor’s CAN ID and saves it to the motor’s flash. You need the motor’s current ID, or the motor must be the only device on the bus.
