no comment

This commit is contained in:
zengxiaobin
2023-11-28 15:42:28 +08:00
parent a05b90965e
commit ab637b71ff

View File

@@ -49,7 +49,6 @@ bool StateManagement::OnNewMail(MOOSMSG_LIST &NewMail)
Json::Value deviceState; Json::Value deviceState;
std::string manualState; std::string manualState;
int missionState; int missionState;
int missionState;
if(key == "uManual_enable_cmd") if(key == "uManual_enable_cmd")
{ {
@@ -78,16 +77,15 @@ bool StateManagement::OnNewMail(MOOSMSG_LIST &NewMail)
{ {
if(missionState == 0) if(missionState == 0)
{ {
case 0:
deviceState["opMode"] = opModeLists.error; deviceState["opMode"] = opModeLists.error;
break; }
case 1: if(missionState == 1)
{
deviceState["opMode"] = opModeLists.service; deviceState["opMode"] = opModeLists.service;
} }
if((missionState == 3) ) if((missionState == 3) )
{ {
deviceState["opMode"] = opModeLists.maneuver; deviceState["opMode"] = opModeLists.maneuver;
break;
} }
} }