diff --git a/Models/Pelco.cs b/Models/Pelco.cs index 440c61c..b8c0cda 100644 --- a/Models/Pelco.cs +++ b/Models/Pelco.cs @@ -423,21 +423,23 @@ public byte[] Go_To_Zero_Pan(int addr) //'General Response' Debug.Assert 0 <= addr <= 255, addr return command(addr, 0, 0x07, 0, 0x22) - - public byte[] Set_Auxiliary(addr, value) + */ + public byte[] Set_Auxiliary(int addr, int value) { - //'General Response' - Debug.Assert 0 <= addr <= 255, addr - Debug.Assert 1 <= value <= 8, value - return command(addr, 0, 0x09, 0, value) + //'General Response' + //Debug.Assert 0 <= addr <= 255, addr + //Debug.Assert 1 <= value <= 8, value + return command(addr, 0x09, value); + } - public byte[] Clear_Auxiliary(addr, value) + public byte[] Clear_Auxiliary(int addr, int value) { - //'General Response' - Debug.Assert 0 <= addr <= 255, addr - Debug.Assert 1 <= value <= 8, value - return command(addr, 0, 0x0b, 0, value) - + //'General Response' + //Debug.Assert 0 <= addr <= 255, addr + //Debug.Assert 1 <= value <= 8, value + return command(addr, 0x0b, value); + } + /* public byte[] Remote_Reset(int addr) { //'General Response' @@ -512,8 +514,8 @@ public byte[] Zone_Scan_Off(addr, value) //'General Response' Debug.Assert 0 <= addr <= 255, addr return command(addr, 0, 0x1d, 0, 0) - - __doc__ += ''' + */ + /* __doc__ += ''' Set Pattern Start(0x1F) Run Pattern(0x23) @@ -894,6 +896,11 @@ public byte[] Query_Tilt_Response(int addr, int degrees) return command(addr, 0x5b, degrees); } + /* Query Zoom Position Response(0x5D) + + The position is given in hundredths of a degree and has a range from 0 to 35999 (decimal). + Refer to examples listed in description of the “Set Tilt Position”, opcode 0x4D command. + */ public byte[] Query_Zoom_Response(int addr, int value) { //'Extended Response' # ??? XXX diff --git a/Views/MainWindow.axaml b/Views/MainWindow.axaml index d24b00c..3c2370d 100644 --- a/Views/MainWindow.axaml +++ b/Views/MainWindow.axaml @@ -98,7 +98,7 @@ - + - + @@ -145,7 +148,10 @@ - + + -