添加请求点字段
This commit is contained in:
parent
84066c7dfd
commit
3e546985f2
@ -471,7 +471,7 @@ public class LoopbackCommunicationAdapter
|
||||
ACTION_STATUS = true;
|
||||
|
||||
//下发动作
|
||||
ExecuteAction.sendCmd(getProcessModel().getName(), command.getOperation(), getSerialNum());
|
||||
ExecuteAction.sendCmd(getProcessModel().getName(), getProcessModel().getPosition(), command.getOperation(), getSerialNum());
|
||||
|
||||
//进入阻塞
|
||||
while (ACTION_STATUS) {
|
||||
|
@ -12,5 +12,9 @@ public class RequestAction {
|
||||
* 动作
|
||||
*/
|
||||
private String action;
|
||||
/**
|
||||
* 当前位置
|
||||
*/
|
||||
private String point;
|
||||
|
||||
}
|
||||
|
@ -11,9 +11,12 @@ public class ExecuteAction extends BaseService {
|
||||
|
||||
/**
|
||||
* 下发动作到平台
|
||||
* @param vehicleName 车辆名称
|
||||
* @param point 当前位置
|
||||
* @param action 动作
|
||||
* @param serialNum 序列号
|
||||
*/
|
||||
public static void sendCmd(String vehicleName, String action, Integer serialNum) {
|
||||
public static void sendCmd(String vehicleName, String point, String action, Integer serialNum) {
|
||||
|
||||
String url = getUrl(vehicleName);
|
||||
|
||||
@ -24,6 +27,7 @@ public class ExecuteAction extends BaseService {
|
||||
|
||||
RequestAction requestAction = new RequestAction();
|
||||
requestAction.setAction(action);
|
||||
requestAction.setPoint(point);
|
||||
|
||||
BaseRequestTo baseRequestTo = new BaseRequestTo(
|
||||
4,
|
||||
|
Loading…
Reference in New Issue
Block a user