Repository navigation
Conversation
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoMove motor-wizard twitch timing into flight-controller firmware
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
|
RAM / Flash usage vs. base commit
See RAM/flash optimization guide for techniques to reduce usage. |
|
Test firmware build ready — commit Download firmware for PR #12247 252 targets built. Find your board's
|
|
Thanks for this. With the more precise timing, do you think we could further reduce MOTOR_WIZARD_SPIN_MS for safety? My thought is to have the minimum that will reliably twitch the motor, given that we know people WILL run it with props on and the vehicle unsecured, regardless of whether we tell them not to. |
…-wizard # Conflicts: # docs/development/msp/README.md # docs/development/msp/msp_messages.json # src/main/msp/msp_protocol_v2_inav.h
I can test what is minimum value for all ESC FWs, it will not be much less than 100m. I reduced motor spin percent from 10 (in INAV 9) to 8%. Motor with such a lower value has not much power. And maybe it would help not to start immediately motor to 8%, but make it progresive. 0 - 8% in first 50% of duty cycle. |
Thanks! My idea is the safest (minimum) amount to be able to reliably identify which motor is twitching, across a variety of ESCs. Even if the motor doesn't spin smoothly at all, as long as it's clear WHICH motor is being activated. I have a set that doesn't move until about 10% throttle or so. |
|
probably my OCD would not accept not smootly turn :D. I made it progressive, start spinning from 0 to 8%. On the video all motors are 2300kv, 2206 or 2205 + 3s battery, all settings in ESC FWs is default, smees that AM32 has biger "start power" than other ESCs. I tested all main FWs. Motor is easy to stop by hand, so I believe even with propeler, it can't cut skin. It's really weak. For example bluejay is on limit to start turn, maybe we will need a little bit increase max value. But still I think it's save even with proppeler. |
Current motor wizzard is fully driven by configurator. Configurator sends to FC commands to start motor spinning and stop, like:
The correct motor timming depends on timming of MSP queue in inav configurator. I would say right aproach to move motor timming to FC, this PR does it, configurator just sends command
See video of diference if motor is driven by configurator (original), and what does this PR (fix)
https://www.youtube.com/watch?v=muuFdlh54_M
Configurator PR: iNavFlight/inav-configurator#2859
Correct memory change
RAM / Flash usage vs. base commit
6cbfc64— commit29983e8RAM: +8 B (+0.01%)
RAM: +8 B (+0.01%)
TCM: ±0 B (±0.00%)
SRAM1: +12 B (+0.01%)
DTCM_RAM: ±0 B (±0.00%)
ITCM_RAM: +208 B (+1.34%)
RAM: +40 B (+0.03%)