Pages

vendredi 27 avril 2012

Rather use the helicopter ardupilot firmware than the ardupilot firmware

This post might be the exact same problem as I am facing..

http://diydrones.com/forum/topics/ardupilot-for-stabilize-3-axis-camera-gimball-possible

It recommands using the helicopter firmware : http://code.google.com/p/arducopter/wiki/APM2_Motor_order

Maintaining heading lock

I found a file for ardupilot mega, that was made for test purpose, but that fits perfectly my needs.

Here's the content of the file (with the link to the original post below)

[optional] Ground Testing with the FixedDirection ModeIf you want to test the autopilot further on the ground, we have included a special softwaremode to allow this. In previous version of the software, we had special "NorthEast" codethat would attempt to always steer the plane north-east for testing purposes. In version 2.2and above, this mode can be enabled with a simple settings change in the EasyStar.h (orwhatever airframe you're using) file:Set the following lines as per the below://9-1#define FAKE_BEARING 1 //If set to 1, will fake the bearing and willtry to go always head to the defined DESIRED_FAKE_BEARING//9-2#define DESIRED_FAKE_BEARING 45 //Will try to go NorthEast, you canchange that to 0 = NORTH, 90 = EAST, 180 = SOUTH, 270 = WEST orwhatever!//9-6#define WALK_AROUND 1 //Must be "0" to test the GPS and headingagainst the servo and "1" for normal operation[Walk-Around mode disables stabilization, turning ArduPilot into a navigation-only autopilot.This is also useful if you want to use ArduPilot in ground vehicles that don't requirestabalization, or if you want to use ArduPilot in an aircraft that already has its ownstabilization system, such as the FMA CoPilot]Save the file, then open the Arduino IDE, load the ArduPilot code and download it toArduPilot.Now walk outside with your plane (with all the RC stuff hooked up) and power up, waitinguntil you get a GPS lock (solid blue LED). Once you've got that, toggle the autopilot on andstart walking around at a brisk pace in big circles. You should see the rudder (assumingyou're using the EasyStar; ailerons if you you're using a plane with them) try to steer youso you're going NorthEast.When you're done with the ground testing, return the autpilot to its normal mode by editingthis line as follows and re-uploading the code to ArduPilot://9-1#define FAKE_BEARING 0 //If set to 1, will fake the bearing and willtry to go always head to the defined DESIRED_FAKE_BEARING

From here : http://api.ning.com/files/8uesEX-AhXHtK*U594HwOxfrqYufSbIoQAlrDkdwsBdI5cy1IHpwN2fjM8j4uq-pgdgq-iHztCUjG3YBXUeL0vaetPJviF0U/ArduPilot_2_Manual.pdf

The config file is here :
http://ardupilot.googlecode.com/files/ArduPilotNE.zip

mardi 24 avril 2012

Projects than can help


Also I want to print out that my need is very specific and sometimes, because ardupilot mega and the software mission planner or so well made, well.. I fear to realize later than a feature that I needed was already in front of my nose but I didn't see it because I didn't understand it.. we'll see..


PROBLEM ONE : HEADING LOCK

  • How to set up ardupilot mega for continuous servo rotation... I'm looking into arduTracker to identify a solution
  • Also, I noticed there is a fonctino in the mission planer named "head lock" which would be exactly what I  would be looking for. But it doesn't seem to be working. I don't know yet if I'm doing something wrong or if it's just not made for that purpose

PROBLEM TWO : TILT PAN of my camera

There seem to be a number of things already in place for that problem :



Setting up ardupilot mega v2 / APMv2 setup


to come tonight

Ardupilot mega v2 setup / APMv2 setup

I will be making a video tonight or so, about how to setup APMv2 from scratch, for those of you who ain't programmer, and who don't know anything (yet) about arduino.

I found myself struggling about how to setup my RC equipment. Very basic stuff, but I lost a lot of time understanding simple things, just because I didn't want to make a mistake (misconnect some cable) and ruine the board.

Also, I found that it wasn't so easy as I thought to get the camera to point at a predefined heading. Ok, it's easy when you know how to program it in the code. But if you don't, then you have to rely on previous works or similar projects.

I will make two distinct posts to talk about setting up APMv2 for RC equipment and another one about the similar projects I have found.