Hunter Parris's Posts (6)

Sort by

Overlaying GPS Coordinates for Camera Crosshairs

3689560630?profile=original

Hey Guys!

I am working on a project to allow us to implement GPS coordinates for the location of the crosshairs of a PTZ camera, other wise known as Geo-pointing.  This will essentially give us the LAT/LONG of what we are looking at.  

I have found several methods to do this, but I'm looking for the simplest way but accurate as possible.  I am fairly new to modifying APM and to MAVLink so instruction and suggestions are very welcome!  Here is what I have in mind:

In order to get this:

LAT/LON: Self explanatory

BRG: Bearing

SRG: Slant Range (Range from Aircraft to location)

GRG: Ground Range (Range from coordinate to coordinate)

I have a formula to triangulate the position of where the crosshairs are pointing relative to the aircraft by using trigonometry.  Here is the example:

3689560667?profile=original

3689560688?profile=original

The system will incorporate 1x APM 2.5 w/ GPS, 3DR Telemetry radios, 1x IMU w/ compass for camera gimbal, 2x MinimOSD boards, 2 cameras, 1x video TX with two-way camera switcher.

Method:

Application extracts altitude from APM and camera angle from Camera IMU and finds the tangent and cosine of the angle and finds the missing sides.  This will give us the ground distance and slant range respectively.

TAN(CAng)*Alt = GndDist     COS(CAng)*Alt = Slant

At this point the slant and ground range can be transmitted to the video feed.

Next, we use the aircraft's GPS coordinates from the APM and the ground distance to find what coordinate we are looking at on the ground:

aL-aircraft Latitude

aO-aircraft Longitude

cL-crosshair Latitude

cO-crosshair Longitude

A-aircraft Altitude

D-ground Distance

B-Bearing from Gimbal Compass

 

