Hi,
I am trying to create a class that manages all the motors of a holonomic drive like a drivetrain does with normal drivebases. In the following code, I test in on my holonomic base but there is just one motor out of four that works when I try it.
My Specildrive.h file:
I am no expert in vexcode, but currently it seems like all your motors are initialized to the same port, thus only one motor works
edit: nvm i need to see the source file to be sure
My robot-config.cpp file:
My Specialdrive.cpp file:
the issue seems like the way you constructed the class
instead of doing SpecialDrive drivebase = SpecialDrive(), do SpecialDrive drivebase(lb, lf …); instead
3 Likes
In the future, you can attach all the photos to one post, and put them in dropdowns like this.
like this
[details="like this"]
photo
[/details]
4 Likes
Which motor works when you run the code?