{"id":4313,"date":"2015-09-07T05:46:29","date_gmt":"2015-09-07T10:46:29","guid":{"rendered":"http:\/\/www.plastibots.com\/?p=4313"},"modified":"2017-05-27T06:30:37","modified_gmt":"2017-05-27T11:30:37","slug":"in-flight-rate-profile-changes-cleanflight","status":"publish","type":"post","link":"https:\/\/www.plastibots.com\/index.php\/2015\/09\/07\/in-flight-rate-profile-changes-cleanflight\/","title":{"rendered":"In-Flight Rate Profile Changes &#8211; Cleanflight"},"content":{"rendered":"<p><a href=\"http:\/\/www.plastibots.com\/index.php\/2015\/09\/07\/in-flight-rate-profile-changes-cleanflight\/cfdualprofileswc\/\" rel=\"attachment wp-att-4323\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-4323 size-thumbnail\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWc-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>As I gain more experience flying, I want to have the ability to swap rate profiles while in flight. \u00a0Some days I want easy flying, while others I want things a little more aggressive so I can do flips etc. \u00a0Cleanflight has the ability to set profiles in the PID Tuning tab. \u00a0You can set different PID values as well as RC Rate etc and save them to 1 of 3 profiles. \u00a0 Values on the Receiver Tab (i.e Roll Rate, Pitch Rate) will change with each profile as well. \u00a0Once I had that nailed, I then dug into setting the AIL toggle switch on my Turnigy 9x so I could use it to flip between Profiles 1 and 2.<\/p>\n<p><!--more--><\/p>\n<p><strong>Notes:<\/strong><\/p>\n<ul>\n<li>This set-up has PPM, so all my channels (8) go through on wire from the receiver to the Flip32+. Should not affect the approach below, but thought it would be worth noting.<\/li>\n<li>I&#8217;m using \u00a0Turnigy 9x (with ER9x), <a href=\"http:\/\/www.plastibots.com\/index.php\/2015\/08\/29\/frsky-dht-8ch-frsky-d4r-ii-turnigy-9x-diy-install\/\" target=\"_blank\">modded with a FrSky DHT transmiter<\/a>, and a FrSky D4R-II receiver. \u00a0My flight controller is a Flip32+ (10DOF) with Cleanflight.<\/li>\n<li>Cleanflight v1.8.1 has a glitch in it when testing changes using the Refresh button. \u00a0When toggling rate profiles via the TX and refreshing the interface, the Profile selection does not change (even though the values do). \u00a0Take note of this in Step 4 below.<\/li>\n<li>Details on <a href=\"http:\/\/openrcforums.com\/wiki\/index.php\/Er9x_user_guide#Mixer_5.2F12\" target=\"_blank\">Er9x Mixer settings<\/a>.<\/li>\n<\/ul>\n<p><center><a href=\"http:\/\/www.banggood.com\/Wholesale-Toys-and-Hobbies-c-133.html?utm_campaign=ToysHo&#038;utm_content=Klaus&#038;p=R90804949020201412E4&#038;bid=32548&#038;utm_design=51\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/img.banggood.com\/deals\/affiliate_member_banner\/bac4cbb6173335e862a1b3df635ee3ba13.jpg\" \/><\/a><\/center><br \/>\n&nbsp;<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<div id='gallery-1' class='gallery galleryid-4313 gallery-columns-1 gallery-size-medium'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW1.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW1-300x200.jpg\" class=\"attachment-medium size-medium\" alt=\"\" aria-describedby=\"gallery-1-4322\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW1-300x200.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW1-480x320.jpg 480w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW1.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-4322'>\n\t\t\t\tStep 1:  Mixer &#8211; Select the next available channel and click Menu to edit the mix.  In this case, we will be setting up the mix on the AIL toggle switch (far right front on the 9x).  \n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW2.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW2-300x200.jpg\" class=\"attachment-medium size-medium\" alt=\"\" aria-describedby=\"gallery-1-4321\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW2-300x200.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW2-480x320.jpg 480w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW2.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-4321'>\n\t\t\t\tSet the Source to FULL, Weight to 50, Offset to -50, and Switch to AIL.   The reason for doing this is to have the value passed by the toggle (in off position) to be less than 1500 in Cleanflight, and then at ~1500 when toggled on.  Since there are 3 profile options in Cleanflight, it assigns the 1st to < 1500, 2nd to 1500 and 3rd to > 1500.  With these settings, this would allow Profiles 1 and 2 to be selected when toggling the switch from off to on.  If it were a 3 position switch, you would want a similar set-up but want the value to swing from ~900 all the way up to ~2000 which would allow the selection of all 3 profiles. In this case, your weight would be 100 and offset would be near -100.  You can play with this by changing these values and watching them on the Receiver Tab in Cleanflight.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW3.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW3-300x200.jpg\" class=\"attachment-medium size-medium\" alt=\"\" aria-describedby=\"gallery-1-4320\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW3-300x200.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW3-480x320.jpg 480w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSW3.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-4320'>\n\t\t\t\tShowing Switch set to AIL.  Note that all other settings can be left at their default values.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWc.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"219\" src=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWc-300x219.jpg\" class=\"attachment-medium size-medium\" alt=\"\" aria-describedby=\"gallery-1-4323\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWc-300x219.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWc.jpg 1001w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-4323'>\n\t\t\t\tStep 2: Open Cleanflight, connect to your FC, and go to the Receiver Tab. Ensure you have the battery plugged in as well.  Check that the AIL value changes in Cleanflight.  In my case it goes from about 998 to 1500.  (The numbers don&#8217;t have to be exact)\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWd.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"219\" src=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWd-300x219.jpg\" class=\"attachment-medium size-medium\" alt=\"\" aria-describedby=\"gallery-1-4324\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWd-300x219.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWd.jpg 1001w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-4324'>\n\t\t\t\tStep 3:  Go to the Adjustments tab.  Check the box, select Aux 3, set the range to be full (if you toggle the Aux, you should see the little yellow line move back and forth).   Select Rate Profile Adjustment,  using Slot 1, and select Aux 3 in the last drop down.  Essentially, this tells it to watch Aux 3 for change, and apply that change as Aux 3.  Note: The channel selected here should match the channel you set-up on your TX and tested in the previous step.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWe.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"251\" src=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWe-300x251.jpg\" class=\"attachment-medium size-medium\" alt=\"\" aria-describedby=\"gallery-1-4364\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWe-300x251.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWe.jpg 1001w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-4364'>\n\t\t\t\tStep 4:  Go to the CLI tab.  Type in dump rates.   You will see your current rateprofile (i.e rateprofile 0). I suggest you start with rateprofile 0.  If not showing, type rateprofile 0 to change it. Then type dump rates to see values for this profile.  You can now use commands to change each item.  For example, type &#8220;set rc_rate = 100&#8221; to change the value to 1.00.  Continue to do this for the ones you want to change. You can see the changes by typing dump rates at any time.  You should see your changed values. When done, type save to commit the settings to the current rate profile. Now switch to rate profile 1. Type rateprofile 1 hit enter, then type dump rates to see the values for this profile.  Follow the steps above to change it&#8217;s rates. Don&#8217;t forget to save when done.  When complete, check to ensure both profiles have the rates you entered.  type rateprofile 0, hit enter, type dump rates and check the values. Do the same for profile 1.  After you are done, click over to the Receiver tab.  Your FC will reboot, so it may take a few seconds.\n\nNote: When you look at the PID tab, you will only see Profiles 1,2,3 (you dont see 0). Dont worry about this as it seems buggy in 1.8.1. What is key is that rate profile 0 will be your default (toggle off or initial position), and then as you toggle down, it will go to the next profile. \n\nTip: Earlier, I tried changing these settings in the PID and Receiver tab interface. Although it seemed like it worked, I later found they did not save properly.  After powering everything off and then back on, the settings were not as expected.  I suspect this will be fixed at some point. For the time being, use the CLI as noted here.\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWb.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"219\" src=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWb-300x219.jpg\" class=\"attachment-medium size-medium\" alt=\"\" aria-describedby=\"gallery-1-4318\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWb-300x219.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWb.jpg 975w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-4318'>\n\t\t\t\tStep 5:  Now that you have made the changes, it&#8217;s time to see them working.  Ensure you have your transmitter powered, a battery plugged into your quad (ensure your props are off before doing this!!!!).  You should now be able to toggle the switch on the transmitter, and click the refresh button during each toggle. You should see the RC Rate and Expo values changing between the values you set on the 2 profiles.  Go over to the PID tab and do the same. You should see the rates changing there.   If this works, you now have the ability to change your flight characteristics in-flight!\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualRateProfileChart.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"70\" src=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualRateProfileChart-300x70.jpg\" class=\"attachment-medium size-medium\" alt=\"\" aria-describedby=\"gallery-1-4366\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualRateProfileChart-300x70.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualRateProfileChart.jpg 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-4366'>\n\t\t\t\tHere&#8217;s a chart of profiles that I am playing around with.  I am still learning to fly and wanted to keep track of flight profiles that have been suggested for different levels, and then try each of them and adjust as my skills develop.  This will likely change (currently as of Sept 2015)\n\t\t\t\t<\/figcaption><\/figure>\n\t\t<\/div>\n\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" title=\"In-Flight Rate Profile Changes - Cleanflight\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/MQE8SwRiIgg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I gain more experience flying, I want to have the ability to swap rate profiles while in flight. \u00a0Some days I want easy flying, while others I want things a little more aggressive so I can do flips etc. \u00a0Cleanflight has the ability to set profiles in the PID Tuning tab. \u00a0You can set different PID values as well as RC Rate etc and save them to 1 of 3 profiles. \u00a0 Values on &hellip; <a href=\"https:\/\/www.plastibots.com\/index.php\/2015\/09\/07\/in-flight-rate-profile-changes-cleanflight\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":4323,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[136,6,19],"tags":[134,95,138,137],"class_list":["post-4313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cleanflight","category-dyihacks","category-remote-controlled","tag-cleanflight","tag-quadcopter","tag-rate-profile","tag-rc-rate","has_thumb"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/CFDualProfileSWc.jpg","jetpack_shortlink":"https:\/\/wp.me\/pK41j-17z","jetpack_sharing_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/4313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/comments?post=4313"}],"version-history":[{"count":0,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/4313\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/media\/4323"}],"wp:attachment":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/media?parent=4313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/categories?post=4313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/tags?post=4313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}