Browse Source

Set default node id to 1, default bitrate to 1M

sbg
Holger Steinhaus 9 years ago committed by Lorenz Meier
parent
commit
76da9ab82b
  1. 4
      src/modules/uavcan/uavcan_main.cpp

4
src/modules/uavcan/uavcan_main.cpp

@ -1252,7 +1252,7 @@ int uavcan_main(int argc, char *argv[]) @@ -1252,7 +1252,7 @@ int uavcan_main(int argc, char *argv[])
}
// Node ID
int32_t node_id = 0;
int32_t node_id = 1;
(void)param_get(param_find("UAVCAN_NODE_ID"), &node_id);
if (node_id < 0 || node_id > uavcan::NodeID::Max || !uavcan::NodeID(node_id).isUnicast()) {
@ -1261,7 +1261,7 @@ int uavcan_main(int argc, char *argv[]) @@ -1261,7 +1261,7 @@ int uavcan_main(int argc, char *argv[])
}
// CAN bitrate
int32_t bitrate = 0;
int32_t bitrate = 1000000;
(void)param_get(param_find("UAVCAN_BITRATE"), &bitrate);
// Start

Loading…
Cancel
Save