cancel
Showing results for 
Search instead for 
Did you mean: 
JKova
Level 4
138 92 2 5
Message 1 of 15
1,815
Flag Post

Solved!

How to create a Flowchart which calculates bearing angle

HP Recommended
HP 50g graphing calculator

Hello dear HP community ,

I wonder if you can create a flowchart in programme HP User Edit 5 , version 5.4.0.850 , or in HP User Edit 6 Alpha 2 or whatever similar programme do you have for a programme which calculates a bearing angle between between North and object . 

HP User Edit 6 Alpha 2 ---> https://www.hpcalc.org/details/7587

HP User Edit 5 ---> https://www.hpcalc.org/details/6600

 

I had made a two programs . 

One for initialy learn about creating a flowchart , and other is attempt to create a flowchart for calculating a bearing angle in HP User Edit !! I did not mentioned that you have a tool from which you could create a flowchart in HP User Edit itself !!

So I want to used that tool to create a flowcharts for my another programme which I mentioned in the title of this post !!

Tool name is Code Builder and he is part of whole HP User Edit programme .

 

I will show you how it's look my two programs which i made , and i will probably made this third one but i have problems with creating a AND case when i go to conditional structure like as IF is !!

 

My flowchart with conditional structure - succesfullMy flowchart with conditional structure - succesfullMy first attempt of creating a flowchart which multiplies two numberMy first attempt of creating a flowchart which multiplies two numberMy second flowchart with conditional structure - unfortunately  and AND case wit no successMy second flowchart with conditional structure - unfortunately and AND case wit no successmy second attempt in which i want to create a structure using AND casemy second attempt in which i want to create a structure using AND case

Thanks for your answer :generic:

 

Have a nice day !!

 

0 Kudos
14 REPLIES 14
JKova
Author
Level 4
138 92 2 5
Message 2 of 15
Flag Post
HP Recommended

Sorry If I did not mentioned where you can find those Code Builder . It is inside of HP User Edit software .

Look on picture below !! 

Look at on those picure ... I also added explanation on it ... Thanks for helping me :DLook at on those picure ... I also added explanation on it ... Thanks for helping me 😄

So please If anyone can answer to my question - how to calculate bearing angle if you have difference between coordinates of points ( and of course I did not mentioned that too :indifferent: )  , 

so if i use exmple for coordinates which have a deltay as positive and deltax  negative values the output bearing angle would be ATAN(deltay/deltax)+k , k depent of quadrant , in this particular case k have a value of k=180° .

You can see there how to calculate bearing angle on croatian language !!You can see there how to calculate bearing angle on croatian language !!

thanks for help , 

 

Have a nice day :OpenSmile:

J.K.K

0 Kudos
Maké
Level 9
3,551 3,490 180 541
Message 3 of 15
Flag Post
HP Recommended

Hi!, @JKova :

For create flowchart without HP50G you can use the Microsoft Visio, from ... https://support.office.com/en-us/article/create-a-data-visualizer-diagram-17211b46-d144-4ca2-9ea7-b0...

For calculate a bearing if you use surveing you have with the HP50G ...

1) COGO+ Lt 3.55, from ... https://www.hpcalc.org/details/7403

Jacob Wall, is your creator and you write for consult, from ... https://sgss.ca/

2) Too, you can use (Spanish Language) ... Geodesia 1.03, from ... https://www.hpcalc.org/details/6605

3) If use HPUSerEdit, first needed read in the help, the instruction's for 'Constructor' and see the example (Spanish Language) ...

HPUserEdit.JPG

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
0 Kudos
JKova
Author
Level 4
138 92 2 5
Message 4 of 15
Flag Post
HP Recommended

Hi dear @Make ,

Can you tell me excactly where and how did you find instructions for constructor ,

That's all what I'm talking about :generic:  !! Some instructions I needed !!

0 Kudos
Maké
Level 9
3,551 3,490 180 541
Message 5 of 15
Flag Post
HP Recommended

Hi!, @JKova :

Merry Christmas for you and your family.

1) Open the HPUSEREDIT.

2) Find and open in the top ... Help.

3) Search ... Frequently Asked Questions and open.

4) Unfortunately the instruction's for Constructor they were written in Spanish Language.

See, the image ...

HP User Edit Help.JPG

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
0 Kudos
David_M
Level 6
140 139 29 60
Message 6 of 15
Flag Post
HP Recommended

So please If anyone can answer to my question - how to calculate bearing angle if you have difference between coordinates of points ( and of course I did not mentioned that too :indifferent: )  , 

so if i use exmple for coordinates which have a deltay as positive and deltax  negative values the output bearing angle would be ATAN(deltay/deltax)+k , k depent of quadrant , in this particular case k have a value of k=180° .

I'm no expert here, but it seems like you could simply treat the offsets (coordinate differences) as a vector in rectangular form, then convert it to polar to get the bearing angle.

 

The 50g commands to look into for this are →V2 and V→.  Most importantly, you need to set the appropriate angular and coordinate modes at the appropriate times when using those commands.

 

The following general steps should convert your deltax and deltay to polar form.  I'm using an example of deltax=-5 and deltay=5.  This also assumes RPN mode as opposed to algebraic:

 

1) Set the 50g to DEG mode:

DEG

2) Set the 50g to RECT mode

RECT

3) Enter the vector (same as offsets if we assume origin at [0,0])

-5 5 →V2

4) Set the 50g to SPHERE mode

SPHERE

5) "Explode" the vector

V→

You now have the polar coordinates on the stack to use as you wish (r=7.07106781187, angle of 135°).

 

Notes:

 

  • The modes can also be set by changing system flag settings (see the Advanced Users Reference to see which flags are indicated for the various modes).
  • You can easily automate this in a program, of course.  If you do, it's advisable to save the flag settings before making the changes, then restore them after you are finished.
  • The angle returned in this manner will be in the range (-180..180].  If you need it expressed as a positive number in the range [0,360), it can be converted easily by MODding the result with 360.  So, as an example, a result of -135 can easily be converted to 225 with 360 MOD.

 Putting all of this together in the form of a program (RPN mode) might look like this:

«
   @ get current flag settings, move above offsets
   RCLF UNROT

   @ set modes
   DEG RECT

   @ create vector from deltaX/deltaY
   →V2

   @ extract vector as polar coordinates
   SPHERE V→

   @ restore flag settings
   ROT STOF

   @ drop unneeded radius
   N I P @ remove the spaces -- this command can't be used in a post as-is due to filters

   @ translate result to [0,360)
   360 MOD
»
0 Kudos
JKova
Author
Level 4
138 92 2 5
Message 7 of 15
Flag Post
HP Recommended

Hi dear @Make ,

I wish you Merry Christmas too for you and your family !! 

I wanted to know what type of HPUserEdit do you have ?

Do you have a HP User Edit 6 Alpha 2 , or HP User Edit 5 ? If you have some else HP User Edit i want to know which one do you have :Glasses:

Thanks for your reply , 

Have a nice holidays ,

Best regards ,

JKova 

0 Kudos
Maké
Level 9
3,551 3,490 180 541
Message 8 of 15
Flag Post
HP Recommended

Hi!, @JKova :

Thank soo much for your salutation. Equal is for you and Very Happy New Year 2019.

I'have ... HPUserEdit5.

Now, i goto download the next version ... OK. Now have this version installed and the help, for Constructor is same, from ... https://www.hpcalc.org/details/7587

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
0 Kudos
JKova
Author
Level 4
138 92 2 5
Message 9 of 15
Flag Post
HP Recommended

Hello ,

Happy New Year too , for you and yours , when it come , of course 😄

So , before adding some conclusion about that i will post a picture of Constructor instructions from  a HP User Edit 6 Alpha 2 

for others those , will probably , some day looking into this post !! 

Thanks for all of these posts that you made !!

And I'm greatefull for others that post yours solutions too  !!

 

And yeah a have one more question but I wont make any new post about that , 

so my new question is - hot to insert an arrow into code and these two sign << , but with no such a space between them 

( a sign when you start a code into your HP 50g graphing calculator ) 

Instructions for Constructor inside of a HP User Edit 6 Alpha 2 , HTML view !!Instructions for Constructor inside of a HP User Edit 6 Alpha 2 , HTML view !!

And down below is picture which I'm trying to figure out how to insert a arrow and those two less sign connected together ,

If you have answer to my question please WRITE IT HERE !!

Look at the picture :Glasses:

This is an example so look at red rectangular shape and expression below that , it is written by inserting a code into a post ( I supposed ) ... Thanks !!This is an example so look at red rectangular shape and expression below that , it is written by inserting a code into a post ( I supposed ) ... Thanks !!

Thanks for answerring on my question ,

All of you have a nice day , 

 

Best regards m 

JKova 

0 Kudos
Maké
Level 9
3,551 3,490 180 541
Message 10 of 15
Flag Post
HP Recommended

Hi!, @JKova :

Can you please, explained better ?.

The symbol's for work in RPN or RPL, for global or local variables in the notebook or PC, with ASCII character's, are ...

Alt+174 = «

Alt+175 = »

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation