[FYI] CommViewer plugin

jpoirier
Posts: 27
Joined: Wed Jun 18, 2014 7:48 pm

[FYI] CommViewer plugin

Post by jpoirier »

Not sure if anyone's interested in this but thought I'd share-it's a very simple plugin.

#### CommViewer
Draws a small, mouse clickable, text box in the upper left hand corner of the
simulator screen. The output shows PTT (Push-To-Talk), Com1, and Com2 status.

When the output box is clicked on, the plugin will select an unselected Com
or unselect a Com previously selected via mouse click. Typically, this is useful
for listening to ATIS information without having to leave the primary Com. Note,
for aircraft with an audio panel that allows multiple Com selection, the mouse
click is ignored.


#### Example Output (where: 0=Unselected, 1=Selected):

PTT: OFF COM1: 1 COM2: 0

PTT: ON COM1: 1 COM2: 0

PTT: OFF COM1: 1 COM2: 1

Source code: https://github.com/jpoirier/xplane-commviewer-plugin
Windows Binaries: https://github.com/jpoirier/xplane-comm ... r/releases

I can, at some point, add OSX and/or Linux build files and binaries if anyone is interested?

-joe
jpoirier
Posts: 27
Joined: Wed Jun 18, 2014 7:48 pm

Re: [FYI] CommViewer plugin

Post by jpoirier »

It's a floating box now and you can move it around via mouse.

-joe
Jeff N
Posts: 304
Joined: Wed Sep 14, 2011 3:17 pm
Location: Foothill Ranch, CA / KSNA

Re: [FYI] CommViewer plugin

Post by Jeff N »

Sounds neat. Do you have a screen shot?
Keith Smith
Posts: 9942
Joined: Sat Oct 09, 2010 8:38 pm
Location: Pompton Plains, NJ
Contact:

Re: [FYI] CommViewer plugin

Post by Keith Smith »

jpoirier wrote:It's a floating box now and you can move it around via mouse.

-joe
There are datarefs which show the PE connection status, TX status and RX status if you're interested, too. They're pretty easy to find with the dataref editor.

The RX status is inaccurate right now as a result of the voice server upgrade, I'll try to get that fixed this week.
jpoirier
Posts: 27
Joined: Wed Jun 18, 2014 7:48 pm

Re: [FYI] CommViewer plugin

Post by jpoirier »

Not much to look at really but here're a couple pics

The window's default location when X-Plane spawns:
The window's default location when X-Plane spawns
The window's default location when X-Plane spawns
CommViewer1.gif (349.46 KiB) Viewed 7005 times
The window moved just above the audio panel:
The window moved just above the audio panel
The window moved just above the audio panel
CommViewer2.gif (352.16 KiB) Viewed 7005 times
jpoirier
Posts: 27
Joined: Wed Jun 18, 2014 7:48 pm

Re: [FYI] CommViewer plugin

Post by jpoirier »

Keith Smith wrote: There are datarefs which show the PE connection status, TX status and RX status if you're interested, too. They're pretty easy to find with the dataref editor.
The RX status is inaccurate right now as a result of the voice server upgrade, I'll try to get that fixed this week.
I'm a bit late on the reply...

Thanks. I'd come across the PE connection status data refs while poking around the forums prior to
putting the plugin together and had planned on adding the info at some point.

Although I'm not so sure the textural representation is optimal for many/most people, I'll add the tx/rx
status to the plugin this weekend. I tend to prefer the textural output myself, but then I'm more of a
command line person.

-joe
Keith Smith
Posts: 9942
Joined: Sat Oct 09, 2010 8:38 pm
Location: Pompton Plains, NJ
Contact:

Re: [FYI] CommViewer plugin

Post by Keith Smith »

Joe,

There is a bug in the RX status in the PE plugin due to the voice server upgrade. I'll let you know when it's resolved.
jpoirier
Posts: 27
Joined: Wed Jun 18, 2014 7:48 pm

Re: [FYI] CommViewer plugin

Post by jpoirier »

Keith Smith wrote:Joe,
There is a bug in the RX status in the PE plugin due to the voice server upgrade. I'll let you know when it's resolved.
Roger. Thanks!

-joe
jpoirier
Posts: 27
Joined: Wed Jun 18, 2014 7:48 pm

Re: [FYI] CommViewer plugin

Post by jpoirier »

Updated to include PilotEdge connection and TX/RX status.

Holding the mouse pointer down on the box allows movement.
Mouse clicking on the box selects an unselected comm, e.g. to listen to ATIS on the secondary radio, or unselects a comm previously selected via mouse click.

-joe

Source code: https://github.com/jpoirier/xplane-commviewer-plugin
Windows Binaries: https://github.com/jpoirier/xplane-comm ... r/releases
Attachments
CommViewer-v1.4.jpg
CommViewer-v1.4.jpg (91.07 KiB) Viewed 6922 times
jpoirier
Posts: 27
Joined: Wed Jun 18, 2014 7:48 pm

Re: [FYI] CommViewer plugin

Post by jpoirier »

Added a PilotEdge Plugin registration check, so calls to XPLMFindDataRef happen
once for each reference item (tx/rx/connected) at start-up rather than every flight
loop callback.

Plugin binaries for Linux, Windows, and Mac included.

#### CommViewer
At start-up, a small, mouse clickable, text box is drawn in the upper left hand corner
of the simulator screen. The output shows PilotEdge, TX/RX, PTT (Push-To-Talk), Com1,
and Com2 status. You can move the CommViewer box around by placing your mouse
pointer anywhere in the CommViewer box, holding down the left mouse button, and
dragging the box around.

When the output box is clicked on, the plugin will select an un-selected Com
or un-select a Com previously selected via mouse click. Typically, this is useful
for listening to ATIS information without having to leave the primary Com.

Note, for aircraft with an audio panel that allows multiple Com selection, the mouse
click to change comms is ignored.


Source code repo: https://github.com/jpoirier/xplane-commviewer-plugin
Plugin binaries (32/64 bit win/lin/mac): https://github.com/jpoirier/xplane-comm ... v1.5.0.zip
Release archive: https://github.com/jpoirier/xplane-comm ... n/releases

-joe
Post Reply