TwiceAsNice  2019-02-18
Classes | Functions | Variables
nse_telescope Namespace Reference

Classes

class  NexStarScope
 

Functions

def print_command (cmd)
 
def decode_command (cmd)
 
def split_cmds (data)
 
def make_checksum (data)
 
def ack_cmd (cmd)
 
def f2dms (f)
 
def parse_pos (d)
 
def repr_pos (alt, azm)
 
def repr_angle (a)
 
def unpack_int3 (d)
 
def pack_int3 (f)
 
def unpack_int2 (d)
 
def pack_int2 (v)
 

Variables

dictionary targets
 
dictionary trg_names = {value:key for key, value in targets.items()}
 
dictionary control
 
dictionary commands
 
dictionary cmd_names = {value:key for key, value in commands.items()}
 
list ACK_CMDS = [0x02,0x04,0x06,0x24,]
 
int MC_ALT = 0x11
 
int MC_AZM = 0x10
 
dictionary trg_cmds
 
dictionary RATES
 

Function Documentation

◆ ack_cmd()

def nse_telescope.ack_cmd (   cmd)

◆ decode_command()

def nse_telescope.decode_command (   cmd)

◆ f2dms()

def nse_telescope.f2dms (   f)
Convert fraction of the full rotation to DMS triple (degrees).

◆ make_checksum()

def nse_telescope.make_checksum (   data)

◆ pack_int2()

def nse_telescope.pack_int2 (   v)

◆ pack_int3()

def nse_telescope.pack_int3 (   f)

◆ parse_pos()

def nse_telescope.parse_pos (   d)
Parse first three bytes into the DMS string

◆ print_command()

def nse_telescope.print_command (   cmd)

◆ repr_angle()

def nse_telescope.repr_angle (   a)

◆ repr_pos()

def nse_telescope.repr_pos (   alt,
  azm 
)

◆ split_cmds()

def nse_telescope.split_cmds (   data)

◆ unpack_int2()

def nse_telescope.unpack_int2 (   d)

◆ unpack_int3()

def nse_telescope.unpack_int3 (   d)

Variable Documentation

◆ ACK_CMDS

list nse_telescope.ACK_CMDS = [0x02,0x04,0x06,0x24,]

◆ cmd_names

dictionary nse_telescope.cmd_names = {value:key for key, value in commands.items()}

◆ commands

dictionary nse_telescope.commands

◆ control

dictionary nse_telescope.control
Initial value:
1 = {
2  'HC' :0x04,
3  'HC+':0x0d,
4  'APP':0x20,
5  }

◆ MC_ALT

int nse_telescope.MC_ALT = 0x11

◆ MC_AZM

int nse_telescope.MC_AZM = 0x10

◆ RATES

dictionary nse_telescope.RATES
Initial value:
1 = {
2  0 : 0.0,
3  1 : 1/(360*60),
4  2 : 2/(360*60),
5  3 : 5/(360*60),
6  4 : 15/(360*60),
7  5 : 30/(360*60),
8  6 : 1/360,
9  7 : 2/360,
10  8 : 5/360,
11  9 : 10/360
12 }

◆ targets

dictionary nse_telescope.targets
Initial value:
1 = {'ANY':0x00,
2  'MB' :0x01,
3  'HC' :0x04,
4  'UKN1':0x05,
5  'HC+':0x0d,
6  'AZM':0x10,
7  'ALT':0x11,
8  'APP':0x20,
9  'GPS':0xb0,
10  'UKN2': 0xb4,
11  'WiFi':0xb5,
12  'BAT':0xb6,
13  'CHG':0xb7,
14  'LIGHT':0xbf
15  }

◆ trg_cmds

dictionary nse_telescope.trg_cmds
Initial value:
1 = {
2  'BAT': {
3  0x10:'GET_VOLTAGE',
4  0x18:'GET_SET_CURRENT',
5  },
6  'CHG': {
7  0x10: 'GET_SET_MODE',
8  },
9  'LIGHT': {
10  0x10:'GET_SET_LEVEL',
11  },
12 }

◆ trg_names

dictionary nse_telescope.trg_names = {value:key for key, value in targets.items()}