Skip to content

Commit

Permalink
modified: src/tmx/TmxUtils/test/J2735MessageTest.cpp
Browse files Browse the repository at this point in the history
	modified:   src/v2i-hub/SpatPlugin/src/NTCIP1202.cpp
  • Loading branch information
jwillmartin committed Oct 30, 2023
1 parent 44b52df commit cf51063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tmx/TmxUtils/test/J2735MessageTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,13 @@ TEST_F(J2735MessageTest, EncodeBasicSafetyMessage_PartII)

auto carma_bsm_data = (BasicSafetyMessage_addGrpCarma_t*) calloc(1, sizeof(BasicSafetyMessage_addGrpCarma_t));
auto carma_bsm_destination_points = (BasicSafetyMessage_addGrpCarma::BasicSafetyMessage_addGrpCarma__routeDestinationPoints*) calloc(1, sizeof(BasicSafetyMessage_addGrpCarma::BasicSafetyMessage_addGrpCarma__routeDestinationPoints));
auto point = (Position3D_t*) calloc(1, sizeof(Position3D_t));
auto point = (Position3D_addGrpCarma_t*) calloc(1, sizeof(Position3D_addGrpCarma_t));
auto dummy_lat = 12;
auto dummy_long = 1312;
point->lat = dummy_lat;
point->Long = dummy_long;
asn_sequence_add(&carma_bsm_destination_points->list.array, point);
auto point2 = (Position3D_t*) calloc(1, sizeof(Position3D_t));
auto point2 = (Position3D_addGrpCarma_t*) calloc(1, sizeof(Position3D_addGrpCarma_t));
point2->lat = dummy_lat + 1000;
point2->Long = dummy_long + 1000;
asn_sequence_add(&carma_bsm_destination_points->list.array, point2);
Expand Down
2 changes: 1 addition & 1 deletion src/v2i-hub/SpatPlugin/src/NTCIP1202.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ void Ntcip1202::populateVehicleSignalGroup(MovementState *movement, int phase)
if (getVehicleMaxTime(phase) > 0)
{
stateTimeSpeed->timing->maxEndTime = (TimeMark_t *) calloc(1, sizeof(TimeMark_t));
*(stateTimeSpeed->timing->maxEndTime) = 36111; //getAdjustedTime(getVehicleMaxTime(phase));
*(stateTimeSpeed->timing->maxEndTime) = getAdjustedTime(getVehicleMaxTime(phase));
}

//we only get a phase number 1-16 from ped detect, assume its a ped phase
Expand Down

0 comments on commit cf51063

Please sign in to comment.