I've recently tried to setup APM for my new flying wing and discovered that it is not safe to fly in other than Manual modes =( The reason is servo throws for most flying wings must be limited, but APM limits them only in Manual, in all other modes servos goes to endpoints.

After some googling I've found 2 bugs submitted to issue logger on google code of arduplane:

1)

Issue 647:

Elevon control throw for manual mode does not match control throw for other modes

2)

Issue 686:Servo limits (maximum throw) is not working in stabilize, fbw and other modes.

Another helpful user - Vladimir Popov commented:

Comment by Vladimir Popov yesterday

I just investigated firmware sourses... Stick deflections are added to servo output a bit tricky - automatic output signal is scaled down to leave place for manual signal. It seems Ok, but the algorithm is internally limited - manual signal must not exceed +-400 ms from trimmed value. I do not know why. So, don't move sticks too much...

I think you can ask developers about this limitation. Function stabilize() in Attitude.pde.

In RTL mode sticks are not mixed at all.

So what should we change in order to make it work? Thanks for the help!

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    Hi Yure,

    If you are using APM:Plane 2.74 then you should have a look at the docs on the ELEVON_OUTPUT and MIXING_GAIN parameters. These allow you to setup a virtual elevon mixer in the plane, and set your transmitter to normal aileron/elevator (ie. no elevon mixing). That allows you to get rid of the weird artifacts of the old elevon handling system.

    Cheers, Tridge

  • I upload the newest ArduplaneNG software (from here:http://megapirateng.googlecode.com/svn/branches/arduplane/ ), and I think problem is solved. But didn't fly too much, because I changed the board to HK Pilot 2.5, and working very well!!!

    Use http://downloadsvn.codeplex.com then. Just copy paste the above URL for the arduplane branch and you are good to go.

  • Investigated code myself. So if I change '500' to '225' in lines 369,370 (attitude.pde)

    g.channel_roll.radio_out = elevon1_trim + (BOOL_TO_SIGN(g.reverse_ch1_elevon) * (ch1 * 500.0/ SERVO_MAX));
    g.channel_pitch.radio_out = elevon2_trim + (BOOL_TO_SIGN(g.reverse_ch2_elevon) * (ch2 * 500.0/ SERVO_MAX));

    I got somewhat good servo throws. Don't know if it is the correct way of doing it. I'll fly it today.

    Warning! Do NOT try this yourself - this is not checked at all. Stay tuned for further notice.

This reply was deleted.

Activity

DIY Robocars via Twitter
Sep 9
DIY Robocars via Twitter
RT @chr1sa: We've got another virtual @DIYRobocars race tomorrow at 9:00am PT. Two dozen autonomous cars will compete, four at a time. Ther…
Sep 4
DIY Robocars via Twitter
Sep 1
DIY Robocars via Twitter
Aug 31
DIY Robocars via Twitter
Aug 31
sam liked Jimmy Oliver's profile
Aug 25
DIY Robocars via Twitter
RT @ExplorerRobocar: Sometimes, I am really a big kid!! Having fun with my virtual RC car on the @diyrobocars track 😜😉, by using the « AR R…
Aug 24
DIY Robocars via Twitter
RT @grepLeigh: @donkey_car @unity3d @TensorFlow ~1050 episodes into training, my agent learned to erratically drive in the left lane. 🤖😆 ht…
Aug 24
DIY Robocars via Twitter
RT @EclipseCyclone: Sweet! http://Robotec.ai high performance #ROS 2 @unity3d #CycloneDDS bridge for @AutowareFdn @SVLSimulator now…
Aug 24
DIY Robocars via Twitter
RT @a1k0n: My car had a lot of trouble getting around the track at the last @diyrobocars event -- only one actual finished lap during the r…
Aug 24
DIY Robocars via Twitter
RT @SmallpixelCar: This is the run time map https://t.co/VzykOkUt2G
Aug 24
DIY Robocars via Twitter
RT @SmallpixelCar: Made a lot progress on Warm Spring Raceways track. Almost finished one lap. https://t.co/nUVpufZQyP
Aug 24
DIY Robocars via Twitter
RT @AntonioRobotics: Super fun time seeing these autonomous cars race at @circuitlaunch for the @diyrobocars quarterly meet up! The demolit…
Aug 15
DIY Robocars via Twitter
RT @a1k0n: I thought my dumb localization code was still working at the new @circuitlaunch track, but it was just *barely* working. I shoul…
Aug 14
DIY Robocars via Twitter
RT @DAVGtech: Recording of entire in person @diyrobocars race today @circuitlaunch. Fast forward a couple hours to go straight to the racin…
Aug 14
DIY Robocars via Twitter
RT @SmallpixelCar: This is the run time map. Very noisy Lidar signal https://t.co/bAbeVUMi10
Aug 14
More…