Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpjack authored Jun 18, 2024
1 parent cb41c70 commit 90be52b
Show file tree
Hide file tree
Showing 2 changed files with 973 additions and 0 deletions.
314 changes: 314 additions & 0 deletions etech_simulator/gearsDefinitions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
all = [ // [C23, C22, C21]
[
[
[2,2,2],[1,2,2], [3,2,2]
],
[
[2,1,2], [1,1,2], [3,1,2]
],
[
[2,3,2], [1,3,2], [3,3,2]
],
],
[
[
[2,2,1], [1,2,1], [3,2,1]
],
[
[2,1,1], [1,1,1], [3,1,1]
],
[
[2,3,1], [1,3,1], [3,3,1]
],
],
[
[
[2,2,3,], [1,2,3] , [3,2,3]
],
[
[2,1,3,], [1,1,3] , [3,1,3]
],
[
[2,3,3,], [1,3,3] , [3,3,3]
],
]
];



meshedGears = [
[
[
{
E: "<b>E</b> -> 9:11 -> R -> 13:15 -> T -> 17:18, 20:10 -> <b>E - LOOP!</b>",
T: "<b>T</b> -> 17:18, 20:10 -> E -> 9:11 -> R -> 13:15 -> <b>T - LOOP!</b>",
Combo: "ERR"
}, // [2,2,2]
{
E: "E -> 9:11 -> R.",
T: "T -> 15:13 -> R.",
Combo : "Parallel"
}, // 122
{
E: "E -> 9:11 -> R.",
T: "<b>T</b> -> 17:18, 19:16, 16:14 -> R -> 13:15 -> <b>T - LOOP!</b>",
Combo: "ERR"
} // [3,2,2]
],
[
{
E: "E -> 9:11 -> R.",
T: "T -> 17:18, 20:10 -> E... (coupled)",
Combo: "T -> 17:18, 20:10 -> E -> 9:11 -> R. (Serial)"
}, // [2,1,2]
{
E: "E -> 9:11 -> R.",
T: "Disconnected",
Combo : "Pure EV"
}, // [1,1,2]
{
E: "E -> 9:11 -> R.",
T: "T -> 17:18, 19:16, 16:14 -> R.",
Combo : "Parallel"
} // [3,1,2]
],
[
{
E: "<b>E</b> -> 9:11 -> R -> 14:16 -> T -> 17:18, 20:10 -> <b>E - LOOP!</b>",
T: "<b>T</b> -> 17:18, 20:10 -> E -> 9:11 -> R -> 14:16 -> <b>T - LOOP</b>. ",
Combo: "ERR"
}, //[2,3,2]
{
E: "E -> 9:11 -> R.",
T: "T -> 16:14 -> R.",
Combo : "Parallel"
}, // [1,3,2]
{
E: "E -> 9:11 -> R.",
T: "<b>T</b> -> 17:18, 19:16 -> <b>T - LOOP!</b>",
Combo: "ERR"
} // [3,3,2]
],
],
[
[
{
E: "Disconnected",
T: "T -> 17:18 , 20:10 -> E. , T -> 15:13 -> R. (unused)",
Combo : "T to E, T to Wheels"
}, // [2,2,1]
{
E: "Disconnected",
T: "T -> 15:13 -> R.",
Combo : "Pure ICE"
}, // [1,2,1]
{
E: "Disconnected",
T: "<b>T</b> -> 17:18, 19:16, 16:14 -> R -> 13:15 -> <b>T - LOOP!</b>",
Combo: "ERR"
}, // [3,2,1]
],
[
{
E: "Disconnected",
T: "T -> 17:18, 20:10 -> E.",
Combo: "Charge by Main Motor + HSG (75kW)?"
}, // [2,1,1]
{
E: "Disconnected",
T: "Disconnected",
Combo : "Neutral EV, Neutral ICE"
}, // [1,1,1]
{
E: "Disconnected",
T: "T -> 17:18, 19:16, 16:14 -> R.",
Combo : "Pure ICE"
} // [3,1,1]
],
[
{
E: "Disconnected",
T: "T -> 17:18 , 20:10 -> E. , T -> 16:14 -> R. (unused)",
Combo : "T to E, T to Wheels"
}, // [2,3,1]
{
E: "Disconnected",
T: "T -> 16:14 -> R.",
Combo : "Pure ICE"
}, // [1,3,1]
{
E: "Disconnected",
T: "<b>T</b> -> 17:18, 19:16 -> <b>T - LOOP!</b>",
Combo: "ERR"
}, // [3,3,1]
],
],
[
[
{
E: "E -> 10:12 -> R.",
T: "<b>T</b> -> 17:18, 20:10 -> E-> 10:12 -> R -> 13:15 -> <b>T - LOOP</b>",
Combo : "ERR"
} , // [2,2,3,]
{
E: "E -> 10:12 -> R.",
T: "T -> 15:13 -> R.",
Combo: "Parallel"
} ,
{
E: "E -> 10:12 -> R.",
T: "<b>T</b> -> 17:18, 19:16, 16:14 -> R -> 13:15 -> <b>T - LOOP!</b>",
Combo: "ERR"
} // [3,2,3]
],
[
{
E: "E -> 10:12 -> R.",
T: "T -> 17:18, 20:10 -> E... (coupled)",
Combo: "T -> 17:18, 20:10 -> E - 10:12 -> R. (Serial)"
},
{
E: "E -> 10:12 -> R.",
T: "Disconnected",
Combo : "Pure EV"
} ,
{
E: "E -> 10:12 -> R.",
T: "T -> 17:18, 19:16, 16:14 -> R.",
Combo : "Parallel"
}
],
[
{
E: "E -> 10:12 -> R.",
T: "<b>T</b> -> 17:18, 20:10 -> E-> 10:12 -> R -> 14:16 -> <b>T - LOOP</b>",
Combo: "ERR"
}, // [2,3,3,]
{
E: "E -> 10:12 -> R.",
T: "T -> 16:14 -> R.",
Combo : "Parallel"
},
{
E: "E -> 10:12 -> R.",
T: "<b>T</b> -> 17:18, 19:16 -> <b>T - LOOP!</b>",
Combo: "ERR"
} // [3,3,3]
],
]
];



