Saturday, January 31, 2015

OneShot125: Quantitative Testing

Note: this original spoke of the sensor rate being 666. However, this was a mistake and the sensor rates were 500 Hz and 1000 Hz.

There has been a lot of talk about OneShot125 mode for ESCs and how much better you can tune your quadcopter with it. Briefly, this is a mode that uses a pulse width of 125-250 µs instead of the typical 1000-2000 µs. This shorter pulse width allows a higher update rate (up to 2khz). In addition, the recommendation is to update the output as soon as you calculate a new value. This improves the latency of sensor to ESCs in two ways: the synchronous update reduces the latency due to two independent loops and the shorter pulse duration saves another 1.5ms waiting for the falling edge of the pulse. With an update rate of 400 Hz on the PWM outputs that latency has a worse case of 2.5 ms so ultimately you are talking about 4ms latency reduction.

It sounds somewhat unlikely that such a small time delay would make a difference, but at the same time the ESC latency is the ultimate performance bottle neck for quadcopters. With ESC response times getting into the 10-20s of ms, this communication latency can become an appreciable component.

Back in December ernieieft wrote Tau Labs support for it and with autotuning got higher PIDs and felt like it was quite locked in.  Here you can see the outputs from the four channels as well as the interrupt from the MPU9250 on Sparky2. This shows that each time there is a sensor update, shortly after it there is a pulse on the output channels (synchronous updates).

Zooming in, we can see what the latency is from the MPU9250 indicating a sample is ready to actually completing the pulse, and it is about 300 µs. Much better than the worst case 4 ms described above. This is with a short output pulse so in reality the time could go as high as 450 µs.

However, I wanted to quantitatively compare how much specifically OneShot125 mode really makes a difference. Luckily, we have our autotuning algorithm which actually allows monitoring the time constant of the delay from a change in the output to a change in the gyros.

Normal PWM mode

So first I ran autotuning with Seeing Spark and Sparky2 using KISS ESCs in traditional mode. This is with the sensor running at the default rate for Sparky2 (500 Hz).

After three repeats, this is what I got:


Then I cracked SeeingSpark open and soldered the JP1 bridge to enable OneShot mode.

Note: per request I have put the files to make this power distro board on OSHPark. I'll try and make a BOM and assembly guidelines and upload that soon.

Here you can see the outputs running at 500 Hz synchronously to the sensor.

Then popped in a fresh battery, and did a few more sessions of autotuning.

OneShot125 - 1000 Hz sensor rate

I also wanted to see if increasing the sensor rate to further reduce the latency would cause more improvement, so I set it to 1 Khz.

 and ran another three rounds of autotuning.


So of course the punchline. Is there a significant difference between traditional PWM and OneShot mode as measured by the time constant of the response? Yes. Anova shows p < 0.01 for an effect of output type:

Anova results

And the multiple comparison shows that both OneShot tests were significantly different than traditional mode.


Using OneShot mode on this quad results in about a 20% reduction in ESC latency. Even before OneShot, these KISS ESCs were pretty damn fast so it already flew really well. I'm not sure I'll be able to tell the difference in rate mode, but I do believe a better acro pilot than me could. I also didn't run these parameters through the system models to start seeing what the difference in effective control bandwidth will be for the outer loops (e.g. attitude).

