balabala~~~
This commit is contained in:
@@ -50,6 +50,8 @@ class VrModeController {
|
||||
return sInstance;
|
||||
}
|
||||
|
||||
private boolean mIsBinding = false;
|
||||
|
||||
public void onVrModeChanged( boolean isVrMode ) {
|
||||
if ( isVrMode ) {
|
||||
bindVrModeService();
|
||||
@@ -59,6 +61,10 @@ class VrModeController {
|
||||
}
|
||||
|
||||
private void bindVrModeService() {
|
||||
if ( mIsBinding ) {
|
||||
return;
|
||||
}
|
||||
mIsBinding = true;
|
||||
Intent intent = new Intent();
|
||||
intent.setComponent( new ComponentName( "com.mogo.launcher.f", "com.mogo.module.machine.vision.MachineVisionMapService" ) );
|
||||
AbsMogoApplication.getApp().bindService( intent, mServiceConnection = new ServiceConnection() {
|
||||
@@ -85,6 +91,7 @@ class VrModeController {
|
||||
}
|
||||
|
||||
private void unbindVrModeService() {
|
||||
mIsBinding = false;
|
||||
if ( mServiceConnection != null ) {
|
||||
try {
|
||||
AbsMogoApplication.getApp().unbindService( mServiceConnection );
|
||||
|
||||
@@ -13,9 +13,23 @@ public
|
||||
*/
|
||||
class LocationResult {
|
||||
|
||||
/**
|
||||
* sn
|
||||
*/
|
||||
public String sn;
|
||||
|
||||
/**
|
||||
* 最后一个定位点的莫顿码
|
||||
*/
|
||||
public long mortonCode;
|
||||
|
||||
/**
|
||||
* 最后一个定位点
|
||||
*/
|
||||
public CloudLocationInfo lastCoordinate;
|
||||
|
||||
/**
|
||||
* 1s 内的连续定位点
|
||||
*/
|
||||
public List< CloudLocationInfo > coordinates;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,13 @@ public
|
||||
*/
|
||||
class OnePerSecondSendContent {
|
||||
|
||||
/**
|
||||
* 自车定位点
|
||||
*/
|
||||
public LocationResult self;
|
||||
|
||||
/**
|
||||
* adas 识别物体:1s 识别到的最后帧
|
||||
*/
|
||||
public List< ADASRecognizedResult > adas;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user