From b4d5fa020dc21336d18ac0c86eb9ea1b78f243d5 Mon Sep 17 00:00:00 2001 From: Fancy code <258828110.@qq.com> Date: Wed, 6 Mar 2024 00:23:17 -0800 Subject: [PATCH] Backup --- application/MissionManager/src/AppMonitor.cpp | 18 ++++++++++++++++++ .../MissionManager/src/DataProcessing.h | 4 ++-- .../MissionManager/src/MissionManager.h | 4 ++-- .../MissionManager/src/MissionManagerMakePtr.h | 4 ++-- .../MissionManager/src/MissionStateMachine.h | 4 ++-- 5 files changed, 26 insertions(+), 8 deletions(-) diff --git a/application/MissionManager/src/AppMonitor.cpp b/application/MissionManager/src/AppMonitor.cpp index 615a98bd..58ee3390 100644 --- a/application/MissionManager/src/AppMonitor.cpp +++ b/application/MissionManager/src/AppMonitor.cpp @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2023 Fancy Code. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include "AppMonitor.h" #include "ILog.h" StatusCode AppMonitor::GetProductInfo(AppGetProductInfo ¶m) @@ -11,6 +25,7 @@ StatusCode AppMonitor::GetProductInfo(AppGetProductInfo ¶m) } StatusCode AppMonitor::GetDeviceAttr(AppGetDeviceAttr ¶m) { + LogInfo("AppMonitor::GetDeviceAttr.\n"); param.mUUID = "test"; param.mSoftVersion = "test"; param.mOtaVersion = "test"; @@ -24,6 +39,7 @@ StatusCode AppMonitor::GetDeviceAttr(AppGetDeviceAttr ¶m) } StatusCode AppMonitor::GetMediaInfo(AppGetMeidaInfo ¶m) { + LogInfo("AppMonitor::GetMediaInfo.\n"); param.mRtspUrl = "test"; param.mTransport = "test"; param.mPort = 123; @@ -31,6 +47,7 @@ StatusCode AppMonitor::GetMediaInfo(AppGetMeidaInfo ¶m) } StatusCode AppMonitor::GetSdCardInfo(AppGetSdCardInfo ¶m) { + LogInfo("AppMonitor::GetSdCardInfo.\n"); param.mStatus = SdCardStatus::CARD_DAMAGED; param.mFree = 0; param.mTotal = 0; @@ -38,6 +55,7 @@ StatusCode AppMonitor::GetSdCardInfo(AppGetSdCardInfo ¶m) } StatusCode AppMonitor::GetBatteryInfo(AppGetBatteryInfo ¶m) { + LogInfo("AppMonitor::GetBatteryInfo.\n"); param.mCapacity = 0; param.mChargeStatus = ChargeStatus::CHARGING; return CreateStatusCode(STATUS_CODE_OK); diff --git a/application/MissionManager/src/DataProcessing.h b/application/MissionManager/src/DataProcessing.h index 7f170e2b..3543792a 100644 --- a/application/MissionManager/src/DataProcessing.h +++ b/application/MissionManager/src/DataProcessing.h @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef DATAPROCESSING_H -#define DATAPROCESSING_H +#ifndef DATA_PROCESSING_H +#define DATA_PROCESSING_H #include "IMissionManager.h" #include "IStateMachine.h" #include diff --git a/application/MissionManager/src/MissionManager.h b/application/MissionManager/src/MissionManager.h index 7b333340..a1e6af4a 100644 --- a/application/MissionManager/src/MissionManager.h +++ b/application/MissionManager/src/MissionManager.h @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MISSIONMANAGER_H -#define MISSIONMANAGER_H +#ifndef MISSION_MANAGER_H +#define MISSION_MANAGER_H #include "IMissionManager.h" class MissionManager : public IMissionManager { diff --git a/application/MissionManager/src/MissionManagerMakePtr.h b/application/MissionManager/src/MissionManagerMakePtr.h index c2e0b37b..aac79f27 100644 --- a/application/MissionManager/src/MissionManagerMakePtr.h +++ b/application/MissionManager/src/MissionManagerMakePtr.h @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MISSIONMANAGERMAKEIMPL_H -#define MISSIONMANAGERMAKEIMPL_H +#ifndef MISSION_MANAGER_MAKE_PTR_H +#define MISSION_MANAGER_MAKE_PTR_H #include "IMcuManager.h" #include "IMissionManager.h" #include "IStateMachine.h" diff --git a/application/MissionManager/src/MissionStateMachine.h b/application/MissionManager/src/MissionStateMachine.h index f0eccb9a..c7273b30 100644 --- a/application/MissionManager/src/MissionStateMachine.h +++ b/application/MissionManager/src/MissionStateMachine.h @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MISSIONSTATEMACHINE_H -#define MISSIONSTATEMACHINE_H +#ifndef MISSION_STATE_MACHINE_H +#define MISSION_STATE_MACHINE_H // #include "IDeviceManager.h" #include "IMcuManager.h" #include "IMissionManager.h"