Hello and welcome to our community! Is this your first visit?
Register
Results 1 to 5 of 5
  1. #1
    Senior Pilot
    Join Date
    Jun 2011
    Location
    Calgary, Alberta
    Posts
    126
    Downloads
    0
    Uploads
    0
    Reputation Points (Add)
    0

    Camera Stabilization AQ 2.0.7

    I'm trying to set up camera stabilization on my quad but I've run into a weird issue. When I define in CameraControl and CameraTXControl my GPS stops working. As well, I don't get any movement on a test servo that I've plugged into Servo2. I've done the D11 to D34 modification to the board. Is this expected, or have I stuffed something up?

  2. #2
    Senior Pilot
    Join Date
    Jun 2011
    Location
    Calgary, Alberta
    Posts
    126
    Downloads
    0
    Uploads
    0
    Reputation Points (Add)
    0
    I got it all sorted out, the problem was laziness. I needed to initialize the EEPROM to get all the variables initialized properly. The LED assigned to the GPS just glows faintly when camera stabilization is enabled, the GPS still works.

    If anyone is interested, I enabled CameraControl because I wanted to have the CameraTXControl values passed to the pitch adjustment on my brushless gimbal controller without futzing with too much of the code. Ideally I would have just connected the pitch adjustment on the gimbal to a channel on my receiver, but I'm using cPPM on the quad and so that's not an option. The only change I had to make was to send 0's to moveCamera in the 100Hz task instead of all the kinematicsAngles.

    #if defined(CameraControl)
    //moveCamera(kinematicsAngle[YAXIS],kinematicsAngle[XAXIS],kinematicsAngle[ZAXIS]);
    moveCamera(0,0,0);

  3. #3
    Senior Pilot
    Join Date
    Jun 2011
    Location
    Calgary, Alberta
    Posts
    126
    Downloads
    0
    Uploads
    0
    Reputation Points (Add)
    0
    I got the LED working again as well.

    in CameraStabilizer_Aeroquad.h I changed

    DDRB = DDRB | B11100000;
    to
    DDRB = DDRB | B00100000;

    TCCR1A =((1<<WGM11)|(1<<COM1A1)|(1<<COM1B1)|(1<<COM1C1));
    to
    TCCR1A =((1<<WGM11)|(1<<COM1A1));

    I also commented out the roll and yaw writes in cameraControlMove().

    This is officially far more futz-y than I had intended. Is there a better way of going about this?

  4. #4
    Senior Pilot wooden's Avatar
    Join Date
    Dec 2011
    Location
    Pacific Northwest
    Posts
    4,869
    Blog Entries
    1
    Downloads
    1
    Uploads
    0
    Reputation Points (Add)
    27
    What exactly about your GPS stopped working, just the LED or the whole thing?

    The camera control and GPS functions are entirely independent so I don't see how one could harm the other.
    push the envelope, watch it bend

  5. #5
    Senior Pilot
    Join Date
    Jun 2011
    Location
    Calgary, Alberta
    Posts
    126
    Downloads
    0
    Uploads
    0
    Reputation Points (Add)
    0
    Yes,t was just the LED, the GPS was/is completely fine. Pin 13 (the green LED) gets used to show the status of the GPS, and to output PWM signal to servo 3 when you enable camera control on the Mega board.

    I didn't need servo control for roll or yaw and so I turned off PWM output on pins 12 and 13, which in turn made the green LED behave normally. I could have left pin 12 alone, and probably should have.


 

Similar Threads

  1. AQ32 Camera Stabilization
    By wooden in forum AeroQuad Flight Software
    Replies: 1
    Last Post: 09-24-2012, 04:40 AM
  2. Camera stabilization
    By crodrigues in forum General Discussion
    Replies: 1
    Last Post: 07-27-2011, 04:11 AM
  3. Camera Stabilization Servos
    By KirAsh4 in forum General Discussion
    Replies: 2
    Last Post: 04-17-2011, 10:33 AM
  4. Camera Stabilization
    By Feliksayk in forum AeroQuad Flight Software
    Replies: 11
    Last Post: 01-04-2010, 05:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •