Receive a heading from serial (rpi > fc)

This commit is contained in:
KonradIT
2025-01-15 23:07:49 +01:00
parent 825ee472e1
commit ff555c7a9a
2 changed files with 16 additions and 1 deletions
+8
View File
@@ -392,6 +392,14 @@ Message *_parsePacket(String p)
return m;
}
if (cmd.equalsIgnoreCase("heading"))
{
Message *m = new Message();
m->type = MessageType::HEADING;
m->payload.heading.heading = _intParam(p, 0);
return m;
}
return NULL;
}