| 93 | } |
| 94 | |
| 95 | void CanLoad::frameIn(const QCanBusFrame& frame) |
| 96 | { |
| 97 | if(d_ptr->_simStarted) { |
| 98 | // Load calculation assumes worst case with bit stuffing. |
| 99 | // https://github.com/linux-can/can-utils/blob/master/canframelen.c |
| 100 | d_ptr->_totalBits += (frame.hasExtendedFrameFormat() ? 80 : 55) + frame.payload().length() * 10; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void CanLoad::simBcastRcv(const QJsonObject &msg, const QVariant ¶m) |
| 105 | { |