Skip to content

Add value table data to JSON output #59

@TimJTi

Description

@TimJTi

Thank you for this project it has saved me a lot of work!

I am using the JSON output (for now) and need value table data so have added this myself in a fork of this repo and it works well I think. Here is a sample of the output:

		{
			"name" : "Message_60Eh",
			"id" : 1550,
			"extended" : false,
			"dlc" : 8,
			"signals": [
				{
					"name" : "gear",
					"startbit" : 23,
					"bitlength" : 16,
					"endianess" : "motorola",
					"scaling" : 1,
					"offset" : 0,
					"minimum" : 0,
					"maximum" : 10,
					"signed" : true,
					"floating" : 0,
					"units" : "",
					"values" : {
						"0" : "Unknown ",
						"1" : "Reverse",
						"2" : "Neutral",
						"3" : "First",
						"4" : "Second",
						"5" : "Third",
						"6" : "Fourth",
						"7" : "Fifth",
						"8" : "Six",
						"9" : "Seventh",
						"10" : "Eighth"
					}
				},
				{
					"name" : "fuelComp",
					"startbit" : 39,
					"bitlength" : 16,
					"endianess" : "motorola",
					"scaling" : 0.1,
					"offset" : 0,
					"minimum" : 0,
					"maximum" : 100,
					"signed" : true,
					"floating" : 0,
					"units" : "%",
					"values" : {}
				}
			]
		},

I am happy to submit this as a PR if you'd like me to?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions