Battery pack monitoring data for Li-Ion batteries

                temperature               : Battery pack temperature in [deg C] (float)
                voltage                   : Battery pack voltage in [mV] (uint16_t)
                current                   : Battery pack current in [mA] (int16_t)
                SoC                       : Battery pack state-of-charge (uint8_t)
                batterystatus             : Battery monitor status report bits in Hex (uint16_t)
                serialnumber              : Battery monitor serial number in Hex (uint16_t)
                hostfetcontrol            : Battery monitor sensor host FET control in Hex (uint16_t)
                cellvoltage1              : Battery pack cell 1 voltage in [mV] (uint16_t)
                cellvoltage2              : Battery pack cell 2 voltage in [mV] (uint16_t)
                cellvoltage3              : Battery pack cell 3 voltage in [mV] (uint16_t)
                cellvoltage4              : Battery pack cell 4 voltage in [mV] (uint16_t)
                cellvoltage5              : Battery pack cell 5 voltage in [mV] (uint16_t)
                cellvoltage6              : Battery pack cell 6 voltage in [mV] (uint16_t)

def sens_batmon_encode(self, temperature, voltage, current, SoC, batterystatus, serialnumber, hostfetcontrol, cellvoltage1, cellvoltage2, cellvoltage3, cellvoltage4, cellvoltage5, cellvoltage6):
                '''
                Battery pack monitoring data for Li-Ion batteries

                temperature               : Battery pack temperature in [deg C] (float)
                voltage                   : Battery pack voltage in [mV] (uint16_t)
                current                   : Battery pack current in [mA] (int16_t)
                SoC                       : Battery pack state-of-charge (uint8_t)
                batterystatus             : Battery monitor status report bits in Hex (uint16_t)
                serialnumber              : Battery monitor serial number in Hex (uint16_t)
                hostfetcontrol            : Battery monitor sensor host FET control in Hex (uint16_t)
                cellvoltage1              : Battery pack cell 1 voltage in [mV] (uint16_t)
                cellvoltage2              : Battery pack cell 2 voltage in [mV] (uint16_t)
                cellvoltage3              : Battery pack cell 3 voltage in [mV] (uint16_t)
                cellvoltage4              : Battery pack cell 4 voltage in [mV] (uint16_t)
                cellvoltage5              : Battery pack cell 5 voltage in [mV] (uint16_t)
                cellvoltage6              : Battery pack cell 6 voltage in [mV] (uint16_t)

                '''
                return MAVLink_sens_batmon_message(temperature, voltage, current, SoC, batterystatus, serialnumber, hostfetcontrol, cellvoltage1, cellvoltage2, cellvoltage3, cellvoltage4, cellvoltage5, cellvoltage6)