It also remains to be seen if there are similar benefits with BLHeli and I believe SimonK has support coming soon for OneShot. I'll probably repeat these tests once I have the right hardware.


  1. Excellent tests, Now you just need to bake it into the next release

  2. Vey nice writeup! Now we should do a blind test to see wether a pilot can tell the difference between the modes ;).

    PS: There is a typo, you wrote 1000-2000ms instead of 1000-2000us.

  3. Great stuff. Feedforward leaving, OneShot entering the scene...

  4. Did you have a chance to test out the bearhugs yet? Would love to see the results

    1. Not yet. Having some weird results with them so far :(

  5. Online Assignment Expert is a milestone-setting assignment help providing company classifying under academics writing of different types. Our trait to make sure that we offer best Online assignment help without any mistakes. The same has one hearts and minds of over a million students around the globe. Our nursing assignment help experts say that this is what you aim for in your studies. We are no different. We have ensured this motto is followed by each of our accounting assignment writing experts, who are also research scholars. Our experts are certified and experienced professionals in the assignment help Australia discipline.

  6. Thanks for all the tips mentioned in this article! it’s always good to read things you have heard before and are implementing, but from a different perspective, always pick up some extra bits of information. Visit@

  7. McAfee Activate - Follow the steps for uninstalling, downloading, installing and activating McAfee antivirus. Visit us, enter the 25-digit activation code, click submit. |

  8. Login or sign up at office setup and download Microsoft Office. Install and activate the setup on your device. Verify the Office product key

  9. Norton setup - Get started with Norton by downloading the setup and installing it on the device. Enter the unique 25-character alphanumeric product key for activation. Check your subscription | |

  10. Many students are undecided about the best nursing essay writing and custom papers online help company to deal with due to the high number of companies that offer similar services.

  11. If you have been wondering who will “Write My Essay 24/7 Services”“write my research paper” or “write my paper” choose us today and avoid poor grades.We reliably provide services at the stated price without hidden charges. Contact us and let us help you at any stage of your Essay Writing Help 24/7.

  12. I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

    kaspersky activation code

    free pogo games

    roadrunner email

    aol mail

  13. Do not wait to get your Legit Research Paper Writing Services. Order your Affordable Term Papers from the Legitimate Essay Writing Services agency. This is an easy process, and all you have to do is to simply contact the agency or fill out the order form.


  14. شكرا معلومات مفيدة يمكنك زيارة ايضا لمعلومات قيمة اخرى قم بزيارة :

    شركة غسيل خزانات بالمدينة المنورة
    افضل شركة تنظيف

  15. The backbone of Term Paper Writing Services company is its writers and ours are the choicest in the industry to ensure that clients acquire the Best Term Paper Services and that will make you collect a high-quality Custom Term Paper Writing Help.

  16. You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I have shared your web site in my social networks!

  17. The modern world is extremely different from what it used to be just a few years ago and it continues to change and evolve every other day. With the advent of technology, our routine lives as well as professional and academic routines have become so much easier and convenient. From tools that help you accomplish complex tasks to the wonderful world of social media that lets you share everything with your friends and family. But while technology has brought a lot of good into our lives, it has also exposed us to a lot of danger.

  18. Thank you so much for spending time to write this blog article, i must say you are a excellent and talented blogger, I Found This Article To Be Very Informative and Helpful, please keep sharing such amazing blogs I am a Accountant from United States of America, Washington Dc, and I Love to read and Write Blog.
    Some Of My Web Blogs Awesome Blog Post Please Feel Free to Check Out My Blog you will find the process of Norton software installation with step by step instructions and much more.

    Keep Sharing will come back to read more,

    Click to Process download and install enter product key activate install help renewals product key

  19. If you are Facing the Problem in your PC and searching any antivirus. don't worry we have Mcafee antivirus I will Provide you full support of McAfee antivirus install and activate to secure your computer.

  20. Much obliged for the post and effort! You should keep sharing even more such information.
    Aol Mail Login

  21. Nice Post, You really give informative information. Thanks for sharing this great article.
    m3m golf estate price list

  22. When it comes to providing best assignment service online, Unique Submission makes sure to complete assignment antecedently to offer scholars
    enough time to proof read the given assignment before submitting it to their tutors/professors. We never compromise to timely delivery and deadlines given by our customers.
    Get The Best Assignment Help From Best Assignment Helpers Online

  23. Most criminology students prefer to use the services of Criminology Essay Writing Services As well as looking for Criminology Research Writing Services because we provide students across the globe with Best Essay Writing Services that are original and authentic.

  24. A debt of gratitude is in order for your understanding for your phenomenal posting.
    Garmin Express

  25. I think I have never seen such blogs ever before that has complete things with all details which I want. So kindly update this ever for us.

  26. Amazon Prime is a first class Television Based App feature giving a great deal of on-request and live films and TV shows, particularly with no ads. Amazon Prime gives clients moment admittance to a few sorts of current shows from all the large communicating networks in the U.S. The enrollment gives supporters boundless motion pictures, current just as past mainstream TV shows. Amazon Prime is a comprehensive amusement channel on Amazon Prime Tv.
    www.primevideo/mytv register code

  27. Interface your gadget to the Internet and go to the App Store.
    Search and "Download" the Amazon prime video application.
    When the document is downloaded and introduced, open the application.
    You will see an alternative – "Register on Amazon site", click on this.
    A 6 digit code will show up on the screen.
    Note down this code cautiously. This is enter code.
    Presently open the Amazon site – and sign in with account subtleties.
    Presently enter the Amazon enactment code and snap on "Proceed".
    You will get the compliment message on your TV screen after the effective enactment.
    Start Enjoying the amazon prime videos on your device.
    If you are facing some issue in that process then you can visit : registration enter code

  28. Get Started with AOL Desktop Gold Download for Windows, 7, 8, 10 and MAC OS.
    Just Follow link &
    Click Download AOL Desktop Gold to start the process :
    Aol Desktop Gold Download

  29. Best method to create your primevideo mytv account through the activation process by You need to follow the instructions to activate loin mytv. If you are viewing Amazon Prime Video on your device go enter code.

  30. Wishing you the most awesome aspect karma for all your publishing content to a blog efforts.This is my first chance to talk this site. I discovered some fascinating things and I will apply to the improvement of my blog.
    youtube video downloader
    download youtube video
    youtube video download

  31. is Amazon online interface to enlist a gadget with the enactment code on the TV screen to watch Prime recordings substance on the gadget that produced the Prime video initiation code. The superb video enactment code interfaces the gadget to the real time feature and registers the gadget to transfer the help when you click on the excellent video application on the gadget.
    Read more…

  32. Home Cleaning Services Near Me
    Cleangic | Home Cleaning Services Near Me | At Home Parlour Services Near Me
    Cleangic provides Commercial Cleaning, Residential Cleaning services in Delhi, PG/Hostel Cleaning, Sanitizing, Room Cleaning, Birthday Decoration, Best Ac Repair, Salon Services and Women Home Parlour Services at your home.
    We are Providing these Below services with Location wise in affordable price:
    Home Cleaning Services in Laxmi nagar Delhi Ncr
    Best Commercial Cleaning service in Laxmi nagar Delhi
    Best Residential Cleaning service in Laxmi nagar Delhi
    Best PG/Hostel Cleaning service in Laxmi nagar Delhi
    Best Sanitizing Service in Laxmi nagar Delhi
    Best Celebration Specials Services in Laxmi nagar Delhi

  33. Explainer Video Company New York
    Explainer videos Services new york | Explainer videos Company
    Explainer videos company are short online marketing videos used to illustrate the product or service of your business. These videos are often placed on a landing page, your website home page, or a prominent product page.

  34. Sling TV Pack Activation Help
    ====================== | Activate Sling Tv | Roku Steps, Sling TV Packages and Sling TV offers you an amazing alternative for cable at a cheap price. You can avail of many live channels including local channels with the Sling TV package subscription. Sling TV is supported on many devices including Roku.

  35. Sling TV Pack Activation Help
    ====================== | Activate Sling Tv | Roku Steps, Sling TV Packages and Sling TV offers you an amazing alternative for cable at a cheap price. You can avail of many live channels including local channels with the Sling TV package subscription. Sling TV is supported on many devices including Roku.

  36. Harness your own profile image. Harness"Preferences". Harness"Payment Method". Today you'll view that the menu which lets you examine your present payment system, change it, or insert a brand new one.

  37. LG's brand new bargain with Tubi to get ad-supported articles on its own smart apparatus arrives just months following the firm revived its business Cope with Xumo -- a Tubi competition recently obtained by Comcast -- to Keep on serving as the motor to get LG Channels, the ad-supported Video-streaming agency on LG clever TVs | enter code |


  38. activate Youtubecom
    Samsung Smart TVs ... to sign in: on your phone or computer,
    go to
    and enter the code you see on your TV.

  39. When will update your site? Im really looking forward for more articles from your site. Keep me posted. Thanks |

  40. AOL Mail account serves a few advantages. It offers email connections up to 25 MB; enormous letter box size; support POP3, SMTP, IMAP, and so forth You can likewise interface your email accounts from other email specialist co-ops like Gmail, Hotmail, and so on This read centers around each essential part of AOL Mail login.

    aol mail login
    aol sign up

  41. instagram
    instagram login
    instagram video download
    instagram download
    instagram reels download
    instagram reels video download
    instagram story saver
    instagram bio for girls
    instagram app
    instagram account delete
    instagram apk
    instagram account
    instagram account hacked
    instagram account delete permanently
    instagram auto liker
    instagram bio
    instagram bio for boys
    instagram bio in punjabi
    instagram bio in punjabi for girl
    instagram bio for boys attitude
    instagram background
    instagram blue tick copy
    instagram captions
    instagram captions for boys
    instagram captions for girls
    instagram captions in punjabi
    instagram create new account
    instagram customer care
    instagram change password
    instagram customer service number
    instagram dp
    instagram download video
    instagram delete account
    instagram download for pc
    instagram download apk
    instagram dp for girls
    instagram delete my account permanently
    instagram email
    instagram emoji
    instagram email id
    instagram engagement checker
    instagram extension for chrome
    instagram engagement calculator
    instagram email address
    instagram earn money
    instagram followers
    instagram followers free
    instagram fonts
    instagram followers increase
    instagram forgot password
    instagram followers hack
    instagram fake followers
    instagram font style

  42. Nagaqq Yang Merupakan Agen Bandarq terbaik , Domino 99, Dan Bandar Poker Online Terpercaya di asia hadir untuk anda semua dengan permainan permainan menarik dan bonus menarik untuk anda semua

    Bonus yang diberikan NagaQQ :
    * Bonus rollingan 0.5%,setiap senin di bagikannya
    * Bonus Refferal 10% + 10%,seumur hidup
    * Bonus Jackpot, yang dapat anda dapatkan dengan mudah
    * Minimal Depo 15.000
    * Minimal WD 20.000
    * Deposit via Pulsa TELKOMSEL

    Memegang Gelar atau title sebagai AGEN POKER ONLINE Terbaik di masanya

    Games Yang di Hadirkan NagaQQ :
    * Poker Online
    * BandarQ
    * Domino99
    * Bandar Poker
    * Bandar66
    * Sakong
    * Capsa Susun
    * AduQ
    * Perang Bacarrat
    * Perang Dadu (New Game)

    Info Lebih lanjut Kunjungi :
    Website : NAGAQQ
    Facebook : NagaQQ official
    WHATSAPP : +855977509035
    Line : Cs_nagaQQ
    TELEGRAM :+855967014811

    Winner NagaQQ
    Daftar NagaQQ

  43. The most effective method to purchase Viagra on the web. Buy Viagra Online and nonexclusive
    sildenafil are physician endorsed drugs, so you'll have to counsel a specialist before purchasing.
    It is very conceivable to purchase Viagra online modest,order Viagra regardless of whether you buy a marked medication.
    To buy Viagra online. Get up to 20% markdown on professionally prescribed medication Viagra 50mg Tablet 2'S on the web.

  44. This is such an amazing post.Are you also searching for capstone writing help we are the best solution for you. We are best known for delivering the best services to students without having to break the bank

  45. Your blogs are great. Read on professional roles and values whatsapp us:+1-(951)-468-9855

  46. Your blogs are great.Are you also searching for Cheap Nursing Writing company? we are the best solution for you. We are best known for delivering cheap nursing writing services to students without having to break the bank.whatsapp us:+1-(951)-468-9855

  47. Is your assignments due in just a few minutes? Almost every student has faced such a situation at least once in their lifetime. With deadlines approaching and so many things to do in such a short period, it is natural to feel disoriented and search for assignment expert help services online. But do not freak out. We Follow the academic standards and format using the instructed referencing style. Hire our experienced assignment expert uk at your allocation and get plagiarism-free writing assistance.