Clear Filters
Clear Filters

DDS通信信号标定和观测

1 view (last 30 days)
hengyang wang
hengyang wang on 12 Apr 2022
Answered: Vidhi Agarwal on 22 Mar 2024
C++目前自动代码生成不了A2L文件,求大神们如何实现DDS和someip自动代码生成后的信号标定和观测?

Answers (1)

Vidhi Agarwal
Vidhi Agarwal on 22 Mar 2024
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.

Categories

Find more on Get Started with DDS Blockset in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!