Yeap, I've come to collect the stupid
Feel free to pass it on 
I have a similar problem here except the problem persists even after the argument was changed to a non-const. Any idea as to why that might happen? Below is the implementation of the two operators.
{
out << pid.getKp() << pid.getKi() << pid.getKd();
return out;
}
{
in >> pid.getKp() >> pid.getKi() >> pid.getKd();
return in;
}
QDataStream &operator <<(QDataStream &out, const PID &pid)
{
out << pid.getKp() << pid.getKi() << pid.getKd();
return out;
}
QDataStream &operator >>(QDataStream &in, PID &pid)
{
in >> pid.getKp() >> pid.getKi() >> pid.getKd();
return in;
}
To copy to clipboard, switch view to plain text mode
Bookmarks