You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
init()
{
json data;
Motor left(data["chassis"]["motor"]["left"]);
Motor rigjt (data["chassis"]["motor"]["right"]);
}
class Motor
{
Moror(json pragma):port(pragma["port"]),isRevase(pragma["isRevase"]),gear(pragma["gear"])
{
name =???//i want get the motor's upper object ->" left" or "right"
}
std::string name;
};
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: