wallscavesurvey / walls

Walls cave survey software
https://www.texasspeleologicalsurvey.org/software/walls/tsswalls.php
17 stars 10 forks source link

Parser accepts a second, undocumented angle after LRUD facing azimuth #21

Open jedwards1211 opened 5 years ago

jedwards1211 commented 5 years ago

The Walls Manual says that LRUDs can contain an optional 5th number that is facing azimuth. However, it also accepts a 6th number:

a   b   5   0   0   *1 2 3 4 100 200*

I'm guessing that when there are two azimuths, the first is the azimuth of the left wall distance and the second is the azimuth of the right wall distance. However a single azimuth is called a "facing direction", which I assume means the angle that the LRUD plane is facing, so a facing angle of 30 would mean left is toward 300 and right is toward 120. I haven't been able to confirm any of this.

Notes

Since adding a 7th number produces the error message "Too many LRUD distances", I can only assume this number is explicitly accepted.

The 6th number is clearly parsed as an angle because using an invalid unit like 200q produces the error message "Bad angle or azimuth qty", whereas an invalid unit on the first four numbers produces the error message "Wrong format for length qty".

While Walls allows the C flag as the 5th or 6th element (with or without a single facing direction), a C flag after two azimuths produces the "Too many LRUD distances" error again, which I assume is a bug.