|
@@ -178,7 +178,12 @@ public class sceneGrpcServer extends SceneGrpcServiceGrpc.SceneGrpcServiceImplBa
|
|
|
int offFrameIndex = (int)Math.ceil(hAngle);
|
|
|
int currentFrame = rotateFrameEntity.getFrameIndex(); //从数据库里读取
|
|
|
currentFrame +=offFrameIndex;
|
|
|
- currentFrame = currentFrame % 359;
|
|
|
+ if(currentFrame<0){
|
|
|
+ currentFrame+=360;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ currentFrame = currentFrame % 359;
|
|
|
+ }
|
|
|
//currentFrame
|
|
|
log.info("currentFrame{}",currentFrame);
|
|
|
String appId = user.getAppId();
|
|
@@ -202,7 +207,7 @@ public class sceneGrpcServer extends SceneGrpcServiceGrpc.SceneGrpcServiceImplBa
|
|
|
log.info("VideoFramePath{}", metaConfig.getVideoFramePath());
|
|
|
NormalReply res = NormalReply.newBuilder()
|
|
|
.setTraceIds(0, trace_id)
|
|
|
- .setVehicle(null)
|
|
|
+ //.setVehicle(null)
|
|
|
.setNewUserStates(0, userState)
|
|
|
.setActionResponses(0, 0) //这个要查查
|
|
|
.setGetStateType(0)
|
|
@@ -555,7 +560,7 @@ public class sceneGrpcServer extends SceneGrpcServiceGrpc.SceneGrpcServiceImplBa
|
|
|
private RenderInfo createRenderInfo() {
|
|
|
RenderInfo renderInfo = RenderInfo.newBuilder()
|
|
|
.setRenderType(0)
|
|
|
- .setVideoFrame(null)
|
|
|
+ .setVideoFrame("")
|
|
|
.setCameraStateType(0)
|
|
|
.setIsMoving(0)
|
|
|
.setNeedIfr(0)
|
|
@@ -570,7 +575,7 @@ public class sceneGrpcServer extends SceneGrpcServiceGrpc.SceneGrpcServiceImplBa
|
|
|
}
|
|
|
|
|
|
private Event createEvent() {
|
|
|
- Event event = Event.newBuilder().setId("").setType(0).setRotateEvent(null).setRemoveVisitorEvent(null).build();
|
|
|
+ Event event = Event.newBuilder().setId("").setType(0).build();
|
|
|
return event;
|
|
|
}
|
|
|
|