🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
MissionCommand.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstUtil/Object.hpp"
25#include "AstUtil/ObjectNamed.hpp"
26#include "Command.hpp"
27
28AST_NAMESPACE_BEGIN
29
36class MissionCommand;
37using PMissianCommand = MissionCommand*;
38using HMissionCommand = SharedPtr<MissionCommand>;
39
43class AST_CORE_API MissionCommand: public Command
44{
45public:
46 AST_OBJECT(MissionCommand)
47
48
50 {
51 eReturn = -999,
52 eStop = -1999,
53 eBreak = -2999,
54 eContinue = -3999,
55 };
56 MissionCommand() = default;
57 ~MissionCommand() override = default;
58public:
61 virtual errc_t execute() override= 0;
62private:
63
64};
65
66
67
70AST_NAMESPACE_END
定义 Command.hpp:34
任务命令(虚基类),用于定义任务序列中的任务命令,例如初始状态、轨道机动、轨道预报等
定义 MissionCommand.hpp:44
EControlCommand
控制命令
定义 MissionCommand.hpp:50
virtual errc_t execute() override=0
执行任务