emane
emane copied to clipboard
Get Antenna az/el for local node
Using antenna profiles and directional antennas for RFPipe model, I'm able to close a link when I apply the correct pointing angles for both nodes:
node-1(NEM1) --> <-- node-2(NEM2)
In this case: NEM1 az/el = 90,0 NEM2 az/el = 270,0
I apply them with antenna events either programmatically, through emaneevent-antenna script or EEL file. They all work.
Now, how can it query node-1/NEM1 for it's angle?
root@1d74627ae34c:/home/mvincent/source/python-emane-tools# emanesh node-1 get table 1 phy AntennaProfileEventInfoTable nem 1 phy AntennaProfileEventInfoTable | NEM | Antenna Profile | Antenna Azimuth | Antenna Elevation | | 2 | 1 | 270.00094539880615 | -0.001125664811484278 |
That's querying NEM1 and returning the angle of NEM2 pointing towards it. The opposite goes for querying node-2/NEM2. It seems I can't find the local antenna's az/el once applied through an antenna event. I've searched the 'config' and 'stat' of emanesh
as well. Was hoping I could query a table and get all directional antenna pointings the same way the PHY LocationEventInfoTable give me everyone (including my local node) position.
Cheers.