I created a program that shoots down incoming missiles by tracking them via radar and then tasking wireless slave pc's.
Radar – > ABM Server –>Slave PC's –> Launchers attached to Slave PC's –>Launch Interceptor missiles in sequence.
I have tried to improve it with these three ideas:
1. Somehow predict incoming missile trajectories so that interceptor missiles fire at the projected point rather than at a previous one.
- This basically means that my interceptors should hit incoming missiles more precisely, rather than fire at previous altitudes.
- This way the interceptors don't fly past the missiles but get as close as possible to them by going to their projected point.
- I tried to use math to derive a formula based on a simple y=mx+B function and use the slope to find the next point.
- Didn't work out so well.
2. It would be nice if someone could write me some code in which slave PC's tell the master PC what their current missile is:
- Method for that: getMissile()
- Currently it only prints a list of available silos to the master and their ID.
- I was wondering if someone could tell me how i could let the master receive and print the loads of each slave.
- Also if it could tell the master if the slave is armed or not.
what i want it to do:
Silos List:
[1] Id: (id here) | Armed Status: (armed/disarmed) | Missile: (Missile Type)
my master code: http://pastebin.com/zTJ6WFj7
my slave: http://pastebin.com/tGN8JaPW
Thanks!