Hello, I was curious if there is a specific reason CP_GUIDE_ANG is set to 0. Does it not work well if set to other values?
Contributor
Posts
-
CP_GUIDE_ANG -
VOXL 2 on SDK 1.8: Spektrum satellite - input_rc never publishedVOXL 2 on SDK 1.8: Spektrum satellite via the Sentinel Spektrum Bind Board, input_rc never published
Summary
On a VOXL 2 with SDK 1.8 (voxl-px4 1.18.0-1.0.9) and
RC=SPEKTRUM, a bound Spektrum SPM9745 DSMX
satellite connected through the Sentinel Spektrum Bind Board (J10 + J19) produces no RC input:
px4-listener input_rcreports "never published". Thespektrum_rctask starts without error, but
unlikecrsf_rcit never logs opening a UART. We read on the forum that Sentinel/SDK 1.5.0 was the
last tested Spektrum setup and that later SDKs changed GPIO defaults. We would like to know whether
Spektrum RC is still supported on SDK 1.8 and what is needed to make it work.Setup
Item Value Flight computer VOXL 2 (QRB5165), board previously used in a Sentinel (Sentinel param files and logs on the device) VOXL SDK 1.8.0 voxl-px4 1.18.0-1.0.9 voxl-px4-params 0.9.35 Transmitter Spektrum DX6e Receiver Spektrum SPM9745 DSMX remote receiver (satellite) Adapter ModalAI Sentinel Spektrum Bind Board, connected to VOXL 2 J10 (pins 1 and 6) and J19 (pins 9, 11, 12) /etc/modalai/voxl-px4.confAIRFRAME=MULTICOPTER,GPS=AUTODETECT,RC=SPEKTRUM,ESC=VOXL_ESC,POWER_MANAGER=VOXLPM,DAEMON_MODE=ENABLE,SENSOR_CAL=ACTUALWhat we see
- The satellite is bound: its LED is solid with the DX6e on and dark with the DX6e off.
voxl-px4-startrunsqshell spektrum_rc start(no-dargument). The journal shows
Creating pthread spektrum_rc_main,Successfully created px4 task PX4_spektrum_rc_mainand
Ok executing command: spektrum_rc start. No error follows.px4-listener input_rcreportsnever published, also after a full power cycle (battery removed).px4-qshell spektrum_rc stop, thenpx4-qshell spektrum_rc start -d 7: same result.- No
SerialImpl"opened UART" line appears forspektrum_rc, neither at boot nor after the manual
start. For comparison, withRC=CRSF_RAWon the same board every start logs
[SerialImpl] Successfully opened UART 7 with baudrate 420000. The other serial devices also log
their opens (ESC on UART 2 at 2000000, GPS autodetect on UART 6). px4-qshell spektrum_rc statusandpx4-qshell spektrum_rc(no arguments) return
cmd returned with: 1/Command failed, so we cannot see the default device or the driver state.
Wiring continuity check (multimeter, receiver plug through the bind board to the VOXL 2):
receiver pin 1 (data) to J19 pin 11, receiver pin 2 (GND) to J19 pin 12, receiver pin 3 (3.3 V) to
J19 pin 9. J10 pins 1 and 6 also go into the bind board. The receiver is powered (its LED works), so
power and ground are correct, and the remaining line, data, reaches J19 pin 11 (RC UART RX).Questions
- Is Spektrum RC (
spektrum_rcon the DSP) still supported on SDK 1.8 / voxl-px4 1.18? - Which UART does
spektrum_rcuse by default on VOXL 2, and does it log when it opens it? Is
-d 7the right argument for J19? - Does the Sentinel Spektrum Bind Board need a GPIO set (power enable or routing) on newer SDKs, and
if so, which GPIO and value? - Is there a supported way to bind from the VOXL 2 on SDK 1.8 (e.g. a bind command using the J10
power line)? - If Spektrum is no longer supported, what is the recommended RC setup for a VOXL 2 with this
transmitter?
What we can provide, if needed
- Full
journalctl -u voxl-px4output from boot. px4-param showoutput and the PX4 parameter file.- Photos of the bind board and its wiring to J10 and J19.
-
M0117-1 ESC Reports too high voltageM0117-1 ESC reports about 20% too high battery voltage, and the voltage used for control differs from the reported one
Summary
On a VOXL 2 with the VOXL 4-in-1 ESC (M0117-1, firmware 39.26), all four ESCs report a battery
voltage of about 19.65 V while the pack measures 16.28 V with a multimeter. After calibrating with
voxl-esc-calibrate.py, the RPM tracking test overshoots the commanded RPM by 8-12 %. The duty cycle
the firmware applies at runtime implies it uses a bus voltage of about 17.5 V, which is neither the
reported 19.65 V nor the measured 16.28 V.We would like to know which voltage the firmware really uses for control, whether the reported value
is scaled incorrectly on this board or firmware, and how to calibrate so that calibration and runtime
agree.Setup
Item Value Flight computer VOXL 2 (QRB5165) VOXL SDK 1.8.0 ESC version 34: ModalAi 4-in-1 ESC (M0117-1), IDs 0 to 3ESC firmware version 39.26, hash dbd00c41; bootloader version 183, hash25317f42voxl-esc tools "tools bin version: 1.10", Python 3.6.9 UART /dev/slpi-uart-2, 2000000 baudBattery Tattu R-Line V3 2000 mAh 4S1P 120C Motor T-Motor F1408 KV2800 (version I), 12N14P (7 pole pairs) Propeller Gemfan Hurricane 4023, 3-blade Params file esc_params_generic_m0134.xml(voxl-esc 1.6.5 package) withnum_cycles_per_rev= 7,vbat_nominal_mv= 15200,motor_kv= 2800,spinup_type= 1,spinup_bemf_comp= 1,baud_rate= 2000000,kp=ki= 0,max_rpm_delta= 2000Only the motor on ESC ID 2 is connected. Props are on, the drone is clamped, PX4 is stopped
(voxl-esc enable_bridge).1. Reported voltage does not match the measured voltage
-
Multimeter at the battery input of the ESC (and at the power module input): 16.28 V.
-
Cell checker: about 4.10 V per cell (about 16.4 V).
-
./voxl-esc-spin.py --id 255 --power 0(no motor spinning, current about 0 A), all four ESCs:ESC ID Reported voltage 0 19.63 to 19.66 V 1 19.62 to 19.66 V 2 19.62 to 19.66 V 3 19.60 to 19.64 V -
During the motor tests below the reported voltage stays at 19.62 to 19.66 V from 0.05 A up to
about 18 A. The pack sags little at this current (120C), so we cannot tell from this alone whether
the reading follows the real voltage.
Reported / measured = 19.65 / 16.28 = 1.207 (difference 3.37 V). All readings so far were taken at
this one pack voltage, so we cannot yet say whether the error is a constant offset or a scale
(gain) error. We can measure at other supply voltages if that helps (see the end of this report).Cross-check with PX4 running (
voxl-px41.18.0-1.0.9, ModalAI power module,POWER_MANAGER=VOXLPM,
BAT1_SOURCE= 0, motors idle):battery_status.voltage_vfrom the power module reads 16.39 to
16.59 V, in line with the multimeter, whileesc_statusreports 19.63 to 19.65 V on all four ESCs at
the same time. So the power module and the multimeter agree, and only the ESC reading is off.2. Calibration (reported voltage used by the script)
./voxl-esc-calibrate.py --id 2 --pwm-min 10 --pwm-max 95(no errors, no RPM jumps in the
console). The plotting step was skipped because theplotlymodule is missing on the VOXL. Result:pwm_vs_rpm_curve_a0 = 407.807609363 pwm_vs_rpm_curve_a1 = 0.391442489571 pwm_vs_rpm_curve_a2 = 1.0869043016e-05Selected points from the calibration log (reported voltage about 19.65 V):
POW (%) RPM Current (A) 10 3838 0.06 31 10910 1.08 52 16900 3.75 70 21620 8.05 94 26320 15.05 voxl-esc-spin.py --id 2 --power 100 --ramp-time 3.0 --timeout 3.5reaches about 27700 RPM at
about 18 A. ESC temperature stays between 36 and 40 C in all runs.3. RPM tracking with these coefficients overshoots
The coefficients above were uploaded (
min_rpm= 3800,max_rpm= 25000). Then
./voxl-esc-spin.py --id 2 --rpm <rpm> --ramp-time 2.0:Commanded RPM Settled RPM Error Applied PWR (%) PWR expected from the curve at 19.65 V (%) 5000 about 5590 +12 % 15 13.4 10000 about 10830 +8 % 31 27.5 15000 about 16200 +8 % 50 44.4 20000 about 21800 to 22000 +9 to 10 % 72 64.0 The RPM is steady (no oscillation, no stutter). The applied power is consistently about 12.5 %
higher than the curve predicts at 19.65 V. Dividing the curve voltage by the applied duty gives
about 17.5 V at all four points, so the firmware seems to use an effective voltage of about 17.5 V
for the duty calculation, while the calibration script used the reported 19.65 V.Three numbers therefore disagree: 19.65 V (reported), about 17.5 V (implied by the runtime duty)
and 16.28 V (measured).4. Workaround: scaling the coefficients by 1/1.125
We multiplied
a0,a1,a2by 1/1.125 (a0 = 362.4956527671, a1 = 0.3479488796187,
a2 = 9.661371569777e-06), uploaded, and repeated the tracking test (kp=ki= 0):Commanded RPM Settled RPM Error Applied PWR (%) 5000 about 5070 +1.4 % 13 10000 about 9875 -1.2 % 27 15000 about 14800 -1.3 % 44 20000 about 19930 -0.3 % 64 Tracking is now within about 1.5 % over the whole range with no oscillation. This hides the problem
but does not explain it, and the reported voltage is still about 19.65 V.Questions
- Which voltage does the firmware use to convert the commanded motor voltage to duty cycle, and is
it the same value that is reported in the telemetry (VOLTAGEinvoxl-esc-spin.py)? - Is the voltage scaling for the M0117-1 with firmware 39.26 known to be wrong, or does it depend
on a hardware revision? Is there a parameter or a recalibration step to fix the voltage
measurement? - Is
voxl-esc-calibrate.pyexpected to use the ESC-reported voltage to compute the motor voltage?
If the reported voltage is wrong by a factor, how should the calibration be done so that
calibration and runtime agree? - Is a scaling factor on the three coefficients an acceptable workaround until this is fixed? We
currently multiplya0,a1anda2by 1/1.125. - Should we use a different firmware version for this board?
What we can provide, if needed
- Full console logs of the calibration and of the four tracking runs.
- Output of
./voxl-esc-verify-params.py --save-params 1(esc0_params.xmltoesc3_params.xml). - The params XML used.
- Measurements with a multimeter during a spin under load, if you need them.
- Reported vs. measured voltage at several supply voltages (for example 12, 14 and 16 V from a bench
supply, motors not spinning), to tell an offset from a gain error, if you need it.
-
-
VOXL 2 IMX377/IMX412 support and configuration@modaltb Any updates on this before i try my luck on getting it to work?^^
-
Cannot bind my stinger to my radiomaster gx12Assuming your Stinger SKU contains an ExpressLRS modem (ModalAI M0184 Gemini RX), you will want to follow the ExpressLRS Binding procedures. Firstly, to put the receiver into "binding" mode, you'll want to either press the bind button for at least 1.5 seconds, and you must do this at least a few seconds after the battery has been inserted (or anytime later). You can also put the receiver into binding mode by powering on and off the Stinger 3 times quickly, though this can be unreliable.
You will also need to make sure your transmitter is compatible with the receiver, and in a compatible mode. The M0184 by default comes with firmware based on ELRS 3, so you will need to verify that your GX12's internal ExpressLRS firmware is also on major version 3, otherwise you will need to downgrade to V3. Furthermore, the GX12 comes with a dual-band transmitter which supports 2.4GHz and 915MHz operation. To work with the M0184 you must make sure the selected "RF Band" parameter is "915 MHz", and the packet rate is 50 Hz 100 Hz, or 200 Hz. Other packet rates are not supported on the older modem in the M0184.
-
Stinger Vision VL53L4CX integration with M0188@Vinny That would be very helpful, we are absolutely willing to do that.
-
Stinger Vision VL53L4CX integration with M0188Hi @Vinny
It was part of a larger purchase of about 18 systems (if i remember correctly) about a year ago. I will send the original order# when I locate it.
As far as our flexibility, we are adept at altering and modifying the systems for our needs, but we have a short timeline, and any product solution would need to be shipped overnight.
Is there any reason I cannot solder onto the board? It looks like the board has the traces for a TCA9548A mux, so I should be able to solder to that, unless there is something else I'm missing? My mistake on the address, actually saw the 0x73, nor 76, which is the lepton. Does that mean the board wouldn't be able to recognize it without an update to the firmware? If I remove the lepton and wire my own TCA9548A mux and ToFs, will that work?
Would love some clarification on the above.
Thanks!
-
Stinger Vision VL53L4CX integration with M0188I should also note that I do have a TCA9548A mux, and if I need to solder that I can. I can see the 0x76 address using i2cdetect, so its there, just need to know how to solder to it.
-
Stinger Vision VL53L4CX integration with M0188Hardware: (board / drone / SKU, serial # if you have it)
VOXL STINGER VISION MRB-D0013-6-V1-C33-T8-M26-X0
Software version: (paste the output ofvoxl-version)
1.8 SKD
What I am trying to do:
GreetingsTrying to integrate some T0F sensors with the stinger vision, specifically the VL53L4CX with the Stinger Vision. I've got a M0188 board, and I'm wondering what the pinouts are for the J01, J23, J45, and J67 MUX interfaces.

Thanks
Jeremy
-
voxl-mapper local planner: "Cannot insert trajectory. Total segments = 20, Max segments = 20" — replanning never reaches the drone during Follow Path@anthony-kang Thank you for configuring a unit to replicate this. Before you spend more time on it, here is what we found in the public source after our first post, plus the materials you asked for. Two things in our original post turned out to be wrong, and I am correcting them here so the reproduction is not built on them.
(Note: this topic now also carries an unrelated question from another user, so our four questions are restated at the end.)
1. Root cause — found in the public source (2026-10-15)
The limit does not live in
voxl-mapper. It is in voxl-vision-hub (confirmed withdpkg -Son our airframe, 1.9.21):// /usr/include/voxl_trajectory/trajectory_interface.h:48 #define TRAJ_MAX_SEGMENTS 20 // /usr/include/voxl_trajectory/trajectory_utils.h:34 <-- the rejection if (dst->n_segments + src->n_segments >= TRAJ_MAX_SEGMENTS)The number 20 is twice the configured value.
loco_num_segments(default 10) is used identically by the global planner (planner_utils.cc:26) and the local planner (local_a_star.cc:138, asmin(setting, number of A* path points)). When the path is long enough for both to reach the configured count, insertion is rejected at 10 + 10 = 20. With a short path there are fewer segments, which is why this does not fail on every flight.Two details that make it stricter than it looks:
- The actual length after insertion is
segment_idx + 1 + src->n_segments(everything after the split point is discarded), but the check usesdst + src. Withdstat 10 and a split point at index 3, 13 slots would be enough, yet it is rejected at 20. - The comparison is
>=, which costs one more slot.
The same code is present in vision-hub
v1.10.3and on master, so upgrading the package does not change this (as of 2026-10-15).Our mitigation:
loco_num_segments10 -> 7 in/etc/modalai/voxl-mapper.conf(7 + 7 = 14, below the limit). This needs no rebuild. It is not yet flight-verified — our next flight will tell. If there is a reason not to lower this value (shorter planning horizon, replan frequency, anything we are not seeing), please say so.2. Corrections to our first post
- Retracted: "a failed
Goleaves segments allocated". We suspected the two failedGocommands before the successful one had filled the buffer. The arithmetic above explains the failure without any leftover state, so we no longer believe the buffer was pre-filled. - Retracted: "we will test whether pressing
Clear Pathsfirst avoids it". That test does not address this condition. Please do not build the reproduction around it.
3. Why we cannot verify this on the ground (it is structural)
We tried on 2026-10-15 and got as far as
Immediate collision free path found!, then stopped. Two reasons:insert_trajectoryis only reached on replanning. The first trajectory goes out asTRAJ_CMD_LOAD_AND_START, which does not pass the check, and replanning requires the vehicle to advance so that the split point moves. Stationary, it never happens.- Even the initial trajectory stops at the rotation branch (
local_a_star.cc:327
if the heading differs from the path direction by more than 30 degrees, the planner only yaws in place and sends no trajectory. Disarmed, the vehicle never rotates, so the angle never closes.
So
Max segments = 20is a condition that only appears in flight, and the absence of the error on the ground means nothing.Two things that cost us time and may help your setup:
voxl-send-command plan_msgs follow_pathprints success but mapper does not act on it. We used it when the Portal click was blocked, and gotSuccessfully sent command to /run/mpa/plan_msgs/control— but the handler's first line (Client requested to follow last path) never appeared. Portal does not use that pipe; it sends over a WebSocket (/data/web_root/js/mapper.js:980,plan_ws.send("follow_path")).- Failure logs are
fprintf(stderr, ...)and appear immediately; the success path (Sending trajectory to plan channel) isprintfand is block-buffered, so it stays invisible during flight. We flush it after landing withsystemctl restart voxl-mapper. Anyone judging from the journal in flight sees only failures, never successes.
4. The materials you asked for
voxl-version— full output below. Please note it was captured on 2026-09-15, as shipped, beforevoxl-mapperwas installed, so the package list does not contain it. Versions in use on the 2026-10-13 flight were: system-image1.8.08-M0054-14.1a-perf, voxl-suite1.6.4~beta5, voxl-vision-hub1.9.21, voxl-mapper0.2.4. We will post a freshvoxl-versionfrom the airframe at our next session.voxl2:/$ voxl-version ──────────────────────────────────────────────────────────────────────────────── system-image: 1.8.08-M0054-14.1a-perf kernel: #1 SMP PREEMPT Thu May 14 22:41:15 UTC 2026 4.19.125 ──────────────────────────────────────────────────────────────────────────────── hw platform: M0054 mach.var: 1.0.1 SKU: MRB-D0012-4-V4-C29-T8-M36 ──────────────────────────────────────────────────────────────────────────────── voxl-suite: 1.6.4~beta5 ──────────────────────────────────────────────────────────────────────────────── Packages: Repo: http://voxl-packages.modalai.com/ ./dists/qrb5165/sdk-1.6/binary-arm64/ Last Updated: 2023-03-02 12:58:41 WARNING: repo file has changed since last update, packages may have originated from a different repo List: libfc-sensor 1.0.12 libmodal-cv 0.6.1 libmodal-exposure 0.1.5 libmodal-flow 1.0.4 libmodal-journal 0.2.7 libmodal-json 0.4.8 libmodal-pipe 2.14.12 libqrb5165-io 0.6.3 libvoxl-cci-direct 0.4.0 libvoxl-codec 0.0.5 libvoxl-cutils 0.1.6 modalai-slpi 1.2.3 mv-voxl 0.1-r0 qrb5165-bind 0.1-r0 qrb5165-dfs-server 0.2.0 qrb5165-mini-tof-server 0.2.2 qrb5165-rangefinder-server 0.1.6 qrb5165-slpi-test-sig 01-r0 qrb5165-tflite 2.17.2 voxl-camera-calibration 0.6.2 voxl-camera-server 2.2.23 voxl-ceres-solver 2:2.0.0-2 voxl-configurator 1.1.21 voxl-cpu-monitor 0.7.7 voxl-docker-support 1.3.1 voxl-elrs 1.1.6 voxl-esc 1.6.3 voxl-esptool 0.2.1 voxl-feature-tracker 0.5.2 voxl-flow-server 0.3.6 voxl-focus-camera 0.6.1 voxl-gphoto2-server 0.0.10 voxl-imu-server 2.0.2 voxl-io-server 0.1.1 voxl-jpeg-turbo 2.1.3-7 voxl-lepton-server 1.4.0 voxl-lepton-tracker 0.0.4 voxl-libgeographic 1.0.0 voxl-libgphoto2 0.0.4 voxl-libuvc 1.0.7 voxl-logger 0.6.3 voxl-mavcam-manager 0.6.1 voxl-mavlink 0.1.6 voxl-mavlink-server 1.4.16 voxl-modem 1.2.4 voxl-mongoose 7.19.0-1 voxl-mpa-to-ros 0.3.9 voxl-mpa-tools 1.5.8 voxl-nano-tracker 0.1.7 voxl-open-vins-server 0.6.1 voxl-opencv 4.5.5-3 voxl-osd 0.4.7 voxl-portal 0.9.4 voxl-px4 1.14.0-2.0.142 voxl-px4-params 0.9.9 voxl-qvio-server 1.2.3 voxl-remote-id 0.0.9 voxl-reset-slpi 0.0.4 voxl-state-estimator 0.0.6 voxl-streamer 0.8.1 voxl-suite 1.6.4~beta5 voxl-tag-detector 0.1.0 voxl-tflite-server 0.5.1 voxl-utils 2.0.4 voxl-uvc-server 0.1.8 voxl-vision-hub 1.9.21 voxl-vtx 2.2.19 voxl-wavemux 0.0.3 voxl2-io 0.0.3 voxl2-security-hardening-utls 1.0-r0 voxl2-system-image 1.8.08-r0 voxl2-wlan 1.0-r0 ────────────────────────────────────────────────────────────────────────────────Full mapper journal — the excerpt in the first post is what we have off-airframe right now; we will collect the full journal at the next session and post it here.
PX4
.ulg— we have it (log100, 69 MB), but it exceeds the forum's 8 MB attachment limit. We would rather not put it onlogs.px4.io, since that is a public upload and the log carries our flight environment. Could you give us a private channel for it — an email address, or should we send it through the contact form on modalai.com? If a public upload is fine with you, tell us and we will do that instead.5. Our four questions, restated
- Does our reading match yours —
TRAJ_MAX_SEGMENTS 20is a fixed limit in the trajectory interface, and loweringloco_num_segmentsis the intended way around it? Is there any plan to compare against the actual post-insert length (segment_idx + 1 + src->n_segments) instead ofdst + src? - What normally fills and clears the segment buffer? We now believe a failed
Goleaves nothing behind — can you confirm? - Is
Clear Pathsrelated to this state at all, or is it only for the drawn paths? - Is there a way for an operator to detect this condition without reading the mapper journal? From the Portal UI everything looked correct — the path was drawn and
Immediate collision free path found!was reported — so the pilot has no indication that obstacle avoidance is not active. We would treat a Portal-visible indication as a product request.
Thanks again.
- The actual length after insertion is