logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

WHEREITIS - Properities and Methods
vk4iu
#1 Posted : Friday, December 6, 2013 3:39:51 AM(UTC)
VK4IU

Rank: Advanced Member

Groups: Moderator, Registered, Administrators
Posts: 404
Man
Location: Hodgleigh QLD

Thanks: 6 times
Was thanked: 77 time(s) in 68 post(s)
G'Day Dennis,

With regard to ...

Object: WHEREITIS

Class Tree:
UNKNOWN TYPE

Properties:
BEARING N 343.8826695556 ( 343.88266956)
CALCDX ????
DXKM N 7159.0346438663 (7159.03464387)
DXMILES N 4448.4565899265 (4448.45658993)
LATHERE N -26.5960000000 ( -26.59600000)
LATTHERE N 35.5200000000 ( 35.52000000)
LONHERE N 151.9510000000 ( 151.95100000)
LONTHERE N 134.0400000000 ( 134.04000000)
RETURNBEARING N 162.2427826143 ( 162.24278261)
REVERSEBEARING (None)
SETCOORDS (None)


Can you help with definitions/properities and appropriate calls to the methods CALCDX and REVERSEBEARING.

Peter VK4IU
You can help by posting images of any errors and including your Logic version.
Sponsor
Note: We receive a commission from Amazon when you purchase via this link. It does not affect your cost. Thank you!
WN4AZY
#2 Posted : Sunday, December 8, 2013 11:49:31 AM(UTC)
admin

Rank: Administration

Groups: Administrators, Beta Testers
Posts: 3,057
Man
Location: Auburn, GA

Thanks: 969 times
Was thanked: 484 time(s) in 399 post(s)
Hi Peter:

To call CalcDX, first set the set LatHere, LonHere, LatThere, & LonThere properties, then call CalcDX. Then look at the DXMiles or DXKm properties.

ReverseBearing is a standalone function that simply returns the bearing 180-degrees off of what you pass to it. ReverseBearing(90) returns 270 for instance. It handles negatives, bearings > 360. It returns long path, given short path. Not to be confused with ReturnBearing, which gives you the direction the other guy would point his antenna to reach you.

To play with it:

There is already an instance of this object in LOGic named simply whereitis. Go to tools/advanced.database commands. Type

? whereitis.lathere
? whereitis.lonhere
This displays your coordinates, set when LOGic starts or you change stationinfo.

Now set the coordinates of the station in question:
whereitis.latthere=30
whereitis.lonthere=0

or instead of the above two lines, do:
whereitis.setcoords(30,0)

whereitis.calcdx()

? whereitis.dxkm
? whereitis.dxmiles
? whereitis.bearing
? whereitis.returnbearing

? whereitis.reversebearing(whereitis.bearing)
gets long path


What are you trying to accomplish exactly? FYI the Beam Heading Chart report makes a copy of the prefix table with empty dx and direction fields, then populates them, and reports off the copy of the prefix table. Look at the FILE OPEN commands. Using this DLL is simple. tying it into what you want to do, not so simple. Let me know if I can help.

Tnx & 73,

Dennis WN4AZY





vk4iu
#3 Posted : Thursday, December 12, 2013 12:38:10 AM(UTC)
VK4IU

Rank: Advanced Member

Groups: Moderator, Registered, Administrators
Posts: 404
Man
Location: Hodgleigh QLD

Thanks: 6 times
Was thanked: 77 time(s) in 68 post(s)
Thanks for that Dennis.

All OK. I have been using the object for a while in reports, but forgot the exact names and did a list of the object, which prompted me to ask about the items I had never used before.

But, you have me thinking. From your previous explanation here, I took a guide from the Beam Heading Chart - Report.

scan
whereitis.setcoords(lat, lon)
replace dx with whereitis.dxmiles, direction with whereitis.bearing

endscan


I have not used CalcDX before. Have I been using the object correctly - not calling CalcDX directly? Calcdx looks like it calculates for any two places on the planet, while the Beam Heading example is using my QTH for one end and calling CalcDX by "magic".

I used it to update the Awards report - here - removing the old references to the Prefix table.

Thanks for the ReverseBearing explanation. I have been using several techniques found in the various reports. I shall use this function from now on.

Thanks



Peter VK4IU
You can help by posting images of any errors and including your Logic version.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.028 seconds.