Add sensor button, fix sensor code.

This commit is contained in:
Anna Rose Wiggins 2021-08-09 13:51:24 -04:00
parent 8e012799eb
commit 224a076b8b
4 changed files with 73 additions and 3 deletions

View file

@ -45,3 +45,22 @@ function CreateCircularizationNode {
return n.
}
// function PredictGeo {
// parameter t.
// local pos is PositionAt(SHIP,t).
// local rDir is VDOT(SHIP:BODY:NORTH:FOREVECTOR,SHIP:BODY:ANGULARVEL). //the number of radians the body will rotate in one second (negative if rotating counter clockwise when viewed looking down on north
// local dT is t - TIME:SECONDS.
// local geoPos is SHIP:BODY:GeoPositionOf(pos).
// local drift is rDir * dT * CONSTANT:RADTODEG.
// local long is Mod(geoPos:LNG + drift, 360).
// if long < -180 {
// set long to long + 360.
// }
// if long > 180 {
// set long TO long - 360.
// }
// return LatLng(geoPos:LAT, long).
// }