Add sensor button, fix sensor code.
This commit is contained in:
parent
8e012799eb
commit
224a076b8b
4 changed files with 73 additions and 3 deletions
|
@ -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).
|
||||
// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue