Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default device name #63

Open
wschoenell opened this issue Jul 1, 2015 · 5 comments
Open

Default device name #63

wschoenell opened this issue Jul 1, 2015 · 5 comments
Labels

Comments

@wschoenell
Copy link
Contributor

The default behavior of chimera is to set the device name of telescope, camera and others as /dev/ttyS0. This causes confusion when the instrument itself does not haves this property. This leads the user to think that this device is connected to the serial port.

An example is shown below. TheSkyTelescope does not uses a "real" device on the computer.

C:\Anaconda\Scripts>python chimera-tel --info
========================================
telescope: /TheSkyTelescope/paramount (/dev/ttyS0).
current position ra/dec: 02:21:51.981 -83:47:03.168
current position alt/az: +51:50:16.605 +180:56:34.501
tracking: enabled.
========================================

I suggest to change the default device to None.

@wschoenell wschoenell added the bug label Jul 1, 2015
@phsilva
Copy link
Contributor

phsilva commented Jul 2, 2015

As far as I remember, there is no forced config 'device', so each instrument that in fact needs a 'device' config adds it. So what's wrong with having sane defaults? You'll need to config it anyway.

If the issue is seeing '/dev/ttyS0' and thinking that it is in your machine while that port is in the remote telescope machine, the soluton is:

C:\Anaconda\Scripts>python chimera-tel --info
========================================
telescope: /TheSkyTelescope/paramount (/dev/ttyS0 @ <remote-machine-name-or-ip>).
current position ra/dec: 02:21:51.981 -83:47:03.168
current position alt/az: +51:50:16.605 +180:56:34.501
tracking: enabled.
========================================

@wschoenell
Copy link
Contributor Author

The issue is to see /dev/ttyS0 on a device that does not even use a serial port to access it. In the example that I've sent, the device is on the local machine. It is connected to the computer by a serial port, but chimera access it via windows COM+. This confuses the user.

@wschoenell
Copy link
Contributor Author

Also, the /dev/ttyS0 is shown on most of the USB cameras. A sane default for me would be None, or something alike.

@ankanaan
Copy link
Contributor

ankanaan commented Jul 3, 2015

I, for a change, agree with William :-) , I like None better than /dev/ttyS0

Antonio

On Fri, Jul 3, 2015 at 5:15 AM, William Schoenell notifications@github.com
wrote:

Also, the /dev/ttyS0 is shown on most of the USB cameras. A sane default
for me would be None, or something alike.


Reply to this email directly or view it on GitHub
#63 (comment).

@phsilva
Copy link
Contributor

phsilva commented Jul 3, 2015

ok, it makes sense to leave device with sane default only where it matters. waiting for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants