-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
41 lines (35 loc) · 878 Bytes
/
main.cpp
File metadata and controls
41 lines (35 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <iostream>
#include <Core/Log.h>
#include <Vision/Vision.h>
#include <Core/Config.h>
#include <Game/Game.h>
#include <Network/Debugger.h>
#include <Network/GrSim.h>
#include <Tools/Timer.h>
int main(){
Phoenix::Log::Init();
PHX_CORE_INFO("Let's Rock");
Phoenix::Config config;
Phoenix::Debugger debug;
Phoenix::GrSim grsim;
Phoenix::Vision vision;
Phoenix::Game game;
grsim.InitPosition();
while(true){
PHX_SCOPE_TIMER("MainLoop")
{
PHX_SCOPE_TIMER("Vision Receive Packet")
vision.ReceivePacket();
}
{
PHX_SCOPE_TIMER("GrSim Command")
grsim.SendCommand({3, 0.0, 0.0, 0.0, 0.0, 0.0});
}
{
PHX_SCOPE_TIMER("Flush")
Phoenix::Debugger::Flush();
grsim.FlushCommands();
}
}
return 0;
}