Commit f1dff934 by Hideaki Tai

add error emergency switch

parent ebd8c8ee
......@@ -277,7 +277,11 @@ void sendStatus()
{
if (b_streaming)
{
if (b_motor_active)
packer.pack(HARDWARE_ID, whill.battery(WhillOmni::LR::L), whill.battery(WhillOmni::LR::R), whill.errorCode(WhillOmni::LR::L), whill.errorCode(WhillOmni::LR::R));
else
packer.pack(HARDWARE_ID, whill.battery(WhillOmni::LR::L), whill.battery(WhillOmni::LR::R), 252, 252);
XBEE_SERIAL.write(packer.data(), packer.size());
}
}
......
  • Markdown is supported
    0% or
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or sign in to comment