https://wiki.autosportlabs.com/index.php?title=Mini_Cooper_R50_R52_R5&feed=atom&action=history
Mini Cooper R50 R52 R5 - Revision history
2024-03-29T14:55:58Z
Revision history for this page on the wiki
MediaWiki 1.38.6
https://wiki.autosportlabs.com/index.php?title=Mini_Cooper_R50_R52_R5&diff=6594&oldid=prev
Brentp at 15:36, 6 May 2016
2016-05-06T15:36:54Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:36, 6 May 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Status=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Status=</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>In development / verification phase. The Mini Cooper ECU and instrument cluster electronics are based on BMW running gear, so this integration is adapted from the BMW E46 instructions.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>In development / verification phase. The Mini Cooper ECU and instrument cluster electronics are based on BMW running gear, so this integration is adapted from the BMW E46 instructions.</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">=Channels available=</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">This integration will offer the following channels (to be verified)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Throttle Position (TPS)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Engine Temperature (EngineTemp)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Oil Temperature (OilTemp)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* RPM (RPM)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Steering Angle (Steering)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Brake Switch (BrakeSw)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Brake Pressure (Brake)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Left front wheel speed (LFWheelSpd)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Right front wheel speed (RFWheelSpd)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Left Rear Wheel Speed (LRWheelSpd)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Right Rear Wheel Speed (RRWheelSpd)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Gearbox Temperature (GearboxTmp)</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* Exterior Temperature (ExtTmp)</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Installation=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Installation=</div></td></tr>
</table>
Brentp
https://wiki.autosportlabs.com/index.php?title=Mini_Cooper_R50_R52_R5&diff=6593&oldid=prev
Brentp at 15:28, 6 May 2016
2016-05-06T15:28:58Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:28, 6 May 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Status=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Status=</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>In development / verification phase. The Mini Cooper ECU and instrument cluster electronics are <del style="font-weight: bold; text-decoration: none;">very similar to the E46</del>, so this integration is adapted from the E46.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>In development / verification phase. The Mini Cooper ECU and instrument cluster electronics are <ins style="font-weight: bold; text-decoration: none;">based on BMW running gear</ins>, so this integration is adapted from the <ins style="font-weight: bold; text-decoration: none;">BMW </ins>E46 <ins style="font-weight: bold; text-decoration: none;">instructions</ins>.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Installation=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Installation=</div></td></tr>
</table>
Brentp
https://wiki.autosportlabs.com/index.php?title=Mini_Cooper_R50_R52_R5&diff=6592&oldid=prev
Brentp: WIP for mini cooper
2016-05-06T15:06:56Z
<p>WIP for mini cooper</p>
<p><b>New page</b></p><div>=Status=<br />
In development / verification phase. The Mini Cooper ECU and instrument cluster electronics are very similar to the E46, so this integration is adapted from the E46.<br />
<br />
=Installation=<br />
<br />
==Things you'll need==<br />
* PosiTap insulation piercing taps (22 gauge)<br />
* RJ 45 (Ethernet) cable, ~6ft<br />
* RaceCapture/Pro with Bluetooth<br />
* Android tablet<br />
* 2002-2006 Mini Cooper (R50, R52, R53)<br />
<br />
==Estimated Time==<br />
2-3 hours, depending on level of wiring experience. The most time consuming part is locating and splicing the CAN, power and groud wires into the RJ45 cable.<br />
<br />
==CAN wires==<br />
CAN wire colors are as follows:<br />
* (VERIFY) Yellow/Red = CAN+ (high)<br />
* (VERIFY) Yellow/Brown = CAN- (low)<br />
<br />
They are a twisted pair in or attached to the main wiring harness under the driver's side dash above the dead pedal. The wires need to be tapped, not cut. <br />
<br />
===Tapping CAN wires===<br />
To tap into the wires, you'll first need to unravel the wire as the CAN+/CAN- pair are tightly wound. You'll want to have enough room for 2 fingers in between the wires.<br />
<br />
Tapping the wires via Posi-taps (recommended) is easy. Pull the top off the Positap, place the wire in it and tighten.<br />
<br />
[[File:Positaps.png]]<br />
<br />
Once you've tapped both it will most likely look like this:<br />
<br />
[[File:Can-tapped.jpg|700px]]<br />
<br />
==Power and ground wiring==<br />
<br />
Note: You can skip this section if you already have power wired to RaceCapture/Pro and don't want to change it.<br />
<br />
===Best option OBD-II port power===<br />
Using the same cable used for the CAN bus connection you can tap into power on the OBD-II port, for a clean 4 wire connection<br />
<br />
<br />
{| class="wikitable" style="text-align:center; width:700px; height:200px;"<br />
|+ Mini Cooper power, ground and CAN bus connections to RaceCapture/Pro <br />
|-<br />
! Connection<br />
! Mini Cooper<br />
! RaceCapture/Pro (RJ45 cable)<br />
|-<br />
| +12v<br />
| (VERIFY) Yellow-Red (OBD-II connector)<br />
| Brown<br />
|-<br />
| Ground<br />
| (VERIFY) Brown (OBD-II connector)<br />
| Orange/White<br />
|-<br />
| CAN High<br />
| (VERIFY) Yellow/Red<br />
| Orange<br />
|-<br />
| CAN Low<br />
| (VERIFY) Yellow/Brown<br />
| Green/White<br />
|}<br />
<br />
'''Note:''' These color codes assume EIA-T568B RJ45 cable (check printing on the cable to confirm)<br />
<br />
==CAN Bus connection==<br />
<br />
In order for RaceCapture/Pro to read CAN data you need to connect the CAN+/CAN- wires to a RJ45 (ethernet cable). <br />
<br />
Cut one end off the RJ45 cable and pull apart all the wires. <br />
<br />
For a standard RJ45 cable (EIA T568B) the colors are:<br />
<br />
* Orange: CAN1 High<br />
* Green/white: CAN1 Low<br />
* Brown: Power<br />
* Orange/white: Ground<br />
<br />
* '''Note''': Verify your RJ45 cable has '''EIA T568B''' printed on the jacket; this will ensure the color codes match.<br />
<br />
Use the following diagram:<br />
<br />
[[File:Canrj45.png]]<br />
<br />
You will end up with something that looks like this:<br />
<br />
[[File:Rj45labeled.jpg|700px]]<br />
<br />
==Configure RaceCapture/Pro==<br />
<br />
===Quick Start configuration===<br />
This configuration can be imported into your RaceCapture/Pro system to get you started. <br />
<br />
Download: [http://autosportlabs.net/images/2/23/mini_cooper_R50_R52_R53_starter_config.rcp Mini Cooper starter configuration] (right-click, save-as)<br />
<br />
To complete your configuration for lap timing and live streaming to Podium:<br />
* [[RaceCapture_App_User%27s_Guide#Automatic_Track_Detection_and_configuration|Add your favorite race tracks]] for automatic detection<br />
* [[RaceCapturePro2_TelemetryQuickstart#Enable_Telemetry_and_Device_Id|Set your telemetry device id]] as provided by [http://podium.live podium.live]<br />
<br />
===Manual Setup===<br />
If you already have an existing, customized configuration, follow these steps to add Mini Cooper CAN bus integration.<br />
<br />
'''[[RaceCapturePro2_OBD2#Enable_CAN_bus|Enable the CAN bus]]''' in your RaceCapture/Pro configuration <br />
<br />
* Rate is 500kb/s<br />
* Do '''not''' enable OBD-II channels.<br />
<br />
Add this script to the Scripting section:<br />
<br />
===Script===<br />
<pre><br />
<br />
--This example configured for Mini Cooper CAN<br />
-- Automatically starts logging with engine 'on' (RPM triggered)<br />
--how frequently we poll for CAN messages<br />
tickRate = 30<br />
--the CAN baud rate<br />
CAN_baud = 500000<br />
--CAN channel to listen on. 0=first CAN channel, 1=second<br />
CAN_chan = 0<br />
<br />
--add your virtual channels here<br />
--format addChannel(<name>, <sample rate>, <precision>, <min>, <max>, [units])<br />
tpsId = addChannel("TPS", 10, 0, 0, 100, "%")<br />
tempId = addChannel("EngineTemp", 1, 0, 0, 255, "F")<br />
oilTempId = addChannel("OilTemp", 1, 0, 0, 255, "F")<br />
rpmId = addChannel("RPM", 10, 0, 0, 10000)<br />
steerId = addChannel("Steering", 10, 0, -360, 360, "Deg.")<br />
brakeId = addChannel("BrakeSw", 10, 0, 0, 1)<br />
brakePressId = addChannel("Brake", 10, 0, 0, 255, "Bar")<br />
clutchId = addChannel("Clutch", 10, 0, 0, 1)<br />
lfWheelId = addChannel("LFWheelSpd", 10, 0, 0, 200, "MPH")<br />
rfWheelId = addChannel("RFWheelSpd", 10, 0, 0, 200, "MPH")<br />
lrWheelId = addChannel("LRWheelSpd", 10, 0, 0, 200, "MPH")<br />
rrWheelId = addChannel("RRWheelSpd", 10, 0, 0, 200, "MPH")<br />
gearTempId = addChannel("GearboxTmp", 10, 0, 0, 400, "F")<br />
fuelId = addChannel("Fuel", 1, 0, 0, 100, "%")<br />
extTempId = addChannel("ExtTemp", 1, 0, 0, 120,"F")<br />
<br />
--Convert C to F<br />
function toF(value)<br />
return value * 1.8 + 32<br />
end<br />
<br />
--TPS, correct your throttle here for true 100% <br />
function tpsFilter(value)<br />
return value + 0.0<br />
end<br />
<br />
--only start logging / telemetry if engine is running<br />
function rpmFilter(value)<br />
if value > 500 then startLogging() else stopLogging() end<br />
return value<br />
end<br />
<br />
function brakeFilter(value)<br />
return bit.rshift(bit.band(value, 0x10), 4)<br />
end<br />
<br />
function clutchFilter(value)<br />
return bit.band(value, 0x01)<br />
end<br />
<br />
function processWheel(id, data, offset)<br />
--wheel speed is 13 bits long, little endian<br />
--low byte high byte<br />
--76543210 76543210<br />
--11111111 11111XXX<br />
local highByte = bit.band(data[offset + 2], 0x1F)<br />
local lowByte = data[offset + 1]<br />
local value = highByte * 256 + lowByte<br />
value = value * 0.0625<br />
--convert to MPH. comment to keep KPH<br />
value = value * 0.621371<br />
setChannel(id, value)<br />
end<br />
<br />
function processSteering(data)<br />
local steer = 0<br />
if data[2] > 127 then<br />
steer = -1*(((data[2]-128)*256)+data[1])<br />
else<br />
steer = (data[2]*256)+data[1]<br />
end<br />
setChannel(steerId, (steer*0.045))<br />
end<br />
<br />
function fuelFilter(value)<br />
--adjust for 7 bit value<br />
value = bit.band(value, 0x7F)<br />
--convert liters to %<br />
return value / 0.48<br />
end<br />
<br />
function extTempFilter(value)<br />
local temp = bit.band(value, 0x7F)<br />
if value > 127 then<br />
temp = -1 * temp<br />
end<br />
temp = toF(temp)<br />
return temp<br />
end<br />
<br />
----------------------------------------<br />
--customize here for CAN channel mapping<br />
--format is: <br />
--[CAN Id] = function(data) map_chan(<chan_id>, <data>, <CAN offset>, <CAN length>, <multiplier>,<br />
-- <adder>, [filter])<br />
----------------------------------------<br />
CAN_map = {<br />
[496] = function(data) processWheel(lfWheelId, data, 0)<br />
processWheel(rfWheelId, data, 2)<br />
processWheel(lrWheelId, data, 4)<br />
processWheel(rrWheelId, data, 6)<br />
end, <br />
[339] = function(data) map_chan(brakeId, data, 0, 1, 1, 0, brakeFilter) end,<br />
[504] = function(data) map_chan(brakePressId, data, 2, 1, 1, 0) end,<br />
[809] = function(data) map_chan(tpsId, data, 5, 1 , 0.392156863, 0, tpsFilter) <br />
map_chan(tempId, data, 1, 1, 0.75, -48, toF)<br />
map_chan(clutchId, data, 3, 1, 1, 0, clutchFilter)<br />
end,<br />
[1349] = function(data) map_chan(oilTempId, data, 4, 1, 1, -48, toF) end,<br />
[1083] = function(data) map_chan(gearTempId, data, 0, 1, 1, -55, toF) end,<br />
[790] = function(data) map_chan(rpmId, data, 2, 2, 0.15625, 0, rpmFilter) end,<br />
[501] = function (data) processSteering(data) end,<br />
[1555] = function (data) map_chan(fuelId, data, 2, 1, 1, 0, fuelFilter) end,<br />
[1557] = function (data) map_chan(extTempId, data, 3, 1, 1, 0, extTempFilter) end<br />
}<br />
<br />
function onTick()<br />
processCAN(CAN_chan)<br />
end<br />
--===========do not edit below===========<br />
function processCAN(chan)<br />
local msg = 0<br />
repeat<br />
local id, e, data = rxCAN(chan, 0)<br />
if id ~= nil then<br />
local map = CAN_map[id]<br />
if map ~= nil then<br />
map(data) <br />
end<br />
end<br />
msg = msg + 1<br />
until id == nil or msg > 100<br />
end<br />
<br />
--Map CAN channel, little endian format<br />
function map_chan(cid, data, offset, len, mult, add, filter)<br />
if offset + len > #data then return end<br />
offset = offset + 1<br />
local value = 0<br />
local shift = 1<br />
while len > 0 do<br />
value = value + (data[offset] * shift)<br />
shift = shift * 256<br />
offset = offset + 1<br />
len = len - 1<br />
end<br />
local cv = value * mult + add<br />
if filter ~= nil then cv = filter(cv) end<br />
setChannel(cid, cv)<br />
end<br />
initCAN(CAN_chan, CAN_baud)<br />
setTickRate(tickRate)<br />
</pre><br />
<br />
==Test!==<br />
Once everything is connected, plug in the other end of the RJ45 cable to RaceCapture/Pro, turn it on and turn on your car. Make sure RCP is connected to your tablet and the RaceCapture/App is running. <br />
<br />
Swipe to the digital dash page and you should see data for Coolant, Oil Temp, Throttle and brake!<br />
<br />
==Real-Time Telemetry==<br />
Just 4 wires - Power, Ground, CAN+ and CAN- is needed to stream tons of data to [http://www.podium.com Podium] for monitoring engine, driver and suspension performance!<br />
<br />
==Troubleshooting==<br />
* If you don't see any data, verify all connections and splices. <br />
<br />
* If everything is connected connect your laptop to RaceCapture/Pro, open the RaceCapture/App, go to the Scripting section, set Logging Level to debug and select 'Poll logfile'. Check the output for any errors relating to the Lua Script.<br />
<br />
* If you're copying in the script file, ensure any existing script is erased first, do not append the script text to the existing script.<br />
<br />
If you are still having issues post your problem on the forums here http://www.autosportlabs.org/viewforum.php?f=20</div>
Brentp