DDS通信信号标定和观测

1 次查看(过去 30 天)
hengyang wang
hengyang wang 2022-4-12
C++目前自动代码生成不了A2L文件,求大神们如何实现DDS和someip自动代码生成后的信号标定和观测?

回答(1 个)

Vidhi Agarwal
Vidhi Agarwal 2024-3-22
Hi hengyang,
I understand you have a query regarding a way to implementing signal calibration and observation after automatic code generation for DDS and SOME/IP.
The following approach can help you to get started:
  • Step 1: Understand the Data Model
DDS: Learn the data model from IDL files, including topics, data types, and QoS policies.
SOME/IP: Review your application's service interfaces, focusing on methods, events, and IDs for message identification.
  • Step 2: Automatic Code Generation
Utilize tools like RTI Connext (for DDS) or CommonAPI (for SOME/IP) to automatically generate code from IDL or service definitions, handling communication details.
  • Step 3: Implement Calibration Logic
Define Parameters: Identify calibration parameters (offsets, scales, conversion factors) for each signal.
Calibration Function: Develop a function to apply these parameters to raw data, ensuring flexibility for different data types.
  • Step 4: Integrate Calibration with Communication
DDS: Incorporate the calibration function into the DDS subscriber's callback or processing thread.
SOME/IP: Embed calibration logic on the client or server side as needed, ensuring raw data undergoes calibration.
  • Step 5: Testing and Validation
Unit Testing: Create tests for the calibration function to verify accuracy across input ranges.
Integration Testing: Evaluate the entire system to confirm calibrated data is correctly utilized.
Real Data Validation: If possible, validate against real-world data to ensure real-world accuracy.
  • Step 6: Deployment and Monitoring
Deploy the application with monitoring for the calibration logic, prepared for dynamic environmental changes.

类别

Help CenterFile Exchange 中查找有关 Get Started with DDS Blockset 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!