extreme
04-18-2007, 08:28 AM
Hi all.
What I want to do:
I have undertaken a project to build a UAV. Right now, I am taking things slowly. I basically want to do this:
1. Take-off manually.
2. Fly to a region in space. (Destination point is provided using GPS values).
3. Land manually.
4. Turn on a switch that would allow me to turn the 'autopilot' ON or OFF, midflight.
Once that is successfull, I would like to add:
2a. Fly a predetermined path. (like figure 8 or 0 or 4). GPS values are not available, unless offcourse if you were to use math plus GPS position of the aircraft before undertaking the flight.
What I know:
I am a programming guy. I know C, C++, Java. I dont particularly like circuits and things like that. I have used old motorolla chips before (in university course) to do things like turning on particular LED lights etc. That was done in assembly language mostly.
What I need to know: (and thus, need your help)
Well, lots of things really, but the important ones are:
1. I first thought that a BS2 OEM would be good enough for me to begin work with. Then I searched on this forum and found that I would need Propeller chip instead. Is this right? Also, since I would like to reduce my headaches by not having to worry about connecting different components, is there something available (in Propellers) similar to the BS2 OEMs ? What would I need to buy in order to get the basic controller working?
2. Just going over the site's products page, I figure that I would need the GPS Reciever unit, the Hitachi H48C Tri-Axis Accelerometer and perhaps the Servo Controller. Is that all I would need for the current requirements of my flight, or am I going to need more? If so what? Also, if either of these three units I mentioned is not required, of if there's a better unit available for cheaper cost, do say so.
3. Propeller provides a SPIN high level language. Does this mean, I can simply program things like "Get GPS Co-ordinates" or "IF GPS co-ordinate is greater than xyz, then do blah" or "increase aircraft speed by 10 units" or "pitch aircraft by xyz units" etc?? Or is it different? How so (just a brief from the top will do, preferrably using examples)?
4. What I would like to achieve is (point 4 above):
4a. When the plane in on ground next to me, I basically load the program with all the GPS-inputs it requires.
4b. I manually take off the plane.
4c. Once the plane is in the air, I turn on the 'autopilot' using a simple switch.
4d. The plane does its things using the program I wrote and the GPS-inputs provided earlier. After finishing it returns.
4e. I land the plane manually.
So, the question really is that when I turn on/off the 'autopilot', do I lose the program (and values) I gave it? I read in some thred that this might happen so I just wanted to know it for sure. And if it does, is there any way to counter it using some other controller?
(PS. sorry if this thread is in wrong place or has been discussed several times).
What I want to do:
I have undertaken a project to build a UAV. Right now, I am taking things slowly. I basically want to do this:
1. Take-off manually.
2. Fly to a region in space. (Destination point is provided using GPS values).
3. Land manually.
4. Turn on a switch that would allow me to turn the 'autopilot' ON or OFF, midflight.
Once that is successfull, I would like to add:
2a. Fly a predetermined path. (like figure 8 or 0 or 4). GPS values are not available, unless offcourse if you were to use math plus GPS position of the aircraft before undertaking the flight.
What I know:
I am a programming guy. I know C, C++, Java. I dont particularly like circuits and things like that. I have used old motorolla chips before (in university course) to do things like turning on particular LED lights etc. That was done in assembly language mostly.
What I need to know: (and thus, need your help)
Well, lots of things really, but the important ones are:
1. I first thought that a BS2 OEM would be good enough for me to begin work with. Then I searched on this forum and found that I would need Propeller chip instead. Is this right? Also, since I would like to reduce my headaches by not having to worry about connecting different components, is there something available (in Propellers) similar to the BS2 OEMs ? What would I need to buy in order to get the basic controller working?
2. Just going over the site's products page, I figure that I would need the GPS Reciever unit, the Hitachi H48C Tri-Axis Accelerometer and perhaps the Servo Controller. Is that all I would need for the current requirements of my flight, or am I going to need more? If so what? Also, if either of these three units I mentioned is not required, of if there's a better unit available for cheaper cost, do say so.
3. Propeller provides a SPIN high level language. Does this mean, I can simply program things like "Get GPS Co-ordinates" or "IF GPS co-ordinate is greater than xyz, then do blah" or "increase aircraft speed by 10 units" or "pitch aircraft by xyz units" etc?? Or is it different? How so (just a brief from the top will do, preferrably using examples)?
4. What I would like to achieve is (point 4 above):
4a. When the plane in on ground next to me, I basically load the program with all the GPS-inputs it requires.
4b. I manually take off the plane.
4c. Once the plane is in the air, I turn on the 'autopilot' using a simple switch.
4d. The plane does its things using the program I wrote and the GPS-inputs provided earlier. After finishing it returns.
4e. I land the plane manually.
So, the question really is that when I turn on/off the 'autopilot', do I lose the program (and values) I gave it? I read in some thred that this might happen so I just wanted to know it for sure. And if it does, is there any way to counter it using some other controller?
(PS. sorry if this thread is in wrong place or has been discussed several times).