The APM dev team is delighted to announce the release of APM:Plane 2.74, a major new release with a lot of new features. This release is recommended for anyone flying fixed wing aircraft with an APM2 or PX4.
There are a lot of changes in this release, but some of the highlights are:
Scroll down for a more complete list of changes, but before that I'd like to give you a bit more detail on the highlights above.
New Attitude Controllers
The new "APM_Control" attitude controllers have been in development for a long time. Originally developed by Jon Challinger last year, they were extended by Paul Riseborough and made compatible with the existing parameter names. The key advantage of these new controllers is their improved handling of noise, and much better ability to tune for your aircraft. There is a new tuning guide in the wiki which gives detailed instructions on how to make the most of the new capabilities.
One of the big effects you will see with the new attitude controllers is better handling of pitch compensation in turns. The new PTCH2SRV_RLL parameter makes tuning for flat turns much easier, which has been a major source of frustration in the past.
The new controllers also handle sensor noise much better, especially if you use any D term in your roll or pitch controllers.
New Speed/Height Controller
The new TECS speed/height controller is the second major controller change in this release, and will make a world of difference for aircraft with an airspeed sensor. After a lot of testing I decided to make TECS the default in this release, although you can switch back to the old controllers using the ALT_CTRL_ALG parameter if need be. If for some reason you find you do need these old controllers then please let me know, as I am planning on removing the old controllers in the next release.
The previous airspeed controller for speed/height suffered from a major problem that it gave absolute priority to airspeed. If the aircraft could not achieve the target airspeed you had set then it would dive to gain speed, even to the point of diving into the ground. This made it quite fragile, and you had to be very sure of your airspeed configuration.
The new controller operates over a range of airspeed values, set using the ARSPD_FBW_MIN and ARSPD_FBW_MAX parameters. That controller will try to meet both the airspeed and altitude demands of the mission, but if it can't reach the target speed it will happily fly a bit slower, as long as it doesn't get below ARSPD_FBW_MIN. You can control the relative priorities of speed versus height using the TECS_SPDWEIGHT parameter. See the full tuning guide for details.
New ACRO flight mode
This modes brings rate controlled stabilization to APM:Plane, and should help give you an "on rails" manual flight experience. It is a lot of fun to fly, but it is not for beginners!
We're planning on expanding the ACRO mode in future releases. Right now it is great for "locked in" flying, and also good for loops and handles inverted flight very nicely. It doesn't yet handle knife-edge or prop-hanging.
New CRUISE flight mode
After a suggestion from Hein, we now have a new CRUISE flight mode. This mode is ideal for longer distance flying without a pre-programmed mission. It is like FBWB, but also does ground track heading hold, with heading update via aileron or rudder.
I've been testing CRUISE at my local flying field, and it is the easiest mode to fly in APM. Just steer the plane around the sky, and when you stop steering it locks onto a ground track and holds it. It isn't a good mode for takeoff and landing, but once you are in the air it is great.
New camera trigger system
When using APM for aerial mapping where you want photos taken at regular distances, the previous system was to setup a grid mission with a "camera trigger" mission item at regular intervals within the mission. That worked, but led to overly large and complex missions. You can now just set a single parameter CAM_TRIGG_DIST to the number of meters of flight between photos, and the APM will take care of when to trigger the camera. This makes for much simpler missions, and also works in other flight modes, including FBWB and CRUISE.
Lots of smaller changes
As is usual with a new release after a couple of months of development there were a lot of smaller improvements based on feedback from users. Many thanks to everyone who gave feedback and contributed patches!
Here is a partial list of the changes:
This new release has a lot of new features that should improve the flying experience for all APM users. The APM dev teams wishes all APM users many enjoyable flights, and we hope you have as much fun flying this release as we had making it.
I use FlightGear and HIL fw 2.74b to simulate my flight plans. I found something weird. When airplane get to the waypoint that will has the hard turn (90 degree or more) the airplane will pitch up by the HUD on MP shows it pitches down. So the APM corrects this by adding more pitch and reduce the throttle and cause airplane to stall. It is quite often the airplane stall in this way. I believe I saw this weird since fw 2.73 but not quite sure. I has tested this with Cessna172, Rascal and Malilo and they are happened in the same way.
I am wondering which parameters TECS will use if there is no airspeed sensor installed.
I find TECS difficult to tune, it keeps stalling the plane in tight turns due to lack of throttle usage.
I can see in ArduPlane.pde, update_GPS that the check if the plane is moving has been removed. So has the call to ground_start.
The variable ground_start_avg is still there and is being written to but never read from.
Is everything under control here? How do I convince myself that init_home will not get called if eg. the APM resets on a brownout in flight?
Can someone explain how KFF_THR2PTCH works?
Would it help me to not to pitch down when i set higher speed in cruise?
Thank you Paul,
I will do that and if weather permits it I'll be testing again tomorrow.
I ordered an airspeed kit and it should be somewhere in europe by now, I will feel a lot safer with that.
I must say I haven't had those issues with the old controller before, using the same parameters. But, as you said, the attitude controllers are all new.
Lots of tuning to do.
Oh and I had rudder to roll mix of 0,5 in my old parameters (fw 2.73 and below), I set it to zero after fiddling with tecs but I couldn't test due to empty battery!
Regarding your HIL problems...this sounds very similar to the issue I noted much earlier in this forum (see page 2). For me, every firmware after 2.68 has had this same problem where the MP HUD starts to deviate from FG and eventually the plane becomes uncontrollable. It happens after a few minutes of straight-level flight, but turns will exacerbate the issue rapidly. I'm using windows, most recent MP, FG (tried diferent versions, but normally I use 2.0), and the Rascal model. Tridge mentioned that he would try to take a look at this, but I haven't heard back yet...
Has anyone else seen this or have any ideas what settings we may have wrong? Thanks.
I have now tested XPlane-10, and if run on a real windows box instead of in a VM it works fine. I have installed the latest flightgear, but I haven't tested it yet. Just running out of time as I'm going away for a few days tomorrow, and need to get a few things done before I leave.
the "level" button is greyed out.
may you help us?
I've found a solution, maybe...
from the CLI use the ACCEL command in setup menù.
I have lots of experience with design and flying fixed wing, some knowledge of python programming and would like to start developing some extra functionality for the auto landing procedure.
Basically I am considering to use a catching net to avoid landings in rough ground or whatever else, and think I will need a "guiding" to make sure the plane accurately lands in the catching net. I was thinking of image processing (but I guess the APM has reached it's capacity) using say three easily detectable objects to aid in centering on the net.
Would anyone have any advice on how I could start with this project. is this maybe possible with the PX4? or would it be better to do the image processing independently and interface (somehow) the final adjustments into the autolanding procedure?
Hello, Still tweaking and tuning. Yes, it's sort of fun but sometimes unexplainable things happen. Today, just for the heck of it, I went up to about 650 ft altitude in FBWA mode and then switched to RTL. My RTL altitude is set at 200ft. Well, the plane came down in a spiral fashion at zero amps (no motor) but then it surprised me be deciding the RTL altitude was around 265ft and began to add power and circle there. During prior flights it homed in on the 200ft quite nicely. It would appear that if the altitude difference is lower or only slightly higher than RTL Alt. it does fine.
Anyone have suggestions or an explanation?
@Paul Riseborough: please could you post your X8 wing parameter file here? It would really help to have an X8 setup that we knows works very well.