|
GpsNavigation
Navigation has been implemented using the 18F2620 PIC which has significantly more memory available to it. This was one of the reasons that Wolferl was not able to implement navigation for the 16F876 version of of the original quadrocopter. RequirementsMinimum:
Recommended substitutions/alternatives:
Your GPS should preferably have the ability to update at 5Hz. Lower update rates will work but not as well. If you use only $GPGGA then you may use the 5Hz update rate. If you are using $GPGGA, $GPRMC and $GPGSV set the update at 3-4Hz maximum because of the additional processing load; yes it takes processing time to throw away stuff! GPS units produce coordinates which typically have 4 or 5 decimal places of precision; older GPS units may have only 3. UAVX can automatically read coordinates with either 4 or 5 decimal places ONLY.
Use your GPS logger to determine which format your GPS uses. The ETEK and Locosys LS20031 GPS units have been used with success. Some GPS units have built in battery backup making startup faster. UAVPset allows most hardware configurations to be set directly rather than requiring the previous multiple HEX files. There are however separate HEX files for debugging sensors and for 6 channel Rxs. The test and flight firmware are now combined. The following Tx/Rx combinations are supported:
With the modes:
The important factor for Tx/Rx combinations is that the Rx servo pulses do not overlap each other in time. Although your Tx/Rx combination may not be explicitly named in the combinations above there is a reasonable chance that one of the combinations will work. The supported Roll/Pitch Gyros are:
The Melexis Gyro is preferred. PC/GPS SwitchingThe arming switch needs to be replaced by a double switch, which when arming, disconnects the PC Tx signal to the quadrocopter and connects the GPS Tx signal. When armed the UAVX software expects only valid GPS NMEA sentences. Specific details will appear under hardware related pages. See also: http://www.rcgroups.com/forums/showpost.php?p=12843408&postcount=3297 Compass OrientationThe software expects the compass orientation to be the same as in the manual. A correction is made by the software such that a heading of zero is obtained when the forward arm points True North. The Compass may be mounted elsewhere on the aircraft as it is the orientation that is important. The orientation was not important for non-GPS versions which used changes in direction not the absolute direction. Be aware that the North arrow on the Sparkfun boards may be incorrect! The normal offset for newer compasses is 270deg but there are 90 degree (90D) hex files for the older compasses. FunctionalityNavigation uses the Gear (Ch5) and Ch7 inputs. This means that parameters can no longer be changed in flight using Ch5, and roll trim for any servo driven camera is no longer available. Signals for roll and tilt stabilisation are still generated. Ch6 is still available for camera tilt trim. The implementation provides three principal functions:
CAUTION: Engaging RTH/NAV disables ALL pilot throttle control. Deactivating RTH/NAV restores throttle to whatever it is set to at the instant of deactivation. Make sure you have a throttle setting that is appropriate when you deactivate RTH/NAV. If you are close to the ground when RTH/NAV is deactivated and you have inadvertently closed the throttle the quadrocopter will fall like a brick! This caution does not apply if you have RTH/NAV altitude hold disabled. Normally the altitude is controlled directly by the pilot with the assistance of the barometer. The barometer will attempt to maintain a hover if the throttle stick has not moved for ~3 Sec. During GPS acquisition there will be a flashing Blue LED and a solid Red LED. Once the GPS initial location is determined the Red LED will go out and be replaced by a solid Green LED. This may take a few minutes to occur depending on the update rate of your GPS as UAVX requires around 100 valid GPS sentences with a small position error bound. The rate at which the Blue LED flashes depends on the GPS unit's update rate. UAVPset ParametersThe new version of UAVPSet modified for use by UAVX MUST be used otherwise several additional parameters associated with Navigation will not be defined leading to possible loss of the quadrocopter. Use of the older incompatible versions of UAVPSet may appear to work but will not have done so. Some attempt is made within UAVX to detect this situation and if detected it will result in the quadrocopter failing to arm. The important additional parameters are:
CAUTION: The GPS altitude can be inaccurate depending on the satellite constellation selected/reselected in flight by the GPS unit. The Barometer may also fail if exposed to icing or water droplets which can block the sensor hole. There are, of course, many other tuning parameters within the code which have not been brought through the UAVPSet interface! The UAVX version of UAVPSet can read older parameter files and write them to the UAVX software on the quadrocopter. Parameters read from UAVX are not compatible with the original UAVP flight software. Stick Based ConfigurationWhen the quadrocopter is disarmed the Tx sticks may be used to access some paramters in the field without the use of a PC.
You will only hear beeps if the setting you have selected is different from the previous setting. TTH is not active within the closing distance, or radius, of the Origin nor is it active when simply holding a position. The Pilot still has control of a yaw offset and thus can control the direction of camera gaze regardless of whether TTH is active or not although if it is active then there will be a small "resistance" to yaw commands. Way PointsWay point navigation has not been implemented. NMEAFor maximum flexibility in GPS choice we have chosen to implement the GPS interface using NMEA sentences. A reference to NMEA is at: http://home.mira.net/~gnb/gps/nmea.html GNU ConditionsThe GNU conditions apply to this software which may be used entirely at your own risk. Leave a comment if you have suggestions or can help out. |
For GPS choice, I'd recommend the Etek EB-85a. I've used a couple of these with different OSD modules, and find them to be very sensitive, and fast. They also have dual serial channels for possible use with multiple applications (UAVP + OSD for example). Sparkfun sells an evaluation board and software that works with these, and when they're in stock, Ohararp sells the units for only $55 each- http://www.ohararp.com/products.html Rusty
Rusty is correct as usual about the Etek EB-85a. It has also been remnamed as the FV-M8 Here: http://www.dpcav.com/xcart/product.php?productid=16161. It is hard to beat the $55 Oharp price, but they are currently out of stock. Cheers, Jim
I think we should start with NMEA for maximum flexibility. The Processing/size overheads are manageable but probably not on the 876 PIC. I do have parsing code in C for NMEA and Trimble binary.
For the hobby standpoint, It will fits everyone's budget if supporting NMEA protocol.
So in the code I am building I propose that if the the Tx signal is lost the UAVP returns to the launch origin at an appropriate altitude (100 feet?). If the signal is not restored after some period, or if the main battery volts falls to the alarm threshold, the UAVP will land. Loss of signal may be deliberate ie Tx is turned off, or simply out of range. If Tx signal is restored then control returns to manual. Any comments welcome.
I like the approach you are taking. Return to launch on signal loss is definitely better than the current "idle throttle" for 30 seconds.
Greg,
Cheers, JimGreg,
Here: http://www.rcgroups.com/forums/showthread.php?t=979372 Might this be another path for UAVP GPS navigation? Cheers, JimHello, I understand how great this unit is but I am a user not a programmer or engineer. the question I have is this: who can help me build a quad with a payload capacity of 3-6 pounds? I need a brain that is ready to go with at most a GUI in windows to set the setup of the brain for flight. I am not looking to spend 5-10k but would like some help. and am willing to pay for that help from a professional/hobbyist that REALLY knows this stuff. I am a professional Heli pilot looking to get away from the gas machines for AP work and try the quad electric.
I want to fly a Canon 5d camera with a airfoil remote pan/tilt mount
obin@dv3productions.com please let me know if you know anyone in the US that can help me with this quest. :) thanks!
can anybody help me making GPS connection with ATMega32.
An note on connecting the Quadroufo GPS Module is that the Bbackup pin or the solder +ve -ve pads need to be connected underneath to get a response from the GPS.
can some one please post were to get the Requirements from? any help would be great!