forked from Archive/PX4-Autopilot
ARK CANnode fix params
This commit is contained in:
parent
c7d4d1f45c
commit
0ae296bfe2
|
@ -3,10 +3,6 @@
|
||||||
# board specific defaults
|
# board specific defaults
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
param set-default CANNODE_ARM_STAT 1
|
|
||||||
param set-default CANNODE_SUB_ESC 1
|
|
||||||
param set-default CANNODE_SUB_SERV 1
|
|
||||||
|
|
||||||
pwm_out start
|
pwm_out start
|
||||||
|
|
||||||
dshot start
|
dshot start
|
||||||
|
|
|
@ -438,13 +438,7 @@ int UavcanNode::init(uavcan::NodeID node_id, UAVCAN_DRIVER::BusEvent &bus_events
|
||||||
#endif // CONFIG_UAVCANNODE_RTK_DATA
|
#endif // CONFIG_UAVCANNODE_RTK_DATA
|
||||||
|
|
||||||
#if defined(CONFIG_UAVCANNODE_SERVO_ARRAY_COMMAND)
|
#if defined(CONFIG_UAVCANNODE_SERVO_ARRAY_COMMAND)
|
||||||
int32_t enable_servo_array_command_sub = 0;
|
_subscriber_list.add(new ServoArrayCommand(_node));
|
||||||
param_get(param_find("CANNODE_SUB_SERV"), &enable_servo_array_command_sub);
|
|
||||||
|
|
||||||
if (enable_servo_array_command_sub != 0) {
|
|
||||||
_subscriber_list.add(new ServoArrayCommand(_node));
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // CONFIG_UAVCANNODE_SERVO_ARRAY_COMMAND
|
#endif // CONFIG_UAVCANNODE_SERVO_ARRAY_COMMAND
|
||||||
|
|
||||||
for (auto &subscriber : _subscriber_list) {
|
for (auto &subscriber : _subscriber_list) {
|
||||||
|
|
Loading…
Reference in New Issue