Wireshark dissector: Fix control type/mode values
This commit is contained in:
@ -29,9 +29,9 @@ local motor_cmds = {
|
|||||||
[ 0] = { len = 1, abbr = "enable", name = "Enable", type = ftypes.BOOLEAN },
|
[ 0] = { len = 1, abbr = "enable", name = "Enable", type = ftypes.BOOLEAN },
|
||||||
[ 1] = { len = 2, abbr = "inp_tgt", name = "Input target", type = ftypes.INT16 },
|
[ 1] = { len = 2, abbr = "inp_tgt", name = "Input target", type = ftypes.INT16 },
|
||||||
[ 2] = { len = 1, abbr = "ctrl_typ", name = "Control type", type = ftypes.UINT8,
|
[ 2] = { len = 1, abbr = "ctrl_typ", name = "Control type", type = ftypes.UINT8,
|
||||||
valuestring = {"Commutation", "Sinusoidal", "FOC"} },
|
valuestring = {[0] = "Commutation", [1] = "Sinusoidal", [2] = "FOC"} },
|
||||||
[ 3] = { len = 1, abbr = "ctrl_mod", name = "Control mode", type = ftypes.UINT8,
|
[ 3] = { len = 1, abbr = "ctrl_mod", name = "Control mode", type = ftypes.UINT8,
|
||||||
valuestring = {"Open", "Voltage", "Speed", "Torque"} },
|
valuestring = {[0] = "Open", [1] = "Voltage", [2] = "Speed", [3] = "Torque"} },
|
||||||
[ 4] = { len = 1, abbr = "imotmax", name = "Maximum motor current", type = ftypes.UINT8, format = format_cmd_current },
|
[ 4] = { len = 1, abbr = "imotmax", name = "Maximum motor current", type = ftypes.UINT8, format = format_cmd_current },
|
||||||
[ 5] = { len = 1, abbr = "idcmax", name = "Maximum DC link current", type = ftypes.UINT8, format = format_cmd_current },
|
[ 5] = { len = 1, abbr = "idcmax", name = "Maximum DC link current", type = ftypes.UINT8, format = format_cmd_current },
|
||||||
[ 6] = { len = 2, abbr = "nmotmax", name = "Maximum speed", type = ftypes.UINT16, format = format_speed },
|
[ 6] = { len = 2, abbr = "nmotmax", name = "Maximum speed", type = ftypes.UINT16, format = format_speed },
|
||||||
|
Reference in New Issue
Block a user