I’m trying to learn PROS currently, and I’m having an issue initializing a motor group. Currently I create the motors like this:
pros::Motor leftF(1, pros::v5::MotorGears::blue);
pros::Motor leftM(2, pros::v5::MotorGears::blue);
and create the group like this:
pros::MotorGroup left_mg({leftF, leftM});
but I get the error “No matching constructor for initialization of 'pros::MotorGroup’clang(ovl_no_viable_function_in_init)
motor_group.hpp(38, 7): Candidate constructor (the implicit copy constructor) not viable: cannot convert initializer list argument to ‘const MotorGroup’
motor_group.hpp(74, 2): Candidate constructor not viable: no known conversion from ‘pros::Motor’ to ‘signed char’ for 1st argument
motor_group.hpp(113, 2): Candidate constructor not viable: cannot convert initializer list argument to ‘const std::vectorstd::int8_t’ (aka ‘const vector’)
motor_group.hpp(144, 2): Candidate constructor not viable: cannot convert initializer list argument to ‘AbstractMotor’”
Is there anyway to initialize the motor group like I’m trying to or do I just have to pass in the port numbers?