Introduction
ARS548 SDK includes everything you need in order to develop software applications interacting with Continental ARS 548 RDI. The SDK contains full documentation and three kind of sample programs, written in C, C++.
- Attention
- We believe that the information contained herein was accurate in all respects at the time of printing. ADAS Engineering cannot, however, assume any responsibility for errors or omissions in this text. Also note that the information in this document is subject to change without notice and should not be construed as a commitment by ADAS Engineering.
Usage
The typical usage flow of SDK functions is as follows:
- Initialization
Register callback functions
When radar data packets are received, SDK will notify user via callback functions. There are two kinds of callbacks available:
- Start receiving
- Use data
- Modify radar configuration
- Deinitialization
Receiving Raw Radar Data
The messages sent by the ARS548 radar are:
See the documentation of each message body or the radar technical documentation for more details.
Raw Radar Data Callback
When a radar data packet is received, SDK passes the message body to the callback function registered by the user.
Example callback function code:
void CALLBACK OnRadarMessage(
int nMsgId,
const Ars548Msg *pMsg)
{
std::cout << "OnRadarMessage() - nMsgId = " << nMsgId << std::endl;
switch (nMsgId)
{
break;
break;
break;
break;
default:
break;
}
}
#define MSG_ID_SENSOR_STATUS
Definition Ars548Dll.h:101
#define MSG_ID_DETECTION_LIST
Definition Ars548Dll.h:99
#define MSG_ID_OBJECT_LIST
Definition Ars548Dll.h:100
#define MSG_ID_FILTER_STATUS
Definition Ars548Dll.h:102
Definition Ars548Dll.h:265
Definition Ars548Dll.h:231
Definition Ars548Dll.h:139
Definition Ars548Dll.h:368
Definition Ars548Dll.h:182
Receiving Parsed Target Data from SDK
The TargetList data provided by the SDK is parsed from Ars548DetectionList and Ars548ObjectList, and contains information like target horizontal/vertical distance and speed relative to the radar, for easier further processing by users.
Example callback function code:
void CALLBACK OnTargetListCallback(
const TargetList *pTargetList)
{
{
std::cout <<
"Ars548Dll::OnTargetListCallback() - Num Of Detections: " << pTargetList->
NumOfTargets << std::endl;
}
else
{
std::cout <<
"Ars548Dll::OnTargetListCallback() - Num Of Objects: " << pTargetList->
NumOfTargets << std::endl;
}
}
BYTE TargetType
TARGET_TYPE_DETECTION | TARGET_TYPE_OBJECT
Definition Ars548Dll.h:549
UINT32 NumOfTargets
Number of targets, this indicates how many of the targets in the preceding Targets array are valid.
Definition Ars548Dll.h:551
#define TARGET_TYPE_DETECTION
Definition Ars548Dll.h:530
Definition Ars548Dll.h:548