mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 03:11:36 +08:00
add default start ports and fix param lengths.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
set UCAN146 1
|
||||
param set-default UCAN1_PCA_PWM_S 500
|
||||
param set-default UCAN1_APA102_SUB 501
|
||||
|
||||
pca9685_ucan start -X
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ private:
|
||||
{"uavcan.sub.uorb.sensor_gps.0.id", "UCAN1_UORB_GPS", px4_param_to_uavcan_port_id, uavcan_port_id_to_px4_param},
|
||||
{"uavcan.pub.uorb.sensor_gps.0.id", "UCAN1_UORB_GPS_P", px4_param_to_uavcan_port_id, uavcan_port_id_to_px4_param},
|
||||
{"uavcan.sub.uorb.pca_pwm.0.id", "UCAN1_PCA_PWM_S", px4_param_to_uavcan_port_id, uavcan_port_id_to_px4_param},
|
||||
{"uavcan.sub.uorb.apa102_control.0.id", "UCAN1_APA102_CONTROL_S", px4_param_to_uavcan_port_id, uavcan_port_id_to_px4_param},
|
||||
{"uavcan.sub.uorb.apa102_control.0.id", "UCAN1_APA102_SUB", px4_param_to_uavcan_port_id, uavcan_port_id_to_px4_param},
|
||||
//{"uavcan.sub.bms.0.id", "UCAN1_BMS0_SUB"}, //FIXME instancing
|
||||
//{"uavcan.sub.bms.1.id", "UCAN1_BMS1_SUB"},
|
||||
};
|
||||
|
||||
@@ -167,7 +167,7 @@ PARAM_DEFINE_INT32(UCAN1_PCA_PWM_S, -1);
|
||||
* @max 6143
|
||||
* @group Cyphal
|
||||
*/
|
||||
PARAM_DEFINE_INT32(UCAN1_APA102_CONTROL_S, -1);
|
||||
PARAM_DEFINE_INT32(UCAN1_APA102_SUB, -1);
|
||||
|
||||
// Publication Port IDs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user