Skip to content

Commit

Permalink
updated for varray
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Jun 14, 2024
1 parent 4517510 commit 233a5f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public RoboPartsConfigData[] GetRoboPartsConfig()
configs[i].value.type = this.topic_type[i];
configs[i].value.class_name = ConstantValues.pdu_reader_class;
configs[i].value.conv_class_name = ConstantValues.conv_pdu_reader_class;
configs[i].value.pdu_size = 88;
configs[i].value.pdu_size = 88 + ConstantValues.PduMetaDataSize;
configs[i].value.write_cycle = this.update_cycle;
configs[i].value.method_type = this.comm_method.ToString();
i++;
Expand All @@ -94,7 +94,7 @@ public RoboPartsConfigData[] GetRoboPartsConfig()
configs[i].value.type = this.topic_type[i];
configs[i].value.class_name = ConstantValues.pdu_writer_class;
configs[i].value.conv_class_name = ConstantValues.conv_pdu_writer_class;
configs[i].value.pdu_size = 280;
configs[i].value.pdu_size = 280 + ConstantValues.PduMetaDataSize;
configs[i].value.write_cycle = this.update_cycle;
configs[i].value.method_type = this.comm_method.ToString();
i++;
Expand All @@ -105,7 +105,7 @@ public RoboPartsConfigData[] GetRoboPartsConfig()
configs[i].value.type = this.topic_type[i];
configs[i].value.class_name = ConstantValues.pdu_writer_class;
configs[i].value.conv_class_name = ConstantValues.conv_pdu_writer_class;
configs[i].value.pdu_size = 56;
configs[i].value.pdu_size = 56 + ConstantValues.PduMetaDataSize;
configs[i].value.write_cycle = this.update_cycle;
configs[i].value.method_type = this.comm_method.ToString();
i++;
Expand All @@ -116,7 +116,7 @@ public RoboPartsConfigData[] GetRoboPartsConfig()
configs[i].value.type = this.topic_type[i];
configs[i].value.class_name = ConstantValues.pdu_writer_class;
configs[i].value.conv_class_name = ConstantValues.conv_pdu_writer_class;
configs[i].value.pdu_size = 8;
configs[i].value.pdu_size = 8 + ConstantValues.PduMetaDataSize;
configs[i].value.write_cycle = this.update_cycle;
configs[i].value.method_type = this.comm_method.ToString();

Expand All @@ -128,7 +128,7 @@ public RoboPartsConfigData[] GetRoboPartsConfig()
configs[i].value.type = this.topic_type[i];
configs[i].value.class_name = ConstantValues.pdu_writer_class;
configs[i].value.conv_class_name = ConstantValues.conv_pdu_writer_class;
configs[i].value.pdu_size = 40;
configs[i].value.pdu_size = 40 + ConstantValues.PduMetaDataSize;
configs[i].value.write_cycle = this.update_cycle;
configs[i].value.method_type = this.comm_method.ToString();
i++;
Expand All @@ -139,7 +139,7 @@ public RoboPartsConfigData[] GetRoboPartsConfig()
configs[i].value.type = this.topic_type[i];
configs[i].value.class_name = ConstantValues.pdu_writer_class;
configs[i].value.conv_class_name = ConstantValues.conv_pdu_writer_class;
configs[i].value.pdu_size = 56;
configs[i].value.pdu_size = 56 + ConstantValues.PduMetaDataSize;
configs[i].value.write_cycle = this.update_cycle;
configs[i].value.method_type = this.comm_method.ToString();
i++;
Expand All @@ -150,7 +150,7 @@ public RoboPartsConfigData[] GetRoboPartsConfig()
configs[i].value.type = this.topic_type[i];
configs[i].value.class_name = ConstantValues.pdu_writer_class;
configs[i].value.conv_class_name = ConstantValues.conv_pdu_writer_class;
configs[i].value.pdu_size = 40;
configs[i].value.pdu_size = 40 + ConstantValues.PduMetaDataSize;
configs[i].value.write_cycle = this.update_cycle;
configs[i].value.method_type = this.comm_method.ToString();
i++;
Expand All @@ -161,7 +161,7 @@ public RoboPartsConfigData[] GetRoboPartsConfig()
configs[i].value.type = this.topic_type[i];
configs[i].value.class_name = ConstantValues.pdu_writer_class;
configs[i].value.conv_class_name = ConstantValues.conv_pdu_writer_class;
configs[i].value.pdu_size = 52;
configs[i].value.pdu_size = 52 + ConstantValues.PduMetaDataSize;
configs[i].value.write_cycle = this.update_cycle;
configs[i].value.method_type = this.comm_method.ToString();

Expand Down Expand Up @@ -384,7 +384,6 @@ private bool GetParam(string name, out LiDAR3DParams param)
public void DoControl()
{
float[] controls = this.pdu_reader_actuator.GetReadOps().GetDataFloat32Array("controls");
//Debug.Log("controls: " + controls[0]);
my_controls = controls[0];


Expand Down

0 comments on commit 233a5f0

Please sign in to comment.