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
RT @chr1sa: My review of the new @NVIDIAEmbedded Jetson Xavier NX in robotics and @DIYRobocars applications https://t.co/O7TfJZhiF9 https:/…
12 hours ago
DIY Drones via Twitter
RT @chr1sa: Somehow I missed this, but last week @Nvidia released a new version of its Isaac robot development framework. Lots of new Lidar…
yesterday
DIY Robocars via Twitter
RT @Smartphone89: DonkeyCar Racing League Korea #donkeycar @diyrobocars https://t.co/mDlHDR1d98
Friday
Jørn Ramnæs liked VIDEO LINK's profile
Friday
Mark Harrison left a comment on Moderators
"Wow, Ning2 looks really great on mobile. I had sort of drifted away as my browse-time went more on my phone, so this is great."
Friday
Hank Deucker left a comment on PIXHAWK
"I am sure most will say not again, Pixhawk telemetry. I do need help and all can be reassured that I have spent many hours scouring the net for useful information. I am not new at quadcopter flying, I started in 2012 and have progressed through many…"
Thursday
DIY Robocars via Twitter
https://t.co/rLmFr8M2UK
Thursday
Hank Deucker left a comment on PIXHAWK
"Tomorrow, I am thinking about the wording at the moment."
Thursday
DIY Drones via Twitter
Welcome to the new DIY Drones design!. You may have noticed that DIY Drones looks a little different today. That's… https://t.co/cg2EmeDGMQ
Wednesday
DIY Drones via Twitter
New! Online Training on Drones for Disaster Response https://t.co/brqRuujjY2
May 26
DIY Robocars via Twitter
https://t.co/8EMCvYW6oz
May 25
DIY Robocars via Twitter
RT @OttawaAVGroup: We are going to try something new this week. We will be having a drop-in style meeting Wednesday @ 7-9pm EST. Pop in and…
May 25
DIY Robocars via Twitter
RT @tawnkramer: Thanks Everyone for another fun virtual race! Amazing Ai racers competing head-to-head, Virtual Makers Fair event. Catch us…
May 23
DIY Robocars via Twitter
RT @make: Find out the latest from @diyrobocars at 10am PT from @chr1sa of @3DRobotics on Virtually Make Faire! #makerfaire #maketogether #…
May 23
DIY Robocars via Twitter
RT @Heavy02011: Join us Saturday online: Virtual Race League: @DIYRobocars Race #2 - Parking Lot Nerds https://t.co/aJUu4sdutx #Meetup via…
May 22
DIY Robocars via Twitter
RT @donkey_car: Yay, we are part of the virtual @makerfaire with @diyrobocars. Come see our race or better yet train a model and race with…
May 21
More…