February 27, 201016 yr Hi All Can anyone help me with the conversion of this formula to RPN or a more basic description so I can translate it. Also how would the lat and lon values be shown for use inFS9.lat=asin(sin(lat1)*cos(d)+cos(lat1)*sin(d)*cos(tc)) IF (cos(lat)=0) lon=lon1 // endpoint a pole ELSE lon=mod(lon1-asin(sin(tc)*sin(d)/cos(lat))+pi,2*pi)-pi ENDIF Paul EGLD
February 27, 201016 yr Did you try using the GPS to figure this out? Sorry cannot help with the conversion.EX.Current Aircraft Lat --> GeoCalcLatitude1Current Aircraft Lon --> GeoCalcLongitude1Requested Radial --> GeoCalcAzimuth2Requested Distance --> GeoCalcLengthFor the output 1 of the 2 sets may work -Set #1GeoCalcIntersectionLatitudeGeoCalcIntersectionLatitudeSet#2GeoCalcExtrapolationLatitudeGeoCalcExtrapolationLongitudeAccording to the MSDN ESP library the inputs are all writable. Did not try at all, did want to eventually, it was an idea I've had for a while for a project... So if it works for you can you let me know?Hope this may help,Roman FS RTWR SHRS F-111 JoinFS Little Navmap
February 27, 201016 yr Hi,I know there is more, but some code about sin, cos etc. you can find here:http://forums1.avsim.net/index.php?showtopic=70228&st=0andhttp://forums1.avsim.net/index.php?showtop...+circle+bartelsIt is old and hard to read, but maybe you can get an idea....jan Jan "Beatus ille qui procul negotiis..."
February 28, 201016 yr Author Thanks for the tips but I don't think I can do this with the Fs GPS stuff. The formula seems to do it all with only 4 inputs. Lat & Long , Radial degree & distance. I am trying to code a KNS 80 with the Psudo VOR placement, This formula could give the position from another VOR. Roman I will keep you informed of progress. Paul EGLD
March 1, 201016 yr Paul, The KNS80b, yeah that is the same model i am hoping to do sometime. My idea was to use the GPS for it all. This is just a preliminary theory & no part has been tested other than the VOR search & GeoCalc from previous projects.Use the GPS to find the VOR by frequency using Nearest VOR Data looping to find proper VOR by matching freq/VOR type(s) Select the NearestVorCurrentLine by matching frq. then- Selected NearestVorCurrentLatitude--> GeoCalcLatitude1Selected NearestVorCurrentLongitude --> GeoCalcLongitude1Requested Radial --> GeoCalcAzimuth2Requested Distance --> GeoCalcLengthFor the output 1 of the 2 sets may work - (most likely #1)Set #1GeoCalcIntersectionLatitudeGeoCalcIntersectionLatitudeSet#2GeoCalcExtrapolationLatitudeGeoCalcExtrapolationLongitudeThen send output GeoCalc LAT/LON to GPS flightplan using the proper index and FlightPlanNewWaypointLatitude/FlightPlanNewWaypointLongitudeGPS drives NAV1 will then take care of the AP/ deviation display / other stuff.I am using http://msdn.microsoft.com/en-us/library/cc526954.aspx to see what can be written, what is available etc..Since this is a MS SDK, mileage may vary.. :(BTW do you have the KNS80 manual? PM me if you need it.Good luck - definitely a brain bruising project, have fun! Roman FS RTWR SHRS F-111 JoinFS Little Navmap
March 1, 201016 yr Paul, The KNS80b, yeah that is the same model i am hoping to do sometime. My idea was to use the GPS for it all. This is just a preliminary theory & no part has been tested other than the VOR search & GeoCalc from previous projects.Use the GPS to find the VOR by frequency using Nearest VOR Data looping to find proper VOR by matching freq/VOR type(s) Select the NearestVorCurrentLine by matching frq. then- Selected NearestVorCurrentLatitude--> GeoCalcLatitude1Selected NearestVorCurrentLongitude --> GeoCalcLongitude1Requested Radial --> GeoCalcAzimuth2Requested Distance --> GeoCalcLengthFor the output 1 of the 2 sets may work - (most likely #1)Set #1GeoCalcIntersectionLatitudeGeoCalcIntersectionLatitudeSet#2GeoCalcExtrapolationLatitudeGeoCalcExtrapolationLongitudeThen send output GeoCalc LAT/LON to GPS flightplan using the proper index and FlightPlanNewWaypointLatitude/FlightPlanNewWaypointLongitudeGPS drives NAV1 will then take care of the AP/ deviation display / other stuff.I am using http://msdn.microsoft.com/en-us/library/cc526954.aspx to see what can be written, what is available etc..Since this is a MS SDK, mileage may vary.. :(BTW do you have the KNS80 manual? PM me if you need it.Good luck - definitely a brain bruising project, have fun! RomanMaybe using the civa INS you can solve your problem.Gianfranco
March 1, 201016 yr Commercial Member Maybe using the civa INS you can solve your problem.GianfrancoMaybe... but this forum isn't about product promotion. Ed Wilson Mindstar AviationMy Playland - I69
March 2, 201016 yr "Pardon the commercial interruption." --- "Standby, for station identification." -- "This is the Green Bay Packer Radio Network"LOL Roman FS RTWR SHRS F-111 JoinFS Little Navmap
Create an account or sign in to comment