Skip to content

Commit

Permalink
Fix GPS bug and default to windowed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
noahzemlin committed Nov 26, 2019
1 parent 902322a commit 481c365
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions Assets/GPSPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ public float getRandNormal(float mean, float stdDev)
void FixedUpdate()
{
Vector3 pos = tf.position;
message.latitude = pos.z / 78710.0f + 35.194881f;
message.latitude += getRandNormal(0, 1.843f);
message.longitude = -pos.x / 10247.0f + -97.438621f;
message.longitude += getRandNormal(0, 2.138f);
message.latitude = (pos.z + getRandNormal(0, 1.843f)) / 78710.0f + 35.194881f;
message.longitude = (-pos.x + getRandNormal(0, 2.138f)) / 10247.0f + -97.438621f;
Publish(message);
}
}
Expand Down
10 changes: 5 additions & 5 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ PlayerSettings:
targetDevice: 2
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: DefaultCompany
productName: ROSSharp Test
companyName: Sooner Competitive Robotics
productName: igvc_simulator_2020
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
Expand Down Expand Up @@ -81,7 +81,7 @@ PlayerSettings:
bakeCollisionMeshes: 0
forceSingleInstance: 0
useFlipModelSwapchain: 1
resizableWindow: 0
resizableWindow: 1
useMacAppStoreValidation: 0
macAppStoreCategory: public.app-category.games
gpuSkinning: 1
Expand All @@ -94,7 +94,7 @@ PlayerSettings:
visibleInBackground: 1
allowFullscreenSwitch: 1
graphicsJobMode: 0
fullscreenMode: 1
fullscreenMode: 2
xboxSpeechDB: 0
xboxEnableHeadOrientation: 0
xboxEnableGuest: 0
Expand All @@ -120,7 +120,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 0.1
bundleVersion: 2
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit 481c365

Please sign in to comment.