• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ControlTower类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: setupServiceAndListener

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
@Before
public void setupServiceAndListener() {
    tower = mock(ControlTower.class);
    drone = mock(Drone.class);
    TestAppModule module = new TestAppModule();
    module.setControlTower(tower);
    module.setDrone(drone);

    DaggerTestAppComponent.builder()
            .testAppModule(module)
            .build();

    droneConnectionListener = mock(DroneConnectionListener.class);
    missionListener = mock(MissionListener.class);
    service = new DroneConnectionService(tower, drone, new RouteMissionMapper(), new DroneStateMapper());
}
 
开发者ID:Project-Helin,项目名称:drone-onboard-app,代码行数:17,代码来源:DroneConnectionServiceTest.java


示例2: onCreate

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
@Override
public void onCreate(){
    super.onCreate();
    applicationContext = getApplicationContext();
    pebbleDataHandler = new PebbleReceiverHandler(DP_UUID);
    PebbleKit.registerReceivedDataHandler(applicationContext, pebbleDataHandler);
    PebbleKit.registerReceivedAckHandler(applicationContext, new PebbleKit.PebbleAckReceiver(DP_UUID) {
        @Override
        public void receiveAck(Context context, int transactionId) {//Did pebble receive last msg?
            safeToSendNextPacketToPebble = true;
        }
    });

    controlTower = new ControlTower(applicationContext);
    this.drone = new Drone();
}
 
开发者ID:DroidPlanner,项目名称:tower-pebble,代码行数:17,代码来源:PebbleCommunicatorService.java


示例3: onCreate

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();

    final Context context = getApplicationContext();
    lbm = LocalBroadcastManager.getInstance(context);
    appPrefs = new AppPreferences(context);
    apiClientMgr = new GoogleApiClientManager(context, handler, apisList);
    apiClientMgr.setManagerListener(this);
    apiClientMgr.start();

    updateAppPreferences();

    controlTower = new ControlTower(context);
    controlTower.connect(this);

    this.drone = new Drone();

    LocalBroadcastManager.getInstance(context).registerReceiver(broadcastReceiver, intentFilter);
}
 
开发者ID:DroidPlanner,项目名称:tower-wear,代码行数:21,代码来源:DroneService.java


示例4: initDronekit

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
private void initDronekit(){
    Context context = getApplicationContext();

    controlTower = new ControlTower(context);
    drone = new Drone(context);
    missionProxy = new MissionProxy(this, this.drone);

    final IntentFilter intentFilter = new IntentFilter();
    intentFilter.addAction(ACTION_TOGGLE_DRONE_CONNECTION);

    registerReceiver(broadcastReceiver, intentFilter);
}
 
开发者ID:mxiao6,项目名称:Tower-develop,代码行数:13,代码来源:DroidPlannerApp.java


示例5: DroneConnectionService

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
@Inject
public DroneConnectionService(ControlTower controlTower, Drone drone, RouteMissionMapper missionMapper, DroneStateMapper droneStateMapper) {
    this.controlTower = controlTower;
    this.drone = drone;
    this.missionMapper = missionMapper;
    this.controlTower.connect(this);
    this.droneStateMapper = droneStateMapper;
}
 
开发者ID:Project-Helin,项目名称:drone-onboard-app,代码行数:9,代码来源:DroneConnectionService.java


示例6: onCreate

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    final Context context = getApplicationContext();

    dpPrefs = new DroidPlannerPrefs(context);
    lbm = LocalBroadcastManager.getInstance(context);

    controlTower = new ControlTower(context);
    drone = new Drone();
    missionProxy = new MissionProxy(context, this.drone);

    final Thread.UncaughtExceptionHandler dpExceptionHandler = new Thread.UncaughtExceptionHandler() {
        @Override
        public void uncaughtException(Thread thread, Throwable ex) {
            new ExceptionWriter(ex).saveStackTraceToSD(context);
            exceptionHandler.uncaughtException(thread, ex);
        }
    };

    exceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
    Thread.setDefaultUncaughtExceptionHandler(dpExceptionHandler);

    GAUtils.initGATracker(this);
    GAUtils.startNewSession(context);

    final IntentFilter intentFilter = new IntentFilter();
    intentFilter.addAction(ACTION_TOGGLE_DRONE_CONNECTION);

    registerReceiver(broadcastReceiver, intentFilter);
}
 
开发者ID:sommishra,项目名称:DroidPlanner-Tower,代码行数:32,代码来源:DroidPlannerApp.java


示例7: providesControlTower

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
@Provides
ControlTower providesControlTower(Context context) {
    return controlTower;
}
 
开发者ID:Project-Helin,项目名称:drone-onboard-app,代码行数:5,代码来源:TestAppModule.java


示例8: setControlTower

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
public void setControlTower(ControlTower controlTower) {
    this.controlTower = controlTower;
}
 
开发者ID:Project-Helin,项目名称:drone-onboard-app,代码行数:4,代码来源:TestAppModule.java


示例9: providesControlTower

import com.o3dr.android.client.ControlTower; //导入依赖的package包/类
@Provides
@Singleton
ControlTower providesControlTower(Context context) {
    return new ControlTower(context);
}
 
开发者ID:Project-Helin,项目名称:drone-onboard-app,代码行数:6,代码来源:AppModule.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java EndermanTeleportSound类代码示例发布时间:2022-05-23
下一篇:
Java UsageCriteria类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap