source: pacpusframework/branches/2.0-beta1/include/Pacpus/structure/structureCanSMSRadar.h@ 89

Last change on this file since 89 was 89, checked in by morasjul, 11 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1/*********************************************************************
2// created: 2012/02/22 - 12:00
3// filename: structureCanSMSRadar.h
4//
5// author: Arthur Miranda (PAMU Project) / Gerald Dherbomez
6// Copyright Heudiasyc UMR UTC/CNRS 6599
7//
8// version: $Id: $
9//
10// purpose: Description of the CAN structures of SMS Radar
11*********************************************************************/
12
13#ifndef __STRUCTURECANSMSRADAR_H__
14#define __STRUCTURECANSMSRADAR_H__
15
16#include "kernel/road_time.h"
17
18#define SMS_MAX_OBSTACLE_COUNT 64
19
20// Corresponding CAN frames
21/* Front: 0x510 to 0x54F */
22/* Left: 0x590 to 0x5CF */
23/* Rear: 0x610 to 0x64F */
24/* Right: 0x690 to 0x6CF */
25
26// Each individual Central Processor system prioritizes the detected objects and limits the
27// number of transmitted objects. To a max of 64 objects.
28
29typedef struct{
30 road_time_t time;
31 road_timerange_t timerange;
32 short moveflag;
33 short leadflag;
34 short typeflag;
35}StructSMSRadarType;
36
37typedef struct{
38 road_time_t time;
39 road_timerange_t timerange;
40 float corXrange;
41 float corYrange;
42 float corXvel;
43 float corYvel;
44 int objetID;
45 float objetVITESS;
46 StructSMSRadarType obtype;
47}SMSRadarObj;
48
49typedef struct{
50
51 int numberOfObstacles;
52 SMSRadarObj obstacles[SMS_MAX_OBSTACLE_COUNT];
53
54}SMSRadarDatas;
55
56#endif
Note: See TracBrowser for help on using the repository browser.