Fixed maximum detected objects that the radar can detect
This commit is contained in:
parent
dea7a685ac
commit
6fabbf9741
|
|
@ -33,14 +33,13 @@
|
|||
#endif
|
||||
|
||||
#define PI 3.141592654
|
||||
#define MAX_OBJ_RADAR 255
|
||||
|
||||
/* Variables */
|
||||
|
||||
float roadRotationSin;
|
||||
float roadRotationCos;
|
||||
long history_list[MAX_OBJ_RADAR][5];
|
||||
int valid_array[MAX_OBJ_RADAR];
|
||||
long history_list[NOF_OBJECTS][5];
|
||||
int valid_array[NOF_OBJECTS];
|
||||
|
||||
S_ETHERNET_CONNECTION_T s_socket;
|
||||
S_INTERFACE_CONNECTION_T raw_socket;
|
||||
|
|
@ -518,7 +517,7 @@ static int mk_cpm(facilities_t* facilities, uint8_t *bdr_oer, uint32_t *bdr_len,
|
|||
|
||||
long euclidian_dist, abs_speed, abs_speed_hist, angle, angle_hist, angle_diff;
|
||||
int j = 0, rv = 0;
|
||||
int temp[MAX_OBJ_RADAR];
|
||||
int temp[NOF_OBJECTS];
|
||||
|
||||
|
||||
cpm_tx->header.protocolVersion = PROTOCOL_VERSION;
|
||||
|
|
|
|||
Loading…
Reference in New Issue