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#
| Parameter | Range | Default | Meaning |
|---|---|---|---|
CANNODE_NODE_ID | 0 to 127 | 0 | Node id. 0 asks the bus |
CANNODE_TERM | 0 or 1 | 1 | CAN termination |
FLOW_RATE | 10 to 100 | 100 | Flow reports, Hz |
RNG_RATE | 10 to 50 | 40 | Range reports, Hz |
CANNODE_PUB_IMU | 0 or 1 | 0 | Publish 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_ENABLEat 2 or 3, the node's parameters appear as a separate component. - PX4 shell: run
uavcan param set <node id> CANNODE_TERM 0, thenuavcan 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#
| Message | Rate | Content |
|---|---|---|
| com.hex.equipment.flow.Measurement | 100 Hz | Flow and gyro integrals in radians, and quality |
| uavcan.equipment.range_sensor.Measurement | 40 Hz | Range in metres, with too-close and too-far flags |
| uavcan.equipment.ahrs.RawIMU | 100 Hz | Gyro and accelerometer. Off by default |
| uavcan.protocol.NodeStatus | 1 Hz | Uptime 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 controller | Format |
|---|---|
| Betaflight, INAV | MSP |
| ArduPilot, PX4 | MAVLink 2 on a MAVLink port |
| Nothing detected | MSP |