###You can specify using either assembly code or high level MTL formula.
In main file MTL.cpp:
2. Link the sensor to the .log file;
//e.g.
sensor[0]=new Event("./src/alt.log");
sensor[1]=new Event("./src/pitch.log");
In assembly code file test.ftasm
string asm_file="./src/test.ftasm";
In main file MTL.cpp:
2. Link the sensor to the .log file;
3. Write your MTL formula as a string in MTL.cpp. For MTL format, see Notes;
string formula="AND{AND{S[0],S[1]},ALW[3,5]{S[0]}}";
./setup.sh
./Debug/MTL
//e.g.
string formula="NOT{S[0]}";
string formula="NOT{NOT{S[0]}}";
string formula="KEP[5]{S[1]}";
string formula="NOT{KEP[2]{NOT{S[1]}}}";
string formula="AND{KEP[2]{S[0]},S[1]}";
string formula="ALW[5,10]{S[1]}";
string formula="NOT{AND{ALW[5,10]{S[0]},KEP[2]{S[1]}}}";
string formula="AND{KEP[2]{NOT{NOT{S[0]}}},S[0]}";
string formula="AND{S[1],ALW[0,8]{S[0]}}";
string formula="AND{S[1],KEP[8]{S[0]}}";
string formula="AND{ALW[5,10]{S[0]},KEP[2]{S[1]}}";
string formula="KEP[2]{S[1]}";
string formula="AND{AND{S[0],S[1]},ALW[3,5]{S[0]}}";