Go Down

Topic: Partiot missile Project (Read 808 times) previous topic - next topic

Adagio

Hiya!
Ever seen a Patriot missile in C&C Genarals?
(Apperently they actually exist... 0_0)

I made something like that, but with an ADFruit LED strip.(Didn't want to kill  someone...)

Basicly it communicates to the computer by serial, recieving info like bullet velocity, direction of fire esc., and using Trajectory calculations to calculate the amount of degrees that it should aim to hit the target...

Problem is it only promps the first line. ie "Enter Password:"
Thus I cant see if my calculations are correct...

could someone maby take a look at my code?

Here is a video

Note: my coding isn't very neat...

Thanx in advance!
I'm not crazy, I have the mental health hospital discharge papers to prove it!

robtillaart

it is really funny @ 0:45 when you shoot the patriots right up ... think the real one has some safety for that trajectory
Also the speed of firing explains why the defence budget is so BIG ;)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Adagio

*ROFL*
HAHA!
The project started out as something like THIS

but my father said it looks like a "Starlien orrel" (The South African version of something like an Patriot Missile)

So... This was born....

Any thoughts on the code....

PS... I would like to make it wirelesly controlled by bluetooth...

Anybody knows about an app for android for serial communication???
I'm not crazy, I have the mental health hospital discharge papers to prove it!

PaulS

Quote
if(c == 0){
    pass = Serial.read();
    if(pass == 1024){

Would you kindly explain how you intend to enter the character who's ASCII value is 1024 in the Serial Monitor?

While you are at it, kindly explain why you are not checking for there actually being data to read before you try to read it.

robtillaart

Quote
Anybody knows about an app for android for serial communication???

Over bluetooth? => Blueterm ?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up