DDS通信信号标定和观测

조회 수: 1 (최근 30일)
hengyang wang
hengyang wang 2022년 4월 12일
답변: Vidhi Agarwal 2024년 3월 22일
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!