cL =ASIN(SIN(aL*PI()/180)*COS((D=TAN(A*PI()/180)/6378.137) + COS(aL*PI()/180)*SIN((D=TAN(A*PI()/180)/6378.137)*COS(B*PI()/180))*180/PI()

cO =((aO*PI()/180) + ATAN2(COS((D=TAN(A*PI()/180)/6378.137)-SIN(aL*PI()/180)*SIN(cL*PI()/180), SIN(B*PI()/180)*SIN((D=TAN(A*PI()/180)/6378.137)*COS(aL*PI()/180)))*180/PI()

These formulas are in excel format since it is what I used to test these.

This should give us the coordinate under the crosshair.

Next, I would like for this information to be sent to the second OSD for the gimbal camera.

Now my question is, how do I implement this?

I would assume that I can attach the IMU and compass via analog sensor input, however, I have no idea how to write code for it.

I also do not know how to write the code for the calculations to the APM in order for the APM to do all the formulas.  Can the APM handle it or do I need a separate processor?

How do I create a MAVLink message for the new coordinates and inject into the data stream?

How do I write the code to the MinimOSD to retrieve the new coordinates and display it?

These might sound like noob questions, but I come from a radio frequency engineer background and just now getting into programming.  I would love to learn how to do this stuff but there is very little out there on what I'm wanting to do exactly.  Sure, I can make an LED blink, and I know that's the basic skills, but I need to know how exactly to interface this with the APM and sensors.

Once again, all of your help is greatly appreciated and I very much welcome discussion and suggestions on a better way to do this!

-Hunter

Read more…

3689516498?profile=original

I have a thought to use cellular technology to pipe video and data over a UDP connection.  This is nothing, however, I haven't seen a lot of support for the usage of 4G/LTE which allows up to 100mbps speeds.  Has anyone ever read up on this pico board?  I'ts available from min-box.com.  The same place I received my mini-PC for my GCS.

I had this idea about hosting a UDP server on board the aircraft with this pico board.  Then routing all traffic through a VPN tunnel where it will be connected to the GCS via internet/VPN tunneling.

The APM will connect to the board via serial I/O.  The tricky part (for me) will be routing that serial traffic over a UDP connection.  Any idea a simple(r) way to do this with Linux instead of any software-based routing procedures?  I very familiar with Linux, just haven't done any network routing inside a client-only environment.

Any thoughts or concerns are more than welcome!

Read more…

 

3689495698?profile=original

 

I came across this while researching wireless solutions and seems very possible to create a long range WiFi connection between the GCS and aircraft using an onboard micro computer.

These are the specs that the company boasts:

--------------------------------------------------------------------------------

Processor Specs: Atheros, 6th Generation, AR5414

Radio Operation:  Proprietary 900MHz

Interface:  32-bit mini-PCI Type IIIA

Operation Voltage:  3.3VDC

Antenna Ports:  Dual MMCX

Temperature Range:  -45C to +90C (extended temp version up to +95C)

Security:  802.11i, AES-CCM & TKIP Encryption, 802.1x, 64/128/152bit WEP

Data Rates:  6Mbps, 9Mbps, 12Mbps, 24Mbps, 36Mbps, 48Mbps, 54Mbps

TX Channel Width Support:  5MHz / 10MHz / 20MHz / 40MHz

RoHS Compliance:  YES

Avg. TX Power:  28dBm, +/-1dB

Max Current Consumption:  1.10A, +/-100mA

Indoor Range (Antenna Dependent):  over 400m

Outdoor Range (Antenna Dependent):  over 50km

Operating System Support:  Linux MADWIFI, WindowsXP, Windows2000

Advanced Mobility / Quick Handoff:  WindowsXP/2000 Utility with Enhanced Mobility Driver from Ubiquiti

Cisco Support:  CCX 4.0 Supported Driver/Utility also available from Ubiquiti

------------------------------------------------------------------------------------------------------------------

They also carry ones for the 5GHz and 700MHz frequency range.  If anyone has ever used these or could see a possible usage in a UAV, please comment!

 

Hunter

Read more…
M1-D-thermal-camera-ptz-3-channel-looking-up_002.jpg

   After arriving in Texas, I've talked to several land owners who complain about feral hogs damaging their property.  I had a solution that would incorporate thermal imaging with a sUAS platform to track hog movement and patterns during the day and at night.  While doing research I came across this little baby, the M1D Micro PTZ Gimbal

 

  I was very surprised at the size, weight, and resolution of this camera.  It uses a FLIR thermal imaging camera that are available in three resolutions, 120x140 being the lowest @ $3900 and 640x480 being the highest at $9500.  I was definitely expecting this to being in the upper teens or low 20's!

 

It has a very nice CCD camera, Hi-res thermal camera, and focusable laser incorporated in a weatherproof housing.  Being 6" tall, 4.5" in diameter and weighing in around .9 kg, it seems to be a very good solution for a UAS system such as the X8 or similar platform.

 

The only issue that I have seen along with most PTZ systems in the RS-485 communication.  I'm not a comms expert so I do not know if it is possible to do a P&P setup with the APM 2.5.  I did come across a couple of Xtend 900 RS-485 1W modems that would allow control from a joystick or PTZ control board from the ground.

m1d_PTZ_FLIR_Thermal.jpgm1d_VISUAL_PTZ_FLIR.jpg

Read more…

3689451470?profile=original

I'm not sure if anyone has come across this, but I've been reading through the training and it is very informative.

Since most of us have the Mission Planner software that can HIL interface with X-Plane, this can be a very good tool for amateur UAV pilots to learn the basics of flying and aircraft while getting stick-time in a flight simulator.  The X-PPL covers lessons in both VFR and IFR focusing on various flight characteristics and theory such as forces of aircraft, basic controls, ascending and descending, stalling, circuits with various winds, landings, instrument usage, and more.

Not only with this be a great tool for learning aircraft flight characteristics, but will also aid you in proficiently navigating X-Plane and being able to access all of the features of the Simulator.  It covers X-Plane controls as well as navigational maps and user controllable environments.

Those of us using the APM, 1 or 2, know the great benefits of having a successful simulator that saves us from spending a lot of cash on repairs.  I challenge FS pilots to give this a look-see and let us know the accuracy and suggestions of this free X-PPL course.

The list of topics can be found on X-Plane.org forum page located here: http://forums.x-plane.org/index.php?showforum=90

Regards,

Hunter

DISCLAIMER:  I am in no way monetarily or business affiliated with X-Plane, X-Plane.org, or any products from the companies that produce these or similar products.  My interest is solely that of a curious hobbyist!

Read more…

DIY UAS Project Design and Development

3689447720?profile=original

For the past 4 months I have been designing and developing a UAS system mainly for entertainment purposes but the future could hold potential business opportunities.  My research has led me to several potential paths and products to experiment with in order to accomplish my goal.

Goal:  To build a semi-professional grade UAS and ground station capable of long range flight, camera/payload stabilization, autonomous flight (takeoff->landing), waypoint navigation, stabilized flight, real-time telemetry feedback and video, being controlled by joystick/throttle, and long endurance; all being under a DIY budget.

I have chosen several products to meet these requirements and I will give a detailed description of both my airframe and ground station plans and will accept any comments/suggestions from more experienced persons.

3689447903?profile=originalTo start off, I will give you a little background on me.  I am a newly separated Special Operations veteran with UAV experience (RQ-11B, Scan Eagle).  I have a great deal of computer knowledge but could use a refresher on programming.  I have an outstanding command of RF propagation and theory.

Airframe: Skywalker 1.9m wingspan version.  I chose this for its durability, modification ability, low-cost, payload weight, and great reviews.  The aircraft will be coated with Styroplast, primed and painted, and equipped with landing gear.  Servo doors/covers will be installed.  High quality linkage will be used.

Motor: Scorpion SII-3014-1040

ESC: Scorpion V3 60A

Prop: APC 9x7.5E

Battery: 4S 8000mAh LiPo

Servos: 6x HS-65MG (2x ailerons, 1x rudder, 1x elevator, 2x flaps)

Primary R/C Control: Joystick control interfaced with ArduPlane over 900MHz

Secondary R/C Control: Dragon Link LRS 435MHz with JR 7-Channel Radio

Video Link: Lawmate 2.4GHz 1W TxImmersionRC Duo2400v2 diversity Rx

Video Antennas: 1x 2.4GHz 18dBi Yagi; 1x 5dBi Omni; 1x 3dBi Omni (Tx)

Cameras: 690TVL U-WDR Pixim Seawolf CCD for Pilot Cam; GoPro Hero 2 HD for Aerial Video/Surveillance

The Pilot cam will be mounted in the tip of the nose; The GoPro will be mounted on a custom P/T under the fuselage.

Autopilot: APM 2.0 + Digi Xtend 900MHz

Xtend Antennas: 1x 14dBi Patch; 1x 3dBi Omni

OSD: MinimOSD

Electronics Battery: 3S 2200mAh w/ UBEC

Ground Control Station: Will be embedded in case with professional aluminum panel mounting, switches, and wiring. 

Case: Pelican 1650

PC: MiniTX Automotive PC

Monitors: 2x 12.1" LCD

Joystick: DIY with CH industrial joysticks and POT to USB board

GCS Battery: 12v 20Ah Lead Acid

Antenna Tracking: ArduStation II GCS

This is a project I am currently working alone, so if anyone is in the Valdosta, GA area and is interested in partnering, please let me know.

I apologize for not having more photos, but as I start my build I will be posting many videos and photos!

Happy Flying!

Read more…