Jath-Alison / ART

MIT License
1 stars 0 forks source link

Fix SimpleMotorGroup Code Examples #2

Open Jath-Alison opened 2 months ago

Jath-Alison commented 2 months ago

The examples that currently exist in SimpleMotorGroup.h construct the group like this:

SimpleMotor testMotor = SimpleMotor( vex::motor_group(
        vex::motor(vex::PORT10 ), vex::motor(vex::PORT11 )
) );

When it should really be like this:

vex::motor a = vex::motor( vex::PORT20 );
vex::motor b = vex::motor( vex::PORT12, true );

art::SimpleMotorGroup testMotorGroup = art::SimpleMotorGroup( vex::motor_group(
       a , b
) ).withSpeedMode( true );

This needs to be fixed across multiple examples. Maybe eventually, it'll be fixed to work like this.

Jath-Alison commented 2 months ago

Lesss gooo, issues system works.