![]() |
Deploying Problems with Gyros and Victors
Hello CD,
Using Commandbased robot templating system, our programming department has successfully created tankdrive code. We are trying to implement the gyroscope for drivestraight methods, but we keep getting deploying errors, especially: Code:
[cRIO] edu.wpi.first.wpilibj.util.AllocationException: PWM channel 1 on module 1 is already allocatedThank you so much. :] |
Re: Deploying Problems with Gyros and Victors
This error means that you have created two sensors on the same channel in your code. Look through your code to check if two of your ports are the same or that two identical objects are created in different places.
|
Re: Deploying Problems with Gyros and Victors
I have posted a new project just with the gyro initialized. Here is the Github link and console error output.
Can someone please help us? We cannot figure out the problem. Thank you so much CD. :] https://github.com/team4element/team4gyro Code:
ant -f "/App Development/github/team4gyro/team4gyro" deploy run |
Re: Deploying Problems with Gyros and Victors
your problem is that your creating a new gyro for every instance of the command. create the gyro in robotmap or OI and reference it instead of creating a new one
|
Re: Deploying Problems with Gyros and Victors
You're creating two chassis objects, once in CommandBase and once in team4gyro. Because of that, two gyro objects are created.
|
| All times are GMT -5. The time now is 07:45 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi