Fixed code format issues

This commit is contained in:
dotero 2019-11-11 13:06:39 +01:00 committed by Marc Garcia Puig
parent fc8cf109eb
commit b52543e952
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ namespace data {
s11n::GnssSerializer::Data gnss_data = Serializer::DeserializeRawData(data);
_geo_location = {gnss_data.latitude, gnss_data.longitude, gnss_data.altitude};
}
public:

View File

@ -17,4 +17,4 @@ namespace s11n {
} // namespace s11n
} // namespace sensor
} // namespace carla
} // namespace carla

View File

@ -29,8 +29,8 @@ void AGnssSensor::Tick(float DeltaSeconds)
{
Super::Tick(DeltaSeconds);
carla::geom::Vector3D location = GetActorLocation();
location /= 100.0f;
constexpr float TO_METERS = 1e-2;
carla::geom::Vector3D location = TO_METERS * GetActorLocation();
carla::geom::GeoLocation current_location = CurrentGeoLocation.Transform(location);
@ -49,4 +49,4 @@ void AGnssSensor::BeginPlay()
ACarlaGameModeBase* game_mode = Cast<ACarlaGameModeBase>(GetWorld()->GetAuthGameMode());
const UCarlaEpisode& episode = game_mode->GetCarlaEpisode();
CurrentGeoLocation = episode.GeoLocation();
}
}