![]() |
Changing digital module
In the robotics class I help teach we are trying to get the class to build a bot for their final project. We have an 8 slot crio available for them, however, slot 2 for the digital module is faulty and we MUST use slot 6 for it. I have tested the slot in lab view and know it works.
My question is how in C++ do I change the digital module slot for the robot drive motors? |
Re: Changing digital module
Instantiate each of the drive motor controllers explicitly. Then, instead of giving PWM channels to the 'drive constructor, pass the motor controller objects.
|
Re: Changing digital module
Quote:
|
Re: Changing digital module
Update: just tested with a different drive motor and still no reverse so the problem either lies in the jaguar or the code if I am correct
|
Re: Changing digital module
Update 2: it seems the jaguars we had were broken and don't go reverse, I hooked one of the drive ones from our main robot onto it and it worked fine. All is working now, thank you again!
|
Re: Changing digital module
If a Jaguar runs a motor in one direction but not the other, make sure both of its limit switch jumpers are correctly installed.
|
Re: Changing digital module
Quote:
|
| All times are GMT -5. The time now is 12:09. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi