|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Several questions (language comparison)
Quote:
|
|
#2
|
|||
|
|||
|
Re: Several questions (language comparison)
Our kicker rotated and launched outward when the kick button was pressed. The rotations were at an extremely high speed. To prevent the kicker from coming out at an unpredictable and generally unfavorable angle, we used the sensor as an interrupt to make sure the kicker could come out at a predictable angle. As the speed of the rotator increased, the range of angles for a good kick decreased, so the room for error in the timing of the code wouldn't allow for timing of the kick to occur in the main loop. The interrupt checks a flag for whether to kick, and also will delay the kick as needed to compensate for the speed of the kicker (without the extra timing code, the kicker only works around 75% power)
|
|
#3
|
||||
|
||||
|
Re: Several questions (language comparison)
Quote:
|
|
#4
|
|||
|
|||
|
Re: Several questions (language comparison)
Quote:
The interrupt is setup through WPILib, so I have no idea if interrupts during interrupts are enabled (never seen any problems though). |
|
#5
|
||||
|
||||
|
Re: Several questions (language comparison)
Quote:
Or are you talking milliseconds? |
|
#6
|
|||
|
|||
|
Re: Several questions (language comparison)
I think it's in the single digit milliseconds, but again I'm making a guess from the speed of our kicker
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Several questions... | elbuo | NI LabVIEW | 0 | 16-02-2010 02:14 |
| joystick comparison within percentage | IceStorm | NI LabVIEW | 4 | 20-03-2009 00:19 |
| Aluminum sprockets for drive train - several questions | M. Mellott | Technical Discussion | 16 | 16-12-2008 15:53 |
| Several questions | Amittt | 3D Animation and Competition | 8 | 02-02-2006 18:21 |
| Comparison Paper ? | Steve W | General Forum | 13 | 09-11-2004 16:37 |