APM Planner for X-Plane camera control

In X-Plane's "Data Input & Output" dialog, item 127 "Camera Location" allows the position and angle of the view to controlled. Would it be possible, with the new camera tracking Arduplane and Arducopter code, to use APM Planner to control the view in X-Plane via the commanded outputs of the pan and tilt servos? If this could be done it would transform the simulator into a pretty capable training device.

 

 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    the only issue is how does one convert the rcout pwm to an angle?

  • Hi! I have a similar problem. I have a sperimental UAV with a gimbal camera mounted below. I want to make a Hardware-in-the-Loop simulation with X-Plane 9 of the camera movements. I did an Arduino code for ArduPilotMega where I calculate dynamically the correct Pan and Tilt angles of my gimbal, for example to frame a specific ground target, so I want to see in X-Plane the dynamic view of the camera while the uav flies. I saw that in X-Plane there are data inputs/outputs of camera location so I want to know if it's possible to control the view. I downloaded also the Virtual Camera plugin for X-Plane 9 where i can put the coordinates of the camera and the pan and tilt initial angles. Did you solve your problem and is there any possibility to reach my purpose? Have I to set the APM Planner or other programs and how can I do this?
    Thank you very much!

  • Yeah, just map one of the channels to send view angles to Xplane. Maybe ch6 for tilt and ch7 for pan. I've read through the Xplane documentation, and it seems it would be similar to sending pitch angles, etc. I'd like to learn how you implemented this in Planner. I assume as the camera tracking algorithm gets more advanced this will become a more sought after feature for simulation.
  • Developer

    can you give me an example of the intened use/output.

     

    from what i can tell.

    map say channel 6 pwm to a 45 to -45 degree output, or similar.

  • That sounds highly plausible. You going to do it? ;p

This reply was deleted.

Activity