VSS from GPIO to MSIII over can
-
- Posts: 3
- Joined: Mon Jan 04, 2016 12:23 am
VSS from GPIO to MSIII over can
I´m running MS III and GPIO megashift linked via can and have no trouble getting tach and map signal from MS to GPIO.
I´m trying to get VSS signal from the GPIO to MS. VSS is working good in GPIO but I can´t get the signal over to MS.
The reason for this I want to read speedo on a tablet linked to MSIII.
I´ve tried all kind of different settings back and forth. MSQ of both projects attach
Can anyone help me on this?
Stefan
- Attachments
-
- Megashift.msq
- (59.02 KiB) Downloaded 685 times
-
- MS III.msq
- (231.08 KiB) Downloaded 699 times
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: VSS from GPIO to MSIII over can
The speed ("speedo") memory location and format info can be found in the INI's OutputChannels section:
Code: Select all
[OutputChannels]
; These are from the outpc. structure in the main.c file of the source code
; the size and format are the same as above
deadValue = { 0 } ; Convenient unchanging value.
ochBlockSize = 104
#if CAN_COMMANDS
; full version that works anywhere
ochGetCommand = "r\x01\x07%2o%2c"
#else
ochGetCommand = "a\x00\x06"
#endif
seconds = scalar, U16, 0, "sec", 1.000, 0.0
#if SI_LENGTHS
speedo = scalar, U16, 2, "kph", 0.16093, 0.0
odometer = scalar, U32, 4, "km", 0.00161, 0.0
#else
speedo = scalar, U16, 2, "mph", 0.100, 0.0
odometer = scalar, U32, 4, "miles", 0.001, 0.0
#endif
...
...
...