gearsNames = [
[
[
"Forbidden", "ICE2 + EvA", "Forbidden"
],
[
"ICE1 + EvA", "EvA", "ICE3 + EvA"
],
[
"Forbidden", "ICE4 + EvA", "Forbidden"
],
],

[
[
"UNUSED", "ICE2", "Forbidden"
],
[
"Charge", "ICE neutral", "ICE3"
],
[
"UNUSED", "ICE4", "Forbidden"
],
],


[
[
"Forbidden", "ICE2 + EvB", "Forbidden"
],
[
"ICE5 + EvB", "EvB", "ICE3 + EvB",
],
[
"Forbidden", "ICE4 + EvB", "Forbidden"
],
],
];





forbidden = [
[2,2,2], [3,2,2], [2,3,2], [3,3,2], [3,2,1], [3,3,1] , [2,2,3,], [2,3,3,], [3,2,3], [3,3,3]
]

/*
wheels = [ // pixelAbs = Distance from topmost edge of image; axis distance = 200
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: 146}, // 9
{pixelAbs: 113},// 10
{pixelAbs: 96},// 11
{pixelAbs: 130},// 12
{pixelAbs: 124},// 13
{pixelAbs: 136},// 14
{pixelAbs: 117},// 15
{pixelAbs: 106},// 16
{pixelAbs: 112},// 17
{pixelAbs: 111},// 18 ???? TBW
{pixelAbs: 111},// 19
{pixelAbs: 103} // 20
]
wheelsAxle = 200;
*/

wheels = [ // pixelAbs = Distance from topmost edge of image; axis distance = 1159
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: -1},
{pixelAbs: 1198}, // 9
{pixelAbs: 1223},// 10
{pixelAbs: 1238},// 11
{pixelAbs: 1213},// 12 <<<<<<<<<<< errore grafico in brevetto
{pixelAbs: 1231},// 13 <<<<<<<<<<< errore grafico in brevetto
{pixelAbs: 1208},// 14
{pixelAbs: 1205},// 15 <<<<<<<<<<< errore grafico in brevetto
{pixelAbs: 1228},// 16
{pixelAbs: 1225},// 17
{pixelAbs: 1230},// 18
{pixelAbs: 1227},// 19
{pixelAbs: 1232} // 20 - org: 1331
];
wheelsAxle = 1159 -1;

fluxFlags = { EV_bat: false, ICE_bat: false, ICE_wheels : false}
/*
gearChange = [
{"ICE1", "ICE2", ""},
{"ICE2", "ICE3", ""},
{"ICE3", "ICE4", ""},
{"EV1", "EV2", ""},
{"ICE1", "ICE2", ""},
{"ICE1", "ICE2", ""},
{"ICE1", "ICE2", ""},
];*/

Loading

0 comments on commit 90be52b

Please sign in to comment.