no comment
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "MBUtils.h"
|
||||
#include "StateManagement.h"
|
||||
#include <json/json.h>
|
||||
#include <cmath>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -48,6 +49,7 @@ bool StateManagement::OnNewMail(MOOSMSG_LIST &NewMail)
|
||||
Json::Value deviceState;
|
||||
std::string manualState;
|
||||
int missionState;
|
||||
int missionState;
|
||||
|
||||
if(key == "uManual_enable_cmd")
|
||||
{
|
||||
@@ -76,15 +78,16 @@ bool StateManagement::OnNewMail(MOOSMSG_LIST &NewMail)
|
||||
{
|
||||
if(missionState == 0)
|
||||
{
|
||||
case 0:
|
||||
deviceState["opMode"] = opModeLists.error;
|
||||
}
|
||||
if(missionState == 1)
|
||||
{
|
||||
break;
|
||||
case 1:
|
||||
deviceState["opMode"] = opModeLists.service;
|
||||
}
|
||||
if((missionState == 3) )
|
||||
{
|
||||
deviceState["opMode"] = opModeLists.maneuver;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user