Settings

Parameters, CAN termination, and the messages Flow Lite sends.

Flow Lite works without changing anything. Its settings are standard DroneCAN parameters, so any DroneCAN tool can read and change them. They are not available over the UART.

Parameters#

ParameterRangeDefaultMeaning
CANNODE_NODE_ID0 to 1270Node id. 0 asks the bus
CANNODE_TERM0 or 11CAN termination
FLOW_RATE10 to 100100Flow reports, Hz
RNG_RATE10 to 5040Range reports, Hz
CANNODE_PUB_IMU0 or 10Publish the IMU

A change lasts until power-off. Save to make it permanent. CANNODE_TERM applies at once, and the others after a restart.

A lower RNG_RATE gives the rangefinder longer to integrate each reading.

Change a setting#

  • Mission Planner: open Setup, Optional Hardware, DroneCAN/UAVCAN, connect through the autopilot, and open the node's parameters. Change the value and write it.
  • QGroundControl: with UAVCAN_ENABLE at 2 or 3, the node's parameters appear as a separate component.
  • PX4 shell: run uavcan param set <node id> CANNODE_TERM 0, then uavcan param save <node id>. PX4 1.17 can print "Failed to save parameters" even though the module has saved them.
  • DroneCAN GUI Tool: open the node and edit its parameters.

Termination#

Flow Lite has a 120 Ω CAN terminator, on by default. Leave it on when Flow Lite is at the end of the bus, which is usual with one CAN connector. Turn it off when the bus already has a terminator at each end. On a UART-only vehicle it does not matter.

Joining the bus#

Flow Lite listens in silence at 1 Mbit/s, 500, 250 and 125 kbit/s until it hears valid traffic, then joins at that rate. It transmits nothing while it searches, so it cannot disturb a live bus.

It then asks the bus for a node id. If nothing hands out ids within four seconds it takes 73. Two modules on a bus that does not hand out ids need different CANNODE_NODE_ID values.

CAN messages#

MessageRateContent
com.hex.equipment.flow.Measurement100 HzFlow and gyro integrals in radians, and quality
uavcan.equipment.range_sensor.Measurement40 HzRange in metres, with too-close and too-far flags
uavcan.equipment.ahrs.RawIMU100 HzGyro and accelerometer. Off by default
uavcan.protocol.NodeStatus1 HzUptime and health

Node info, dynamic node id allocation, parameters, restart, firmware update and time synchronisation are also supported. The node name is org.flowlite.v2.

UART output#

Once a second Flow Lite checks what is listening and picks the format. Reflash or reconfigure the flight controller and it follows, without a restart.

Flight controllerFormat
Betaflight, INAVMSP
ArduPilot, PX4MAVLink 2 on a MAVLink port
Nothing detectedMSP