Code Monkey home page Code Monkey logo

Comments (6)

SirAlex avatar SirAlex commented on May 24, 2024

+1
To calibrate my Simonk ESCs, I need to lower Throttle very fast.

from ardupilot.

SirAlex avatar SirAlex commented on May 24, 2024

Just add in radio.pde

  // Set 50Hz PWM rate
  motors.set_update_rate(50);

before output_min() at this block

    }else{
        // did we abort the calibration?
        if(g.esc_calibrate == 1)
            g.esc_calibrate.set_and_save(0);

        // Set 50Hz PWM rate
        motors.set_update_rate(50);

        // send miinimum throttle out to ESC
        output_min();
    }

Code checked on 2.9, works fine with my Simonk ESC

from ardupilot.

rmackay9 avatar rmackay9 commented on May 24, 2024
 Thanks for the report and code snippit.

SirAlex,
Are you sure we should slow it down at that point? It seems to me that you'll end up with a 50hz motor rate when you haven't done the ESC calibration. I think we should instead put it into the init_esc() function in setup.pde.
I've made this change in trunk...maybe someone could give it a try?

from ardupilot.

SirAlex avatar SirAlex commented on May 24, 2024

Sorry, Actually I'm added code there:

        }else{
            cliSerial->printf_P(PSTR("ESC Calibration active: passing throttle through to ESCs.\n"));
            // clear esc flag
            g.esc_calibrate.set_and_save(0);

            // Set 50Hz PWM
            motors.set_update_rate(50);

            // block until we restart
            init_esc();
        }

Yes, your code changes must work, but I'm not tested it.

from ardupilot.

rmackay9 avatar rmackay9 commented on May 24, 2024

Ah, excellent. should be equivalent to what i've checked into master so we should be good for 2.9.1. txs again.

from ardupilot.

zmoothrc avatar zmoothrc commented on May 24, 2024

Confirming closed, works as intented.

from ardupilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.