From d667b7d01e5b75b8f55269414c6733c3fd993c5d Mon Sep 17 00:00:00 2001 From: Klagarge Date: Thu, 7 Sep 2023 16:56:02 +0200 Subject: [PATCH] try way to setup drive every time --- .../app/factory/factory.c | 2 +- .../nbproject/configurations.xml | 5 +- ...nter.hex => v1_0_2-without_set_center.hex} | 0 busmaster_config.cfx | 171 ++++++------------ threewheeler.DBF | 13 +- 5 files changed, 74 insertions(+), 117 deletions(-) rename binary_files/{without_set_center.hex => v1_0_2-without_set_center.hex} (100%) diff --git a/306-controller_interface.X/app/factory/factory.c b/306-controller_interface.X/app/factory/factory.c index f326b16..56b976f 100644 --- a/306-controller_interface.X/app/factory/factory.c +++ b/306-controller_interface.X/app/factory/factory.c @@ -57,7 +57,7 @@ void Factory_build() { ALIVE_onAlive(ALcontroller(), CM_CONTROLLER_ALIVE, NULL); - ALIVE_onSetup(ALjoy(), CM_JOY_SETUP, NULL); + //ALIVE_onSetup(ALjoy(), CM_JOY_SETUP, NULL); ALIVE_setAliveTime(ALjoy(), KART_CST.JOYSTICK_ALIVE_TIME); //ALIVE_onBorn(ALjoy(), LED_on, l1()); ALIVE_onDead(ALjoy(), deadJoystick, NULL); diff --git a/306-controller_interface.X/nbproject/configurations.xml b/306-controller_interface.X/nbproject/configurations.xml index c7281e6..39bf0d7 100644 --- a/306-controller_interface.X/nbproject/configurations.xml +++ b/306-controller_interface.X/nbproject/configurations.xml @@ -224,7 +224,6 @@ - @@ -248,7 +247,7 @@ - + @@ -296,7 +295,7 @@ - + diff --git a/binary_files/without_set_center.hex b/binary_files/v1_0_2-without_set_center.hex similarity index 100% rename from binary_files/without_set_center.hex rename to binary_files/v1_0_2-without_set_center.hex diff --git a/busmaster_config.cfx b/busmaster_config.cfx index d30f012..25b8137 100644 --- a/busmaster_config.cfx +++ b/busmaster_config.cfx @@ -2,14 +2,14 @@ 3.2.2 - FALSE + TRUE FALSE FALSE FALSE FALSE FALSE TRUE - TRUE + FALSE SYSTEM FALSE FALSE @@ -328,7 +328,6 @@ 529 posX posY - button 1040 @@ -347,30 +346,26 @@ SteeringPosition - 336 - RESET - SET_CENTER - HOMING + 1311 - 82 - CENTER_POS + 1294 + brake - 1298 - POSITION + 1540 SHOWNORMAL HIDE - 456 - 632 - 1079 - 744 + 170 + 421 + 868 + 731 - 151 - 137 + 144 + 86 172 86 @@ -424,15 +419,15 @@ NORMAL - 321 - DRIVE_POWER + 1586 + DISPLAY_CURRENT - Power + BatteryCurrent Physical SOLID - 16711680 - 1 - 8388736 + 65280 + 2 + 8421376 TRUE TRUE NORMAL @@ -440,10 +435,10 @@ SHOWNORMAL HIDE - 291 - 205 - 957 - 1530 + 39 + 74 + 586 + 1399 479 @@ -454,11 +449,11 @@ 0 - 308 + 275 0 - 308 + 222 0 @@ -503,19 +498,19 @@ steering - 5 - 1 - 19 + 1 + 0 + 0 Time - 4 + 5 1 129 Tx/Rx - 1 + 4 1 53 @@ -553,11 +548,11 @@ Data Byte(s) 9 1 - 139 + 158 1 - 0 - 1 + 1 + 0 SYSTEM SHOWNORMAL @@ -570,10 +565,10 @@ SHOWNORMAL RESTORETOMAXIMIZED - 173 - 10 - 451 - 359 + 181 + 12 + 459 + 361 @@ -670,10 +665,10 @@ SHOWNORMAL RESTORETOMAXIMIZED - 173 - 10 - 451 - 359 + 181 + 12 + 459 + 361 @@ -755,10 +750,10 @@ SHOWNORMAL RESTORETOMAXIMIZED - 173 - 10 - 451 - 359 + 181 + 12 + 459 + 361 @@ -855,73 +850,25 @@ a FALSE - - 1 - 1311 - FALSE - FALSE - 2 - 16,0 - 500 - FALSE - a - FALSE - - - 1 - 1297 - FALSE - FALSE - 8 - 152,139,8,0,0,0,0,0 - 10 - FALSE - a - FALSE - - - 1 - 529 - FALSE - FALSE - 3 - 25,50,0 - 10 - FALSE - a - FALSE - - - 1 - 1055 - FALSE - FALSE - 2 - 0,0 - 500 - FALSE - a - FALSE - - - 1 - 543 - FALSE - FALSE - 1 - 0 - 100 - FALSE - a - FALSE - 1 23 FALSE FALSE 4 - 250,0,0,0 + 0,0,0,0 + 10 + FALSE + a + FALSE + + + 1 + 24 + FALSE + FALSE + 4 + 0,0,0,0 10 FALSE a @@ -932,8 +879,8 @@ 1540 FALSE FALSE - 4 - 0,0,0,0 + 0 + 0 10 FALSE a diff --git a/threewheeler.DBF b/threewheeler.DBF index 2cc5931..3ea3098 100644 --- a/threewheeler.DBF +++ b/threewheeler.DBF @@ -6,7 +6,7 @@ [BUSMASTER_VERSION] [3.2.2] -[NUMBER_OF_MESSAGES] 29 +[NUMBER_OF_MESSAGES] 32 [START_MSG] JOY_MEASURE,529,3,3,1,S [START_SIGNALS] posX,8,1,0,I,127,-128,1,0.000000,1.000000,%, @@ -176,4 +176,15 @@ [START_MSG] CONTROL_SETUP_PARAM,21,4,2,1,S [START_SIGNALS] displayAliveTime,8,1,0,U,255,0,1,0.000000,10.000000,ms, [START_SIGNALS] steeringAliveTime,8,2,0,U,255,0,1,0.000000,10.000000,ms, +[END_MSG] + +[START_MSG] BRAKE,1294,1,1,1,S +[START_SIGNALS] brake,1,1,0,B,1,0,1,0.000000,1.000000,, +[END_MSG] + +[START_MSG] SUPPLY_48V_READY,1540,0,0,1,S +[END_MSG] + +[START_MSG] HEADLIGHTS,260,1,1,1,S +[START_SIGNALS] headlights,1,1,0,B,1,0,1,0.000000,1.000000,, [END_MSG] \ No newline at end of file