Tuesday, June 2, 2009

10 helicopters in circle formation

After organizing the code a little I am now able to render multiple helicopters and use the same control logic on each. Since they already know how to navigate towards a goal, I thought it would be cool to see how they work in a formation. I do this simply by setting their goal to a relative offset from the target helicopter (the one I am navigating with my joystick).


As you can see in the vid they will try their best to hold the circle formation, but if I move too quickly they fall behind because the PID values are not aggressive enough as they are coded for smooth movements.

No sensors yet though, that's up next!

Saturday, May 16, 2009

Project blog created


Alright, first words of my blog for the Autonomous Aerial Drone Simulator project.

The project is part of my Masters thesis in computer technology, which starts this fall and ends next spring. The simulator will feature a simplified physics environment for aerial vehicles, in particular a model for small radiocontroller helicopters will be implemented. Using the simulator it is possible to see how control logic performs in an approximation to reality, and adjust accordingly. It is so much cheaper to crash in virtual life. :-)

Eager to start I have already implemented some initial code for simple physics and helicopter behavior. It works pretty well even without considering air physics, and the helicopter can be controlled using a regular R/C helicopter joystick with a PC cable that ships with most helicopter models. This actually turned out to be a decent R/C simulator to practice flying those things in.

I have also implemented some initial control logic for navigating to a waypoint. Using PID loops (the I is not very much used yet) adjusted to the environment, and using perfect knowledge of position, velocity, forces and orientation of the helicopter the autopilot is by now able to:

- Hover
- Navigate to a waypoint with nose pointing in arbitrary direction
- Come to a halt at a waypoint
- Navigate with intermediate waypoints by passing through them

Although it can't land yet, it has infinitely amounts of fuel so it shouldn't be a problem in the near future.

In the  screenshot above you can see the visual presentation so far. Although the graphics is not a focus in the project, I gotta admit it is hard to give a crap too. I will probably add quite more details as the project progresses and I tire of coding control logic and AI.