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 Robocars via Twitter
Apr 27
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
RT @f1tenth: Sliding (autonomously) into the weekend like ... 🤖😎 #f1tenth #robots #AutonomousVehicles @OpenRoboticsOrg @NVIDIAEmbedded @Aut…
Apr 25
DIY Robocars via Twitter
RT @chr1sa: One of the problems with autonomous car racing is that watching software drive is not a very exciting spectator sport. To help…
Apr 25
DIY Robocars via Twitter
RT @SmallpixelCar: Replaced AGX Xavier with @NVIDIAEmbedded Jetson Xavier NX. Now both cars look fast and clean https://t.co/jlcoY2EjZf
Apr 25
DIY Robocars via Twitter
RT @chr1sa: Yesterday we had a record number of competitors (36) in our monthly @DIYRobocars virtual autonomous car race. We kept it going…
Apr 25
DIY Robocars via Twitter
Apr 16
DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
Apr 11
DIY Robocars via Twitter
RT @DAVGtech: And now available with LiDAR 🔥 https://twitter.com/Heavy02011/status/1381137016381964293
Apr 11
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #9 - #ParkingLotNerds #thunderhillracetrack, CA Join us for the next race April 24th,…
Apr 11
DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Apr 7
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Apr 7
DIY Robocars via Twitter
@jetdillo @circuitlaunch Actually the second *in person* event in a year. We do virtual races every month
Apr 2
DIY Robocars via Twitter
Update: we're moving it back one day to Sunday (the 4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
@GrantEMoe @circuitlaunch Update: we're doing it on Sunday (4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
RT @chr1sa: Maybe we should have a mini @DIYRobocars race in our lower school's playground https://t.co/xLFeua1R6X
Mar 29
More…