VOXL ESC Mini
-
Hi,
Model: VOXL ESC Mini 4-in-1 with Built-in Power Module
Firmware: modalai_esc_firmware_m0129_3_v0_39_RC10_eb6fb500.binI'm not using all of the ESC outputs and I'd have set them to disable.
Although, the current firmware on the PX4 does not support the disable feature. I was wondering if there was a particular reason that this capability does not exist? -
@0x45 , there is no particular reason. I think we just assumed that all 4 motors would be used. Is this something that is needed for your application? it is not a limitation of the ESC firmware itself, instead the PX4 driver for it.
-
For my application it would be preferred. I saw where it is in the PX4 driver - I just was hesitant to make the changes and wanted confirmation from the ModalAi team that there isn't any issues on the ESC side if I were to make the change.
Thanks for the speedy reply and I'll proceed on if there is no issues.
-
@0x45 I believe that if you allow DISABLED to be the setting for the channels 1-4, then the mixer will output 0 for those channels (based on this : https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L56)
My guess is that when you arm, the disabled channels will just stay at zero, causing the voxl esc driver to just send 0 rpm target for that ESC channel.
The worst that could happen is that mixer could send MAX_RPM to the disabled channel (but i don't see how that would happen).
If you want to try it out, i suggest making the change to allow the DISABLED actuators and then in
updateOutputs
just print the values and force them to zero before sending out to ESC in order to avoid any unexpected rpm values to be sent out : https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L1162I think you can just comment out this lines:
https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L318 and
https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L336 (ret = PX4_ERROR;
) -- this will disable the errorsIf you want to wait a few days, i can try it out sometime next week..
-
@Alex-Kushleyev
Sounds good I'll give it a shot. Thanks! -
@0x45 if you get it working and you would like to share your change, we can test and incorporate into the driver. That could potentially make it easier for you to not have to use a custom px4 build for your application.