Fixed code format issues
This commit is contained in:
parent
fc8cf109eb
commit
b52543e952
|
@ -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:
|
||||
|
|
|
@ -17,4 +17,4 @@ namespace s11n {
|
|||
|
||||
} // namespace s11n
|
||||
} // namespace sensor
|
||||
} // namespace carla
|
||||
} // namespace carla
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue