本文整理汇总了Java中org.droidplanner.core.gcs.follow.Follow类的典型用法代码示例。如果您正苦于以下问题:Java Follow类的具体用法?Java Follow怎么用?Java Follow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Follow类属于org.droidplanner.core.gcs.follow包,在下文中一共展示了Follow类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getFollowState
import org.droidplanner.core.gcs.follow.Follow; //导入依赖的package包/类
private FollowState getFollowState() {
final Follow followMe = this.droneMgr.getFollowMe();
final double radius = followMe.getRadius().valueInMeters();
final int state;
switch (followMe.getState()) {
default:
case FOLLOW_INVALID_STATE:
state = FollowState.STATE_INVALID;
break;
case FOLLOW_DRONE_NOT_ARMED:
state = FollowState.STATE_DRONE_NOT_ARMED;
break;
case FOLLOW_DRONE_DISCONNECTED:
state = FollowState.STATE_DRONE_DISCONNECTED;
break;
case FOLLOW_START:
state = FollowState.STATE_START;
break;
case FOLLOW_RUNNING:
state = FollowState.STATE_RUNNING;
break;
case FOLLOW_END:
state = FollowState.STATE_END;
break;
}
return new FollowState(state, radius, followModeToType(followMe.getType()));
}
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:36,代码来源:DroneApi.java
示例2: getFollowMe
import org.droidplanner.core.gcs.follow.Follow; //导入依赖的package包/类
public Follow getFollowMe() {
return followMe;
}
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:4,代码来源:DroneManager.java
示例3: enableFollowMe
import org.droidplanner.core.gcs.follow.Follow; //导入依赖的package包/类
@Override
public void enableFollowMe(FollowType followType) throws RemoteException {
final FollowAlgorithm.FollowModes selectedMode;
switch (followType) {
case ABOVE:
selectedMode = FollowAlgorithm.FollowModes.ABOVE;
break;
case LEAD:
selectedMode = FollowAlgorithm.FollowModes.LEAD;
break;
case LEASH:
selectedMode = FollowAlgorithm.FollowModes.LEASH;
break;
case CIRCLE:
selectedMode = FollowAlgorithm.FollowModes.CIRCLE;
break;
case LEFT:
selectedMode = FollowAlgorithm.FollowModes.LEFT;
break;
case RIGHT:
selectedMode = FollowAlgorithm.FollowModes.RIGHT;
break;
default:
selectedMode = null;
break;
}
if (selectedMode != null) {
final Follow followMe = this.droneMgr.getFollowMe();
if (!followMe.isEnabled())
followMe.toggleFollowMeState();
followMe.setType(selectedMode);
}
}
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:42,代码来源:DroneApi.java
示例4: disableFollowMe
import org.droidplanner.core.gcs.follow.Follow; //导入依赖的package包/类
@Override
public void disableFollowMe() throws RemoteException {
Follow follow = this.droneMgr.getFollowMe();
if (follow.isEnabled())
follow.toggleFollowMeState();
}
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:7,代码来源:DroneApi.java
示例5: Logic
import org.droidplanner.core.gcs.follow.Follow; //导入依赖的package包/类
public Logic() {
Handler handler = new org.droidplanner.desktop.logic.Handler();
drone = new DroneImpl(link, new Clock(), handler,FakeFactory.fakePreferences());
mavlinkHandler = new MavLinkMsgHandler(drone);
follow = new Follow(drone, handler, new FakeLocation());
}
开发者ID:ne0fhyk,项目名称:3DRServices,代码行数:7,代码来源:Logic.java
示例6: getFollowMe
import org.droidplanner.core.gcs.follow.Follow; //导入依赖的package包/类
public Follow getFollowMe(){
return followMe;
}
开发者ID:ne0fhyk,项目名称:3DRServices,代码行数:4,代码来源:DroneManager.java
注:本文中的org.droidplanner.core.gcs.follow.Follow类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论