edu.udayton.udri.asset.canon.ipcamera/src/edu/udayton/udri/asset/canon/ipcamera/IpCameraAsset.java
private void handleSetPan(final SetPanTiltCommand setPanTilt) throws CommandExecutionException
    {
        final int pan = (int)(setPanTilt.getPanTilt().getAzimuth()
                .getValue() * PAN_ADJUST);
        final URL panFinal;
        try
        {
            panFinal = new URL(m_Url + "control?pan=" + pan);
        }
        catch (final MalformedURLException ex)
        {
            Logging.log(LogService.LOG_ERROR, ex, "Malformed URL, Forming Pan Command URL");
            throw new CommandExecutionException("Malformed URL, Forming Pan Command");
        }
        Logging.log(LogService.LOG_DEBUG, "Pan Command Sent: " + panFinal);
        getInputStream(panFinal);
        Logging.log(LogService.LOG_INFO, "Updated pan to: " + pan);
    }
/**
     * Method used to send the new pan value to the Camera.
     * @param setPanTilt
     *     Command sent to the asset with the value from the new pan.
     * @throws CommandExecutionException 
     *     an error connecting to the IP camera.
     */
Method used to send the new pan value to the Camera.
@param setPanTilt
Command sent to the asset with the value from the new pan.
@throws CommandExecutionException
an error connecting to the IP camera.
Method used to send the new pan value to the Camera . @param setPanTilt Command sent to the asset with the value from the new pan . @throws CommandExecutionException an error connecting to the IP camera .
private void handleSetPan(final SetPanTiltCommand setPanTilt) throws CommandExecutionException
    {
        final int pan = (int)(setPanTilt.getPanTilt().getAzimuth()
                .getValue() * PAN_ADJUST);
        final URL panFinal;
        try
        {
            panFinal = new URL(m_Url + "control?pan=" + pan);
        }
        catch (final MalformedURLException ex)
        {
            Logging.log(LogService.LOG_ERROR, ex, "Malformed URL, Forming Pan Command URL");
            throw new CommandExecutionException("Malformed URL, Forming Pan Command");
        }
        Logging.log(LogService.LOG_DEBUG, "Pan Command Sent: " + panFinal);
        getInputStream(panFinal);
        Logging.log(LogService.LOG_INFO, "Updated pan to: " + pan);
    }
private void handleSetPan ( final SetPanTiltCommand setPanTilt ) throws CommandExecutionException { final int pan = ( int ) ( setPanTilt . getPanTilt ( ) . getAzimuth ( ) . getValue ( ) * PAN_ADJUST ) ; final URL panFinal ; try { panFinal = new URL ( m_Url + "control?pan=" + pan ) ; } catch ( final MalformedURLException ex ) { Logging . log ( LogService . LOG_ERROR , ex , "Malformed URL, Forming Pan Command URL" ) ; throw new CommandExecutionException ( "Malformed URL, Forming Pan Command" ) ; } Logging . log ( LogService . LOG_DEBUG , "Pan Command Sent: " + panFinal ) ; getInputStream ( panFinal ) ; Logging . log ( LogService . LOG_INFO , "Updated pan to: " + pan ) ; }
Method used to send the new pan value to the Camera.
Method used to send the new pan value to the Camera .