VCM: increase neighbours n max

This commit is contained in:
emanuel 2022-11-16 12:50:04 +00:00
parent 137dc54315
commit c583f7a0e2
2 changed files with 3 additions and 3 deletions

View File

@ -416,7 +416,7 @@ static int intersection_detected(VCM_t* vcm, mc_neighbour_s* neighbour) {
uint32_t intneigh[MC_MAX_NEIGHBOURS];
intneigh[0] = neighbour->station_id;
int n_intneigh = 1;
for (int n = 0; n < coordination->neighbours_len; ++n) {
for (int n = 0; n < coordination->neighbours_len && n_intneigh < 15; ++n) {
if (coordination->neighbours[n].station_id == neighbour->station_id) {
continue;
}

View File

@ -6,7 +6,7 @@
#include <it2s-tender/geodesy.h>
#include <it2s-tender/epv.h>
#define MC_MAX_NEIGHBOURS 32
#define MC_MAX_NEIGHBOURS 256
#define MC_RESOLUTION_TIMEOUT 1000
typedef struct {
@ -37,7 +37,7 @@ typedef struct coordination {
void* mgmt_socket;
mc_neighbour_s neighbours[MC_MAX_NEIGHBOURS];
uint8_t neighbours_len;
uint16_t neighbours_len;
struct {
uint64_t id;