|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: [FTC]: Spin Motor Wind Down: Programming
Your experience seems to match ours. One of my students came up with a possible fix (*hack*) which appeared to prevent their drive motors from flipping out when they wanted to coast their shooter motors. I'll check with him to see what it was and if it is a viable workaround; if it is, we'll post it.
|
|
#2
|
|||
|
|||
|
Re: [FTC]: Spin Motor Wind Down: Programming
thanks. that would help a lot.
in the mean time something like this might help for anyone else trying to keep there motors alive: Code:
int motorSpeed = 100;
void powerDown()
{
if(time10[T1] > 10 && motorSpeed > 10)
{
time10[T1] = 0;
motorSpeed --;
}
else
{
motorSpeed = 0;
}
motor[shooter] = motorSpeed;
}
Last edited by clwilligham : 16-11-2009 at 17:15. |
|
#3
|
|||
|
|||
|
Re: [FTC]: Spin Motor Wind Down: Programming
I talked with the student who had come up with a potential workaround. It sounds like he was adjusting the bFloatDuringInactiveMotorPWM before setting any motor speed. The reported observation was that the bFloatDuringInactiveMotorPWM was only read/applied when setting the power to a motor, not after. So if you wanted to only coast a single motor, you had to set bFloatDuringInactiveMotorPWM to true just before setting the power on that specific motor and then set it back to false before updating any other motors. Any other motors with power already set when the flag is changed do not get affected.
The biggest challenge I see with this type of workaround (assuming it works at all) is if you are setting motor outputs from different tasks. I did not test this myself, but wanted to pass it along as promised. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wind River License Server Down? | keericks | C/C++ | 4 | 19-06-2009 20:02 |
| [FTC]: January Run Down and New FTC Pictures | ttldomination | FIRST Tech Challenge | 6 | 04-02-2009 13:18 |
| Driver Station Watch Dog / Motor Won't Spin Issue | RMiller | FRC Control System | 5 | 20-01-2009 09:58 |
| Motor Spin Direction | archiver | 2000 | 6 | 23-06-2002 23:43 |
| How Many RPM does a Fisher-Price Motor Spin At? | archiver | 2000 | 7 | 23-06-2002 23:22 |