Backup
This commit is contained in:
parent
d3dca44f91
commit
b4d5fa020d
|
@ -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 "AppMonitor.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
StatusCode AppMonitor::GetProductInfo(AppGetProductInfo ¶m)
|
StatusCode AppMonitor::GetProductInfo(AppGetProductInfo ¶m)
|
||||||
|
@ -11,6 +25,7 @@ StatusCode AppMonitor::GetProductInfo(AppGetProductInfo ¶m)
|
||||||
}
|
}
|
||||||
StatusCode AppMonitor::GetDeviceAttr(AppGetDeviceAttr ¶m)
|
StatusCode AppMonitor::GetDeviceAttr(AppGetDeviceAttr ¶m)
|
||||||
{
|
{
|
||||||
|
LogInfo("AppMonitor::GetDeviceAttr.\n");
|
||||||
param.mUUID = "test";
|
param.mUUID = "test";
|
||||||
param.mSoftVersion = "test";
|
param.mSoftVersion = "test";
|
||||||
param.mOtaVersion = "test";
|
param.mOtaVersion = "test";
|
||||||
|
@ -24,6 +39,7 @@ StatusCode AppMonitor::GetDeviceAttr(AppGetDeviceAttr ¶m)
|
||||||
}
|
}
|
||||||
StatusCode AppMonitor::GetMediaInfo(AppGetMeidaInfo ¶m)
|
StatusCode AppMonitor::GetMediaInfo(AppGetMeidaInfo ¶m)
|
||||||
{
|
{
|
||||||
|
LogInfo("AppMonitor::GetMediaInfo.\n");
|
||||||
param.mRtspUrl = "test";
|
param.mRtspUrl = "test";
|
||||||
param.mTransport = "test";
|
param.mTransport = "test";
|
||||||
param.mPort = 123;
|
param.mPort = 123;
|
||||||
|
@ -31,6 +47,7 @@ StatusCode AppMonitor::GetMediaInfo(AppGetMeidaInfo ¶m)
|
||||||
}
|
}
|
||||||
StatusCode AppMonitor::GetSdCardInfo(AppGetSdCardInfo ¶m)
|
StatusCode AppMonitor::GetSdCardInfo(AppGetSdCardInfo ¶m)
|
||||||
{
|
{
|
||||||
|
LogInfo("AppMonitor::GetSdCardInfo.\n");
|
||||||
param.mStatus = SdCardStatus::CARD_DAMAGED;
|
param.mStatus = SdCardStatus::CARD_DAMAGED;
|
||||||
param.mFree = 0;
|
param.mFree = 0;
|
||||||
param.mTotal = 0;
|
param.mTotal = 0;
|
||||||
|
@ -38,6 +55,7 @@ StatusCode AppMonitor::GetSdCardInfo(AppGetSdCardInfo ¶m)
|
||||||
}
|
}
|
||||||
StatusCode AppMonitor::GetBatteryInfo(AppGetBatteryInfo ¶m)
|
StatusCode AppMonitor::GetBatteryInfo(AppGetBatteryInfo ¶m)
|
||||||
{
|
{
|
||||||
|
LogInfo("AppMonitor::GetBatteryInfo.\n");
|
||||||
param.mCapacity = 0;
|
param.mCapacity = 0;
|
||||||
param.mChargeStatus = ChargeStatus::CHARGING;
|
param.mChargeStatus = ChargeStatus::CHARGING;
|
||||||
return CreateStatusCode(STATUS_CODE_OK);
|
return CreateStatusCode(STATUS_CODE_OK);
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#ifndef DATAPROCESSING_H
|
#ifndef DATA_PROCESSING_H
|
||||||
#define DATAPROCESSING_H
|
#define DATA_PROCESSING_H
|
||||||
#include "IMissionManager.h"
|
#include "IMissionManager.h"
|
||||||
#include "IStateMachine.h"
|
#include "IStateMachine.h"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#ifndef MISSIONMANAGER_H
|
#ifndef MISSION_MANAGER_H
|
||||||
#define MISSIONMANAGER_H
|
#define MISSION_MANAGER_H
|
||||||
#include "IMissionManager.h"
|
#include "IMissionManager.h"
|
||||||
class MissionManager : public IMissionManager
|
class MissionManager : public IMissionManager
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#ifndef MISSIONMANAGERMAKEIMPL_H
|
#ifndef MISSION_MANAGER_MAKE_PTR_H
|
||||||
#define MISSIONMANAGERMAKEIMPL_H
|
#define MISSION_MANAGER_MAKE_PTR_H
|
||||||
#include "IMcuManager.h"
|
#include "IMcuManager.h"
|
||||||
#include "IMissionManager.h"
|
#include "IMissionManager.h"
|
||||||
#include "IStateMachine.h"
|
#include "IStateMachine.h"
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#ifndef MISSIONSTATEMACHINE_H
|
#ifndef MISSION_STATE_MACHINE_H
|
||||||
#define MISSIONSTATEMACHINE_H
|
#define MISSION_STATE_MACHINE_H
|
||||||
// #include "IDeviceManager.h"
|
// #include "IDeviceManager.h"
|
||||||
#include "IMcuManager.h"
|
#include "IMcuManager.h"
|
||||||
#include "IMissionManager.h"
|
#include "IMissionManager.h"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user