当前位置: 首页>>代码示例>>Java>>正文


Java FtcRobotControllerService类代码示例

本文整理汇总了Java中com.qualcomm.ftccommon.FtcRobotControllerService的典型用法代码示例。如果您正苦于以下问题:Java FtcRobotControllerService类的具体用法?Java FtcRobotControllerService怎么用?Java FtcRobotControllerService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FtcRobotControllerService类属于com.qualcomm.ftccommon包,在下文中一共展示了FtcRobotControllerService类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onServiceBind

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(final FtcRobotControllerService service) {
  RobotLog.vv(FtcRobotControllerService.TAG, "%s.controllerService=bound", TAG);
  controllerService = service;
  updateUI.setControllerService(controllerService);

  updateUIAndRequestRobotSetup();
  programmingWebHandlers.setState(new FtcRobotControllerServiceState() {
    @NonNull
    @Override
    public WebServer getWebServer() {
      return service.getWebServer();
    }

    @Override
    public EventLoopManager getEventLoopManager() {
      return service.getRobot().eventLoopManager;
    }
  });
}
 
开发者ID:trc492,项目名称:Ftc2018RelicRecovery,代码行数:20,代码来源:FtcRobotControllerActivity.java

示例2: onStart

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
@Override
protected void onStart() {
  super.onStart();

  // save 4MB of logcat to the SD card
  RobotLog.writeLogcatToDisk(this, 4 * 1024);

  Intent intent = new Intent(this, FtcRobotControllerService.class);
  bindService(intent, connection, Context.BIND_AUTO_CREATE);

  utility.updateHeader(Utility.NO_FILE, R.string.pref_hardware_config_filename, R.id.active_filename, R.id.included_header);

  callback.wifiDirectUpdate(WifiDirectAssistant.Event.DISCONNECTED);

  entireScreenLayout.setOnTouchListener(new View.OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
      dimmer.handleDimTimer();
      return false;
    }
  });

  wifiLock.acquire();
}
 
开发者ID:MHS-FIRSTrobotics,项目名称:FTC-Simple,代码行数:25,代码来源:FtcRobotControllerActivity.java

示例3: onStart

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
@Override
protected void onStart() {
    super.onStart();

    // save 4MB of logcat to the SD card
    RobotLog.writeLogcatToDisk(this, 4 * 1024);

    Intent intent = new Intent(this, FtcRobotControllerService.class);
    bindService(intent, connection, Context.BIND_AUTO_CREATE);

    utility.updateHeader(Utility.NO_FILE, R.string.pref_hardware_config_filename, R.id.active_filename, R.id.included_header);

    callback.wifiDirectUpdate(WifiDirectAssistant.Event.DISCONNECTED);

    entireScreenLayout.setOnTouchListener(new View.OnTouchListener() {
        @Override
        public boolean onTouch(View v, MotionEvent event) {
            dimmer.handleDimTimer();
            return false;
        }
    });

}
 
开发者ID:FTC7729,项目名称:2016-FTC,代码行数:24,代码来源:FtcRobotControllerActivity.java

示例4: onStart

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
@Override
protected void onStart() {
  super.onStart();

  // save 4MB of logcat to the SD card
  RobotLog.writeLogcatToDisk(this, 4 * 1024);

  Intent intent = new Intent(this, FtcRobotControllerService.class);
  bindService(intent, connection, Context.BIND_AUTO_CREATE);

  utility.updateHeader(Utility.NO_FILE, R.string.pref_hardware_config_filename, R.id.active_filename, R.id.included_header);

  callback.wifiDirectUpdate(WifiDirectAssistant.Event.DISCONNECTED);

  entireScreenLayout.setOnTouchListener(new View.OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
      dimmer.handleDimTimer();
      return false;
    }
  });

}
 
开发者ID:ftc8099,项目名称:resQ-2015,代码行数:24,代码来源:FtcRobotControllerActivity.java

示例5: onServiceBind

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(FtcRobotControllerService service) {
  RobotLog.vv(FtcRobotControllerService.TAG, "%s.controllerService=bound", TAG);
  controllerService = service;
  updateUI.setControllerService(controllerService);

  updateUIAndRequestRobotSetup();
}
 
开发者ID:ykarim,项目名称:FTC2016,代码行数:8,代码来源:FtcRobotControllerActivity.java

示例6: onServiceBind

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(FtcRobotControllerService service) {
  DbgLog.msg("Bound to Ftc Controller Service");
  controllerService = service;
  updateUI.setControllerService(controllerService);

  callback.wifiDirectUpdate(controllerService.getWifiDirectStatus());
  callback.robotUpdate(controllerService.getRobotStatus());
  requestRobotSetup();
}
 
开发者ID:MHS-FIRSTrobotics,项目名称:FTC-Simple,代码行数:10,代码来源:FtcRobotControllerActivity.java

示例7: onServiceBind

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(FtcRobotControllerService service) {
    RobotLog.vv(FtcRobotControllerService.TAG, "%s.controllerService=bound", TAG);
    controllerService = service;
    updateUI.setControllerService(controllerService);

    updateUIAndRequestRobotSetup();
}
 
开发者ID:FTC7729,项目名称:2016-FTC,代码行数:8,代码来源:FtcRobotControllerActivity.java

示例8: onServiceBind

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(FtcRobotControllerService service) {
    DbgLog.msg("Bound to Ftc Controller Service");
    controllerService = service;
    updateUI.setControllerService(controllerService);

    callback.wifiDirectUpdate(controllerService.getWifiDirectStatus());
    callback.robotUpdate(controllerService.getRobotStatus());
    requestRobotSetup();
}
 
开发者ID:FTC7729,项目名称:2016-FTC,代码行数:10,代码来源:FtcRobotControllerActivity.java

示例9: onServiceDisconnected

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
@Override
public void onServiceDisconnected(ComponentName name) {
  RobotLog.vv(FtcRobotControllerService.TAG, "%s.controllerService=null", TAG);
  controllerService = null;
}
 
开发者ID:ykarim,项目名称:FTC2016,代码行数:6,代码来源:FtcRobotControllerActivity.java

示例10: bindToService

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
protected void bindToService() {
  readNetworkType(NETWORK_TYPE_FILENAME);
  Intent intent = new Intent(this, FtcRobotControllerService.class);
  intent.putExtra(NetworkConnectionFactory.NETWORK_CONNECTION_TYPE, networkType);
  bindService(intent, connection, Context.BIND_AUTO_CREATE);
}
 
开发者ID:ykarim,项目名称:FTC2016,代码行数:7,代码来源:FtcRobotControllerActivity.java

示例11: bindToService

import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
protected void bindToService() {
  readNetworkType();
  Intent intent = new Intent(this, FtcRobotControllerService.class);
  intent.putExtra(NetworkConnectionFactory.NETWORK_CONNECTION_TYPE, networkType);
  bindService(intent, connection, Context.BIND_AUTO_CREATE);
}
 
开发者ID:trc492,项目名称:Ftc2018RelicRecovery,代码行数:7,代码来源:FtcRobotControllerActivity.java


注:本文中的com.qualcomm.ftccommon.FtcRobotControllerService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。