nanoDRIVE 4LPi
Communications
Input Priority System
the input priority system is a feature that enables the use of both can bus and serial (dshot/pwm) signalling simultaneously the input priority system enables both can and serial signals to be actively read for throttle control allowing the unit to fallback to a backup signal if the primary signal is lost either can or serial signalling to be used without needing to first configure the unit telemetry and configuration can be used on a signal even when that signal is not being used for throttle control e g dronecan telemetry and configuration are still enabled even if only dshot throttle is accepted signal priorities for a respective signal type (can bus or serial) a priority of primary or secondary, or no priority, can be assigned by default can bus is the primary signal type and serial is the secondary signal type if the primary signal type is acquired it will take precedence over the secondary signal and will control the throttle, if the primary signal type is not available or the signal quality is poor the secondary signal will be used if available the unit must be configured with a primary signal type having a secondary signal is not mandatory two signal types cannot have the same priority conditions for switching signals the signal health of each active signal type is tracked, if the signal health drops below an acceptable threshold or if no valid throttle is received for the signal timeout duration (default 500ms) the motor controller will attempt to fallback to a lower priority signal if a higher priority signal than the currently active signal is in good health and available the motor controller will switch to the higher priority signal the unit will fall back to a lower priority signal if the current signal is degraded or times out, the diagram below demonstrates the current signal timing out if a higher priority signal than the current signal is available and in good health the unit will switch to it, as shown in the diagram below losing a lower priority signal will not affect operations as shown in the diagram below minor dropouts or degredations of signal quality within acceptable ranges will not lead to a switch of signals as shown in the diagram below signal loss signal loss will occur when no valid signal from any of the active signal types is received for the signal timeout duration (500ms default) the below diagram demonstrates signal loss when only one signal is being used the below diagram demonstrates signal loss when multiple signals are in use arming dronecan supports an additional arming mechanism as described below this will only affect whether the dronecan signal is considered armed and will not affect serial signalling therefore, this message will only have an effect whilst the dronecan signal is the active signal type configuration considerations require signal armed to fallback it is recommended that when using multiple signal types in a fallback scenario to enable the ‘require signal armed to fallback’ setting, this will prevent the unit switching to a disarmed signal which could lead to an unwanted disarm event during motor drive it is highly recommended to enable 'require signal armed to fallback' when using fallback signalling if 'dronecan require armed msg' is enabled the diagram below demonstrates how the primary signal is only switched to after it is armed require all signals to arm to ensure that all communication methods are operating correctly before beginning operation the ‘require all signals to arm’ setting can be enabled, this will require all signals to meet arming conditions after start up before the motor will drive the diagram below demonstrates the requirements to arm the unit when 'require all signals to arm' is enabled pwm acquisition when using fallback signalling, the conditions to acquire/re acquire a pwm signal are different to acquire, a series of zero throttle pulses must be received or a series of pulses within 10% of the current throttle value (if another signal is active) must be received this enables reliable re acquisition in fallback scenarios the diagram below indicates the ranges in which a pwm signal will acquire when using multiple signals