<commit_before>#include "MotorDetailsPopulator.h"

MotorDetailsPopulator::MotorDetailsPopulator(I_PacketDecoder& packetDecoder, I_MotorDetailsData& motorDetailsData)
    : packetDecoder_(packetDecoder)
    , motorDetailsData_(motorDetailsData)
{
    connect(&packetDecoder_, SIGNAL(packetDecoded(const MotorDetailsMessage)), this, SLOT(populateData(const MotorDetailsData)));
}

void MotorDetailsPopulator::populateData(const MotorDetailsMessage message)
{
    I_MotorDetailsUnit& motorDetailsUnit = motorDetailsData_.getMotorDetailsUnit(message.motorNumber());
    motorDetailsUnit.setPhaseCCurrent(message.phaseCCurrent());
    motorDetailsUnit.setPhaseBCurrent(message.phaseBCurrent());
    motorDetailsUnit.setMotorVoltageReal(message.motorVoltageReal());
    motorDetailsUnit.setMotorVoltageImaginary(message.motorVoltageImaginary());
    motorDetailsUnit.setMotorCurrentReal(message.motorCurrentReal());
    motorDetailsUnit.setMotorCurrentImaginary(message.motorCurrentImaginary());
    motorDetailsUnit.setBackEmf(message.backEmf());
    motorDetailsUnit.setVoltageRailSuppply15V(message.voltageRailSuppply15V());
    motorDetailsUnit.setVoltageRailSupply33V(message.voltageRailSupply33V());
    motorDetailsUnit.setVoltageRailSupply19V(message.voltageRailSupply19V());
    motorDetailsUnit.setHeatSinkTemperature(message.heatSinkTemperature());
    motorDetailsUnit.setMotorTemperature(message.motorTemperature());
    motorDetailsUnit.setDspBoardTemperature(message.dspBoardTemperature());
    motorDetailsUnit.setDcBusAmpHours(message.dcBusAmpHours());
    motorDetailsUnit.setOdometer(message.odometer());
    motorDetailsUnit.setSlipSpeed(message.slipSpeed());
}<commit_msg>Fix motor detail serial error (#70)<commit_after>#include "MotorDetailsPopulator.h"

MotorDetailsPopulator::MotorDetailsPopulator(I_PacketDecoder& packetDecoder, I_MotorDetailsData& motorDetailsData)
    : packetDecoder_(packetDecoder)
    , motorDetailsData_(motorDetailsData)
{
    connect(&packetDecoder_, SIGNAL(packetDecoded(const MotorDetailsMessage)), this, SLOT(populateData(const MotorDetailsMessage)));
}

void MotorDetailsPopulator::populateData(const MotorDetailsMessage message)
{
    I_MotorDetailsUnit& motorDetailsUnit = motorDetailsData_.getMotorDetailsUnit(message.motorNumber());
    motorDetailsUnit.setPhaseCCurrent(message.phaseCCurrent());
    motorDetailsUnit.setPhaseBCurrent(message.phaseBCurrent());
    motorDetailsUnit.setMotorVoltageReal(message.motorVoltageReal());
    motorDetailsUnit.setMotorVoltageImaginary(message.motorVoltageImaginary());
    motorDetailsUnit.setMotorCurrentReal(message.motorCurrentReal());
    motorDetailsUnit.setMotorCurrentImaginary(message.motorCurrentImaginary());
    motorDetailsUnit.setBackEmf(message.backEmf());
    motorDetailsUnit.setVoltageRailSuppply15V(message.voltageRailSuppply15V());
    motorDetailsUnit.setVoltageRailSupply33V(message.voltageRailSupply33V());
    motorDetailsUnit.setVoltageRailSupply19V(message.voltageRailSupply19V());
    motorDetailsUnit.setHeatSinkTemperature(message.heatSinkTemperature());
    motorDetailsUnit.setMotorTemperature(message.motorTemperature());
    motorDetailsUnit.setDspBoardTemperature(message.dspBoardTemperature());
    motorDetailsUnit.setDcBusAmpHours(message.dcBusAmpHours());
    motorDetailsUnit.setOdometer(message.odometer());
    motorDetailsUnit.setSlipSpeed(message.slipSpeed());
}
{'fraction_non_alphanumeric': 0.09738158281847602, 'fraction_numerical': 0.007649308620182407, 'mean_word_length': 9.429447852760736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5216570', 'n_tokens_mistral': 1062, 'n_tokens_neox': 985, 'n_words': 79}