Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

ModalAI Team

Private

Posts


  • VOXL ESC FPV 4-in-1 with Built-in Power Module (MDK-M0138) Issues
    Alex KushleyevA Alex Kushleyev

    Hi @jbiscan21 ,

    The main issue was that the max_rpm_delta was set to zero. Even with PI gains (and max errors) set to zero, you could have had it working with non-zero max_rpm_delta. Let me explain.

    max_rpm_delta term is used to cap the target rpm relative to the current rpm. This is done to prevent very aggressive motor behavior, especially if motor is spinning very slowly because it is tangled in grass, etc, allowing unlimited max_rpm_delta could cause motor to burn out or de-sync.

    The RPM controller has a feed-forward term and feedback terms.

    • feedback terms are Proportional and Integral with corresponding gains and error terms (k * e).
    • feed-forward term comes from the calibration : for desired RPM, the calibration tells the ESC what PWM (duty cycle) to apply
    • there is also battery voltage compensation, so that even if voltage is changing, the feed-forward curve will still be accurate.

    The rpm error is computed like so : rpm_error = rpm_desired - rpm_current, which standard. But then it is capped with the max_rpm_delta, so if that is equal to zero, then rpm_error will be zero. One subtle detail is that the rpm_error is also used to look up the desired rpm feed_forward : rpm_for_feed_forward_term = rpm_current + rpm_error (roughly speaking), so having the max_rpm_delta set to zero, caused the motor to be always stuck at minimum rpm.

    So you could still have zero P and I terms and the motor would use a feed forward term with voltage compensation and it would provide a nice and soft response (similar to traditional ESC). Adding P and I will make the response better than a traditional ESC.

    In fact when using a new motor + prop, you should start off with P and I gains zero, just use a feed forward term to test at first and then you can increase the ESC's responsiveness by giving it more max_rpm_delta and also P and I terms. However, that is more advanced tuning should be done using voxl-esc tools first in order ensure ESC response stability (we could discuss that in another thread).

    To answer your earlier questions:

    • You could use pwm (power) control, but i have never used it with PX4. Perhaps @eric-katzfey can comment about that
    • the ESC calibration for modalai ESCs calibrates the feed-forward term (as described above), and has to be done with a propeller. Yes, in flight, the air dynamics will change due to many factors such as air pressure, temperature, air speed, etc, etc, but the job of RPM controller is to keep a desired rpm. A higher level controller could potentially estimate the thrust vs rpm is changing due to air temperature or pressure difference from the calibrated response (outside of the scope of ESC's rpm controller).

    Alex

    ESCs

  • voxl2 Mini SDK 1.6.5 and 1.6.6 not available on modalai.filecloudonline.com
    modaltbM modaltb

    Hi @markmst email me at devops @ modalai. com and I can get you a link/info.
    We've not validated SDK1.6.5+ on some targets so haven't released publicly to avoid folks loading on untested SKU.

    VOXL SDK

  • voxl-ardupilot crashing on mission planner reconnect
    Alex KushleyevA Alex Kushleyev

    @dan-jennings , I would be happy to help you with the Hadron Issues on newer SDKs. There were no changes to the Hadron (Boson + OV64B) functionaliy recently.

    Please make a new post for this issue and provide the following details:

    • which SDK is working and which SDK(s) are not working for Hadron
    • detailed description of the issue, any useful info from camera server or dmesg?
    • how is Hadron connected to VOXL2? which interposers and which VOXL2 camera port (J6, J7, or J8)
    • please provide voxl-camera-server.conf that you are using
    • please provide a list of sensormodule.bin and *so files in /usr/lib/camera

    Thank you

    Alex

    Ask your questions right here!

  • Debugging steps for: "Pre-arm Check Failure: Compass Sensor 0 Missing"
    Eric KatzfeyE Eric Katzfey

    Can you plug the cable from the working drone into the other one? That could tell you if it's the cable.

    Ask your questions right here!

  • Radar Compatibility and connections clarification.
    VinnyV Vinny

    Hi @jetson-nano
    Yes, the M0062 debug board provides a USB Hub for these types of use cases.

    However, be aware that the VBUS support on that platform is only 1A and may not cover all Doodle TX power modes.
    Please see this note: https://docs.modalai.com/cable-datasheets/#mcbl-00085

    e9d1874c-d8a5-4362-8f66-cf78c8943164-image.jpeg

    Ask your questions right here!

  • voxl-ardupilot crashing on mission planner reconnect
    Eric KatzfeyE Eric Katzfey

    My only guess at this point is that it may be timing related. I would try each step, wait a long time, then try the next step. Maybe something is taking too long and the system is not yet ready for the next step. But that's just a guess.

    Ask your questions right here!

  • voxl-ardupilot crashing on mission planner reconnect
    Eric KatzfeyE Eric Katzfey

    I'll probably have to recreate this and then debug it. I won't be able to do that until I get back from travel the week after next. Here's something from Codex that you could try:

      With Mission Planner closed, add this to its config.xml:
    
      <UseMavFtpParams>False</UseMavFtpParams>
    
      Then restart Mission Planner and repeat the exact sequence. This forces the legacy MAVLink parameter protocol instead of the packed MAVFTP download.
    
      Interpretation:
    
      - Failure disappears: strongly implicates MAVFTP burst traffic and the QURT/SLPI backpressure path.
      - Failure remains: investigate the broader reconnect/SLPI lifecycle rather than MAVFTP specifically.
      - QGroundControl works consistently: also supports the Mission Planner MAVFTP-trigger theory, though it would not prove MP is defective.
    
    Ask your questions right here!

  • VOXL ESC FPV 4-in-1 with Built-in Power Module (MDK-M0138) Issues
    Alex KushleyevA Alex Kushleyev

    @jbiscan21 , can you also share the esc params that you uploaded to the ESC after ESC calibration ? I am assuming you went through this procedure : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/master/voxl-esc-tools/calibration.md

    From the log I see that all 4 motors spun up but the rpm is capped at about 2200 rpm, which may mean you ESC tuning params are incorrect.

    Also note that after arming, your drone immediately commands about 10000 rpm, which is not great, because that would be a sudden jump.. you may want to check your flight mode to avoid this.

    1d5d52fc-2b98-4178-b5c9-0d66e79cbf78-image.jpeg

    a7217253-aca1-474e-ab18-a019bd517185-image.jpeg

    ESCs

  • Inexpensive option for practicing before using Starling 2 Max
    Eric KatzfeyE Eric Katzfey

    Also, there are many good simulators out there.

    Support Request Format for Best Results

  • Running 4 Ar0144s on M0188
    Alex KushleyevA Alex Kushleyev

    Yes, I believe the system image v1.8.08 has all the above changes built applied. Easy way to confirm

    • voxl-camera-server -l and check the printed min gain. it should be 100 not 54. if you see 100, then you have the latest com.quite.tuned.default.bin
    • exposure control improvements should also be in there as of v1.8.05 (com.qti.sensor.ar0144.so). this is harder to test, but sdk 1.6.5 should have the latest. To test, cover up the camera to drive the exposure and gain to the max and then uncover and you should observe smooth transition, no jumps in image brightness.

    it looks like we are not shipping com.qti.sensormodule.ar0144_fsin_3.bin in the system image right now, but like i mentioned earlier we are moving towards putting the camera drivers into the voxl-camera-server repository.. but for now you will need to manually copy that one.

    Alex

    VOXL 2 Mini

Member List

adminA admin
modaltbM modaltb
Chad SweetC Chad Sweet
tomT tom
James StrawsonJ James Strawson
Hector NevarezH Hector Nevarez
Paul NusserP Paul Nusser
Matthew BorowskiM Matthew Borowski
zauberflote1Z zauberflote1
Jaroslav RichtersJ Jaroslav Richters
Maxwell SchaeferM Maxwell Schaefer
JacobJ Jacob
wilkinsafW wilkinsaf
N Nathan Raras
Zachary Lowell 0Z Zachary Lowell 0
Zachary LowellZ Zachary Lowell
J Jacob Camarillo
Dobry KolaczD Dobry Kolacz
Cliff WongC Cliff Wong
Jeremy SchmidtJ Jeremy Schmidt
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups