Fixed namespace termination comments in AdTypes.h, simplified init_ego_vehicle in AdFunctions.cc

Tibor Bizjak 2023-07-14 12:51:19 +02:00
parent a3d3f02d7b
commit 7aa1aa5423
2 changed files with 7 additions and 8 deletions

View File

@ -22,13 +22,12 @@ namespace Data
Types::Vehicle init_ego_vehicle() Types::Vehicle init_ego_vehicle()
{ {
Types::Vehicle ev = return Types::Vehicle{
{.id = Constants::EGO_VEHICLE_ID, .id = Constants::EGO_VEHICLE_ID,
.lane = Types::Lane::Center, .lane = Types::Lane::Center,
.speed_mps = Utils::kph_to_mps(135), .speed_mps = Utils::kph_to_mps(135),
.rel_distance_m = 0, .rel_distance_m = 0,
}; };
return ev;
} }
} // namespace Ad::Data } // namespace Ad::Data

View File

@ -25,5 +25,5 @@ struct Vehicle
double rel_distance_m; double rel_distance_m;
}; };
} // namespace Types } // namespace Ad::Types
} // namespace Ad } // namespace Ad