Tricopter yaw servo reversed

Hi

Does anyone know how to reverse the output from APM to the servo (tricopter)? I
think that I can fix this by rotating the servo, but it might be easier to just
change something in the code, since the DIP switches are not used anymore.

 

**The APM is mounted correctly; it's only the output to the yaw servo that is reversed
i.e. stabilize corrections are reversed, but manual input from the transmitter is correct.**



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

Join diydrones

Email me when people reply –

Replies

  • Hey, yes you can reverse the yaw. Did you come right?

  •  

    OK. Just for completeness, and to make it easier for others coming across this. This is the code fix:

     

    #if FRAME_CONFIG == TRI_FRAME
    // servo Yaw
    g.rc_4.calc_pwm();

    if(g.rc_4.get_reverse() == true)
    {
    APM_RC.OutputCh(CH_7, ( (-1 * (g.rc_4.radio_out - g.rc_4.radio_trim) ) + g.rc_4.radio_trim ) );

    }
    else
    {
    APM_RC.OutputCh(CH_7, g.rc_4.radio_out);
    }
    #endif

     

    At line 831 in 2.0.38 in the ArduCopterMega.pde tab

    This should let you reverse channel 4 in the planner by putting in a '-1' which will reverse the way the copter compensates with the yaw gyro.

    Thank you Don for the fix!

  • i have try to change CH4_rev to -1, the ruder can reverse.

    but my 3Cs is still rotate yaw to left

    I think, i must reverse the yaw gyro.

    i use prop. CCW for left front and back. and CW for right front

    any idea?
  • Ahhh! Just got it to work! You need to reverse the RC4 channel NOT the RC7 -- RC4 is the input for yaw on a tricopter. You reverse the channel by replacing 1 with -1 as per the APM manual. It would be nice if a revision of this page http://code.google.com/p/ardupilot-mega/wiki/Reversing was in the ACM manual.
  • I tried changing the value to/from: 1, 0, -1 -- there is no diffrnce between either of them. Maybe this function is disabled/not used in ACM2?
  • It's an anolog servo. Where about is the RC7_REV - I can't seem to find it?
  • can we set reverse servo from configurator AMP by change value of RC7_REV?
  • Developer

     

    To keep things simple and if you have a digital servo, then you can program it for reverse operation.

This reply was deleted.

Activity

DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
yesterday
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
yesterday
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
yesterday
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars @donkey_car virtual AI car race is starting in 15 minutes! Watch it live on Twitch https://www.twitch.tv/mossmann3333 htt…
Saturday
DIY Robocars via Twitter
RT @chr1sa: Don't miss our monthly @DIYRobocars @donkey_car virtual AI car race tomorrow at 10:00am PT live on Twitch. Head-to-head racing…
Friday
DIY Robocars via Twitter
RT @sparkfun: Our completed tutorial on building an @NVIDIA Jetson Nano-powered @Sphero RVR gets your bot up and running via teleoperation…
Thursday
DIY Robocars via Twitter
RT @SmallpixelCar: Freeway test https://t.co/4V5tV9lhIP
Jul 29
DIY Robocars via Twitter
Very small autonomous cars racing, thanks to an overhead camera: https://control.ee.ethz.ch/research/team-projects/autonomous-rc-car-racing.html
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
RT @chr1sa: Don't miss our virtual AI car race this Saturday! Real developers + virtual cars =🏎️🏎️🏎️ Head-to-head battles with thrills, sp…
Jul 28
DIY Robocars via Twitter
Jul 27
DIY Robocars via Twitter
RT @usashirou1: Jetson nano by Isaac Kaya #jetson https://t.co/Mu1N0CyQkN
Jul 23
DIY Robocars via Twitter
RT @GPUsolution: JetRacer mady by Iflytek company #JetsonNANO #Nvidia https://t.co/MimTymIwge
Jul 23
DIY Robocars via Twitter
RT @openmvcam: I love this: Mega or Mini? Image Classification on the 1MB OpenMV Cam H7 by Ish Ot Jr. in OpenMV, Edge Impulse, Internet of…
Jul 23
DIY Robocars via Twitter
RT @RoboticMasters: This is looking pretty good... but still needs a bit more refinement. Pure OpenCV Turning Sign Detection. No Tensorfl…
Jul 23
More…