Fredrick
- 26th July 2009, 19:04
Hi
Iīm trying to to make a control system for 8 clay throwers for compact sporting.
This is how a compact sporting place can look like.
http://www.hjvf.se/sport/sporting_s.jpg
Exampel taken from this PDF http://www.fitasc.com/public/reglements/CompakSporting230908_UK.pdf
(We do not shoot whit 6 shooters as in the example)
http://www.eskilstunajaktskytteklubb.se/filer/ss.gif
4.4 Shooting sequence for a round
Shooters position (See Annex 3):
The shooters in the squad go to on the stands in the order set out on the score sheet.
The shooter waits behind stand # 1, is ready to take the shooters place, once the
shooter at stand 5 has finished shooting the clays on his/her menu.
The shotgun position is free at the time of calling for the target (at the shoulder or
not).
All the targets must be fired at with the gun at the shoulder.
The shooters fire in turns at each single and double target in the order on the menu.
A time lapse of 10 seconds at most is allowed for each shooter to call for his target
or targets after the shooter at the previous stand has finished firing.
The Referee must announce to the shooter at the station # 1 when it has to shoot.
When the shooter at stand # 5 has finished firing at the targets on his menu:
He moves to stand # 1 and waits behind it
The other shooters move to the next stand on their right
The shooter who was waiting previously takes his place on stand # 1.
It is always the shooter on stand # 1 who starts the round of five targets
The control system I want to make is a box with 2 buttons THROW and REVERSE.
Now we have a big box whit 8 buttons for each thrower and manual push the different combinations for each stand, I want to make this by steep throw a program whit just one button.
I tried to make this whit 20 loops and wait for the throw button to be pressed and just jump to the next loop or back to the previous loop if REVERSE button what pressed.
This works for 5 shooters but I also want to tell the program if the number of shooters for example is only 1, 2, 3, or 4, I will store number of shooters in a variable that is set by the user via a LCD before the game starts (1 to 5 shooters)
If three shooters they will start on stand 1, 2, 3 and after the menu move to 2, 3 and 4 and then to 3, 4, 5 and then to 4, 5, 1 and that last shooting on stand 5, 1, 2.
How do i do that, should I still use 20 different loops and write a lot of IF THEN ELSE within them to decide witch loop that should be the next to jump to?
Or how do I do it in a good way?
My English is not perfect so I hope you understand what I trying to do here.
Iīm trying to to make a control system for 8 clay throwers for compact sporting.
This is how a compact sporting place can look like.
http://www.hjvf.se/sport/sporting_s.jpg
Exampel taken from this PDF http://www.fitasc.com/public/reglements/CompakSporting230908_UK.pdf
(We do not shoot whit 6 shooters as in the example)
http://www.eskilstunajaktskytteklubb.se/filer/ss.gif
4.4 Shooting sequence for a round
Shooters position (See Annex 3):
The shooters in the squad go to on the stands in the order set out on the score sheet.
The shooter waits behind stand # 1, is ready to take the shooters place, once the
shooter at stand 5 has finished shooting the clays on his/her menu.
The shotgun position is free at the time of calling for the target (at the shoulder or
not).
All the targets must be fired at with the gun at the shoulder.
The shooters fire in turns at each single and double target in the order on the menu.
A time lapse of 10 seconds at most is allowed for each shooter to call for his target
or targets after the shooter at the previous stand has finished firing.
The Referee must announce to the shooter at the station # 1 when it has to shoot.
When the shooter at stand # 5 has finished firing at the targets on his menu:
He moves to stand # 1 and waits behind it
The other shooters move to the next stand on their right
The shooter who was waiting previously takes his place on stand # 1.
It is always the shooter on stand # 1 who starts the round of five targets
The control system I want to make is a box with 2 buttons THROW and REVERSE.
Now we have a big box whit 8 buttons for each thrower and manual push the different combinations for each stand, I want to make this by steep throw a program whit just one button.
I tried to make this whit 20 loops and wait for the throw button to be pressed and just jump to the next loop or back to the previous loop if REVERSE button what pressed.
This works for 5 shooters but I also want to tell the program if the number of shooters for example is only 1, 2, 3, or 4, I will store number of shooters in a variable that is set by the user via a LCD before the game starts (1 to 5 shooters)
If three shooters they will start on stand 1, 2, 3 and after the menu move to 2, 3 and 4 and then to 3, 4, 5 and then to 4, 5, 1 and that last shooting on stand 5, 1, 2.
How do i do that, should I still use 20 different loops and write a lot of IF THEN ELSE within them to decide witch loop that should be the next to jump to?
Or how do I do it in a good way?
My English is not perfect so I hope you understand what I trying to do here.