![]() |
Re: Drive Train Curves Only While Backing Up
I concur. What do the outputs of 3, 4, and so forth look like? Whichever one disagrees with the others should be reserved for standalone (one controller) functions, not the drive train.
|
Re: Drive Train Curves Only While Backing Up
Quote:
|
Re: Drive Train Curves Only While Backing Up
I've seen strange discrepancies in drive motor response when the motors are cross-wired between a pair of speed controllers. It's probably not what you're seeing, but go ahead and double-check that each motor is properly wired to its single associated Talon.
Also double-check that your Talons are all the same variety. I didn't think the SR and non-SR models had different responses, but I know there are definitely differences between old and new Victors, so it's worth looking at. |
Re: Drive Train Curves Only While Backing Up
Those measurements are from the PWM port, right?
Can you post the full source code of the IterativeRobot test you just made? |
Re: Drive Train Curves Only While Backing Up
Quote:
|
Re: Drive Train Curves Only While Backing Up
Quote:
|
Re: Drive Train Curves Only While Backing Up
Quote:
|
Re: Drive Train Curves Only While Backing Up
We had exactly the same problem earlier in the season and it turned out to be the joysticks, so make sure it's not those. You can do this by watching the joystick outputs on the Dashboard. If that is the problem, you can easily fix it by putting in a bigger deadband.
|
Re: Drive Train Curves Only While Backing Up
Quote:
Code:
Are those readings normal? Has anyone ever had this issue of the PWM signals having about a 200ms delay hooked up to an oscilloscope? Is this expected and does calibrating the talons somehow take care of this? |
Re: Drive Train Curves Only While Backing Up
This is expected behavior. -0.2 is represented by a different PWM pulsewidth than 0.2.
If you set both Talons to 0.2 or -0.2 simultaneously, I'd bet you see nearly identical pulses. |
Re: Drive Train Curves Only While Backing Up
Quote:
Code:
package org.usfirst.frc.team2559.robot; |
Re: Drive Train Curves Only While Backing Up
Quote:
tankDrive(-.4, .4) or visa versa should result in identical pulsewidths. |
Re: Drive Train Curves Only While Backing Up
Quote:
I'm trying to calibrate the talons at the moment but they're simply flashing red (which means failure, according to the document). I'm pressing and holding them while going full throttle forward, going to neutral, and then going full throttle backwards, and then back to neutral. After that, I put them back into neutral. Is that how you guys usually do it? |
Re: Drive Train Curves Only While Backing Up
Quote:
|
Re: Drive Train Curves Only While Backing Up
Quote:
Normally, if you wire red to + on both the left and right side, you would expect to see one speed controller flash red while the other flashes green when driving forward (since you will have needed to invert one side in code because it is in the opposite physical orientation). If you switch the motor leads on one side instead, you would NOT want to invert the command in code, and both sides would blink the same color. Since there are two ways to invert each motor, it is easy to get confused. For this reason, I HIGHLY recommend NEVER inverting motors electrically...always do red to +, and invert in the code as necessary. This way, if you need to swap in a spare motor or speed controller, you never need to guess which way to wire it up because they are all always the same. |
| All times are GMT -5. The time now is 00:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi