try way to setup drive every time

This commit is contained in:
Rémi Heredero 2023-09-07 16:56:02 +02:00
parent c5403fe7f9
commit d667b7d01e
5 changed files with 74 additions and 117 deletions

View File

@ -57,7 +57,7 @@ void Factory_build() {
ALIVE_onAlive(ALcontroller(), CM_CONTROLLER_ALIVE, NULL); 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_setAliveTime(ALjoy(), KART_CST.JOYSTICK_ALIVE_TIME);
//ALIVE_onBorn(ALjoy(), LED_on, l1()); //ALIVE_onBorn(ALjoy(), LED_on, l1());
ALIVE_onDead(ALjoy(), deadJoystick, NULL); ALIVE_onDead(ALjoy(), deadJoystick, NULL);

View File

@ -224,7 +224,6 @@
<property key="debugoptions.useswbreakpoints" value="false"/> <property key="debugoptions.useswbreakpoints" value="false"/>
<property key="event.recorder.enabled" value="false"/> <property key="event.recorder.enabled" value="false"/>
<property key="event.recorder.scvd.files" value=""/> <property key="event.recorder.scvd.files" value=""/>
<property key="firmware.download.all" value="false"/>
<property key="hwtoolclock.frcindebug" value="false"/> <property key="hwtoolclock.frcindebug" value="false"/>
<property key="lastid" value=""/> <property key="lastid" value=""/>
<property key="memories.aux" value="false"/> <property key="memories.aux" value="false"/>
@ -248,7 +247,7 @@
<property key="programoptions.preservedataflash" value="false"/> <property key="programoptions.preservedataflash" value="false"/>
<property key="programoptions.preservedataflash.ranges" <property key="programoptions.preservedataflash.ranges"
value="${programoptions.preservedataflash.ranges}"/> value="${programoptions.preservedataflash.ranges}"/>
<property key="programoptions.preserveeeprom" value="false"/> <property key="programoptions.preserveeeprom" value="true"/>
<property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/> <property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/>
<property key="programoptions.preserveprogram.ranges" value=""/> <property key="programoptions.preserveprogram.ranges" value=""/>
<property key="programoptions.preserveprogramrange" value="false"/> <property key="programoptions.preserveprogramrange" value="false"/>
@ -296,7 +295,7 @@
<property key="programoptions.preservedataflash" value="false"/> <property key="programoptions.preservedataflash" value="false"/>
<property key="programoptions.preservedataflash.ranges" <property key="programoptions.preservedataflash.ranges"
value="${programoptions.preservedataflash.ranges}"/> value="${programoptions.preservedataflash.ranges}"/>
<property key="programoptions.preserveeeprom" value="false"/> <property key="programoptions.preserveeeprom" value="true"/>
<property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/> <property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/>
<property key="programoptions.preserveprogram.ranges" value=""/> <property key="programoptions.preserveprogram.ranges" value=""/>
<property key="programoptions.preserveprogramrange" value="false"/> <property key="programoptions.preserveprogramrange" value="false"/>

View File

@ -2,14 +2,14 @@
<BUSMASTER_CONFIGURATION> <BUSMASTER_CONFIGURATION>
<Global_Configuration> <Global_Configuration>
<BUSMASTER_Version>3.2.2</BUSMASTER_Version> <BUSMASTER_Version>3.2.2</BUSMASTER_Version>
<IsMsgFilterEnabled>FALSE</IsMsgFilterEnabled> <IsMsgFilterEnabled>TRUE</IsMsgFilterEnabled>
<IsMsgFilterEnabledLin>FALSE</IsMsgFilterEnabledLin> <IsMsgFilterEnabledLin>FALSE</IsMsgFilterEnabledLin>
<IsReplayFilterEnabled>FALSE</IsReplayFilterEnabled> <IsReplayFilterEnabled>FALSE</IsReplayFilterEnabled>
<IsLogFilterEnabled>FALSE</IsLogFilterEnabled> <IsLogFilterEnabled>FALSE</IsLogFilterEnabled>
<IsLogFilterLINEnabled>FALSE</IsLogFilterLINEnabled> <IsLogFilterLINEnabled>FALSE</IsLogFilterLINEnabled>
<IsLoggingEnabled>FALSE</IsLoggingEnabled> <IsLoggingEnabled>FALSE</IsLoggingEnabled>
<IsMsgIntepretationEnabled>TRUE</IsMsgIntepretationEnabled> <IsMsgIntepretationEnabled>TRUE</IsMsgIntepretationEnabled>
<IsOverWriteEnabled>TRUE</IsOverWriteEnabled> <IsOverWriteEnabled>FALSE</IsOverWriteEnabled>
<DisplayTimeMode>SYSTEM</DisplayTimeMode> <DisplayTimeMode>SYSTEM</DisplayTimeMode>
<DisplayNumericMode>FALSE</DisplayNumericMode> <DisplayNumericMode>FALSE</DisplayNumericMode>
<LogOnConnect_CAN>FALSE</LogOnConnect_CAN> <LogOnConnect_CAN>FALSE</LogOnConnect_CAN>
@ -328,7 +328,6 @@
<Id>529</Id> <Id>529</Id>
<Signal>posX</Signal> <Signal>posX</Signal>
<Signal>posY</Signal> <Signal>posY</Signal>
<Signal>button</Signal>
</Message> </Message>
<Message> <Message>
<Id>1040</Id> <Id>1040</Id>
@ -347,30 +346,26 @@
<Signal>SteeringPosition</Signal> <Signal>SteeringPosition</Signal>
</Message> </Message>
<Message> <Message>
<Id>336</Id> <Id>1311</Id>
<Signal>RESET</Signal>
<Signal>SET_CENTER</Signal>
<Signal>HOMING</Signal>
</Message> </Message>
<Message> <Message>
<Id>82</Id> <Id>1294</Id>
<Signal>CENTER_POS</Signal> <Signal>brake</Signal>
</Message> </Message>
<Message> <Message>
<Id>1298</Id> <Id>1540</Id>
<Signal>POSITION</Signal>
</Message> </Message>
<Window_Position> <Window_Position>
<Visibility>SHOWNORMAL</Visibility> <Visibility>SHOWNORMAL</Visibility>
<WindowPlacement>HIDE</WindowPlacement> <WindowPlacement>HIDE</WindowPlacement>
<Top>456</Top> <Top>170</Top>
<Left>632</Left> <Left>421</Left>
<Right>1079</Right> <Right>868</Right>
<Bottom>744</Bottom> <Bottom>731</Bottom>
</Window_Position> </Window_Position>
<COLUMN_WIDTH> <COLUMN_WIDTH>
<MESSAGE_COLUMN>151</MESSAGE_COLUMN> <MESSAGE_COLUMN>144</MESSAGE_COLUMN>
<Raw_Val_Column>137</Raw_Val_Column> <Raw_Val_Column>86</Raw_Val_Column>
<Physical_Val_Column>172</Physical_Val_Column> <Physical_Val_Column>172</Physical_Val_Column>
<Signal_Column>86</Signal_Column> <Signal_Column>86</Signal_Column>
</COLUMN_WIDTH> </COLUMN_WIDTH>
@ -424,15 +419,15 @@
<Display_Type>NORMAL</Display_Type> <Display_Type>NORMAL</Display_Type>
</GRAPH_PARAMETERS> </GRAPH_PARAMETERS>
<GRAPH_ELEMENT> <GRAPH_ELEMENT>
<Message_ID>321</Message_ID> <Message_ID>1586</Message_ID>
<Message_Name>DRIVE_POWER</Message_Name> <Message_Name>DISPLAY_CURRENT</Message_Name>
<Frame_Format/> <Frame_Format/>
<Element_Name>Power</Element_Name> <Element_Name>BatteryCurrent</Element_Name>
<Value_Type>Physical</Value_Type> <Value_Type>Physical</Value_Type>
<Line_Type>SOLID</Line_Type> <Line_Type>SOLID</Line_Type>
<Line_Color>16711680</Line_Color> <Line_Color>65280</Line_Color>
<Point_Type>1</Point_Type> <Point_Type>2</Point_Type>
<Point_Color>8388736</Point_Color> <Point_Color>8421376</Point_Color>
<Visibility>TRUE</Visibility> <Visibility>TRUE</Visibility>
<Enable>TRUE</Enable> <Enable>TRUE</Enable>
<Display_Type>NORMAL</Display_Type> <Display_Type>NORMAL</Display_Type>
@ -440,10 +435,10 @@
<Window_Position> <Window_Position>
<Visibility>SHOWNORMAL</Visibility> <Visibility>SHOWNORMAL</Visibility>
<Window_Position>HIDE</Window_Position> <Window_Position>HIDE</Window_Position>
<Top>291</Top> <Top>39</Top>
<Left>205</Left> <Left>74</Left>
<Bottom>957</Bottom> <Bottom>586</Bottom>
<Right>1530</Right> <Right>1399</Right>
</Window_Position> </Window_Position>
<Splitter_Window_Col_0> <Splitter_Window_Col_0>
<CxIdeal>479</CxIdeal> <CxIdeal>479</CxIdeal>
@ -454,11 +449,11 @@
<CxMin>0</CxMin> <CxMin>0</CxMin>
</Splitter_Window_Col_1> </Splitter_Window_Col_1>
<Splitter_Window_Row_0> <Splitter_Window_Row_0>
<CxIdeal>308</CxIdeal> <CxIdeal>275</CxIdeal>
<CxMin>0</CxMin> <CxMin>0</CxMin>
</Splitter_Window_Row_0> </Splitter_Window_Row_0>
<Splitter_Window_Row_1> <Splitter_Window_Row_1>
<CxIdeal>308</CxIdeal> <CxIdeal>222</CxIdeal>
<CxMin>0</CxMin> <CxMin>0</CxMin>
</Splitter_Window_Row_1> </Splitter_Window_Row_1>
</CAN_Signal_Graph> </CAN_Signal_Graph>
@ -503,19 +498,19 @@
<Filter IsEnabled="0">steering</Filter> <Filter IsEnabled="0">steering</Filter>
<COLUMN> <COLUMN>
<ID/> <ID/>
<Order>5</Order> <Order>1</Order>
<IsVisible>1</IsVisible> <IsVisible>0</IsVisible>
<Width>19</Width> <Width>0</Width>
</COLUMN> </COLUMN>
<COLUMN> <COLUMN>
<ID>Time</ID> <ID>Time</ID>
<Order>4</Order> <Order>5</Order>
<IsVisible>1</IsVisible> <IsVisible>1</IsVisible>
<Width>129</Width> <Width>129</Width>
</COLUMN> </COLUMN>
<COLUMN> <COLUMN>
<ID>Tx/Rx</ID> <ID>Tx/Rx</ID>
<Order>1</Order> <Order>4</Order>
<IsVisible>1</IsVisible> <IsVisible>1</IsVisible>
<Width>53</Width> <Width>53</Width>
</COLUMN> </COLUMN>
@ -553,11 +548,11 @@
<ID>Data Byte(s)</ID> <ID>Data Byte(s)</ID>
<Order>9</Order> <Order>9</Order>
<IsVisible>1</IsVisible> <IsVisible>1</IsVisible>
<Width>139</Width> <Width>158</Width>
</COLUMN> </COLUMN>
<IsHex>1</IsHex> <IsHex>1</IsHex>
<IsAppend>0</IsAppend> <IsAppend>1</IsAppend>
<IsInterpret>1</IsInterpret> <IsInterpret>0</IsInterpret>
<Time_Mode>SYSTEM</Time_Mode> <Time_Mode>SYSTEM</Time_Mode>
<Window_Position> <Window_Position>
<Visibility>SHOWNORMAL</Visibility> <Visibility>SHOWNORMAL</Visibility>
@ -570,10 +565,10 @@
<Interpretation_Window_Position> <Interpretation_Window_Position>
<Visibility>SHOWNORMAL</Visibility> <Visibility>SHOWNORMAL</Visibility>
<WindowPlacement>RESTORETOMAXIMIZED</WindowPlacement> <WindowPlacement>RESTORETOMAXIMIZED</WindowPlacement>
<Top>173</Top> <Top>181</Top>
<Left>10</Left> <Left>12</Left>
<Bottom>451</Bottom> <Bottom>459</Bottom>
<Right>359</Right> <Right>361</Right>
</Interpretation_Window_Position> </Interpretation_Window_Position>
</CAN_Message_Window> </CAN_Message_Window>
<J1939_Message_Window> <J1939_Message_Window>
@ -670,10 +665,10 @@
<Interpretation_Window_Position> <Interpretation_Window_Position>
<Visibility>SHOWNORMAL</Visibility> <Visibility>SHOWNORMAL</Visibility>
<WindowPlacement>RESTORETOMAXIMIZED</WindowPlacement> <WindowPlacement>RESTORETOMAXIMIZED</WindowPlacement>
<Top>173</Top> <Top>181</Top>
<Left>10</Left> <Left>12</Left>
<Bottom>451</Bottom> <Bottom>459</Bottom>
<Right>359</Right> <Right>361</Right>
</Interpretation_Window_Position> </Interpretation_Window_Position>
</J1939_Message_Window> </J1939_Message_Window>
<LIN_Message_Window> <LIN_Message_Window>
@ -755,10 +750,10 @@
<Interpretation_Window_Position> <Interpretation_Window_Position>
<Visibility>SHOWNORMAL</Visibility> <Visibility>SHOWNORMAL</Visibility>
<WindowPlacement>RESTORETOMAXIMIZED</WindowPlacement> <WindowPlacement>RESTORETOMAXIMIZED</WindowPlacement>
<Top>173</Top> <Top>181</Top>
<Left>10</Left> <Left>12</Left>
<Bottom>451</Bottom> <Bottom>459</Bottom>
<Right>359</Right> <Right>361</Right>
</Interpretation_Window_Position> </Interpretation_Window_Position>
</LIN_Message_Window> </LIN_Message_Window>
<CAN_Tx_Window> <CAN_Tx_Window>
@ -855,73 +850,25 @@
<Key_Value>a</Key_Value> <Key_Value>a</Key_Value>
<Key_Enabled>FALSE</Key_Enabled> <Key_Enabled>FALSE</Key_Enabled>
</Message> </Message>
<Message>
<Channel>1</Channel>
<Message_ID>1311</Message_ID>
<IsExtended>FALSE</IsExtended>
<IsRtr>FALSE</IsRtr>
<DLC>2</DLC>
<DataBytes>16,0</DataBytes>
<Repetion>500</Repetion>
<Repetition_Enabled>FALSE</Repetition_Enabled>
<Key_Value>a</Key_Value>
<Key_Enabled>FALSE</Key_Enabled>
</Message>
<Message>
<Channel>1</Channel>
<Message_ID>1297</Message_ID>
<IsExtended>FALSE</IsExtended>
<IsRtr>FALSE</IsRtr>
<DLC>8</DLC>
<DataBytes>152,139,8,0,0,0,0,0</DataBytes>
<Repetion>10</Repetion>
<Repetition_Enabled>FALSE</Repetition_Enabled>
<Key_Value>a</Key_Value>
<Key_Enabled>FALSE</Key_Enabled>
</Message>
<Message>
<Channel>1</Channel>
<Message_ID>529</Message_ID>
<IsExtended>FALSE</IsExtended>
<IsRtr>FALSE</IsRtr>
<DLC>3</DLC>
<DataBytes>25,50,0</DataBytes>
<Repetion>10</Repetion>
<Repetition_Enabled>FALSE</Repetition_Enabled>
<Key_Value>a</Key_Value>
<Key_Enabled>FALSE</Key_Enabled>
</Message>
<Message>
<Channel>1</Channel>
<Message_ID>1055</Message_ID>
<IsExtended>FALSE</IsExtended>
<IsRtr>FALSE</IsRtr>
<DLC>2</DLC>
<DataBytes>0,0</DataBytes>
<Repetion>500</Repetion>
<Repetition_Enabled>FALSE</Repetition_Enabled>
<Key_Value>a</Key_Value>
<Key_Enabled>FALSE</Key_Enabled>
</Message>
<Message>
<Channel>1</Channel>
<Message_ID>543</Message_ID>
<IsExtended>FALSE</IsExtended>
<IsRtr>FALSE</IsRtr>
<DLC>1</DLC>
<DataBytes>0</DataBytes>
<Repetion>100</Repetion>
<Repetition_Enabled>FALSE</Repetition_Enabled>
<Key_Value>a</Key_Value>
<Key_Enabled>FALSE</Key_Enabled>
</Message>
<Message> <Message>
<Channel>1</Channel> <Channel>1</Channel>
<Message_ID>23</Message_ID> <Message_ID>23</Message_ID>
<IsExtended>FALSE</IsExtended> <IsExtended>FALSE</IsExtended>
<IsRtr>FALSE</IsRtr> <IsRtr>FALSE</IsRtr>
<DLC>4</DLC> <DLC>4</DLC>
<DataBytes>250,0,0,0</DataBytes> <DataBytes>0,0,0,0</DataBytes>
<Repetion>10</Repetion>
<Repetition_Enabled>FALSE</Repetition_Enabled>
<Key_Value>a</Key_Value>
<Key_Enabled>FALSE</Key_Enabled>
</Message>
<Message>
<Channel>1</Channel>
<Message_ID>24</Message_ID>
<IsExtended>FALSE</IsExtended>
<IsRtr>FALSE</IsRtr>
<DLC>4</DLC>
<DataBytes>0,0,0,0</DataBytes>
<Repetion>10</Repetion> <Repetion>10</Repetion>
<Repetition_Enabled>FALSE</Repetition_Enabled> <Repetition_Enabled>FALSE</Repetition_Enabled>
<Key_Value>a</Key_Value> <Key_Value>a</Key_Value>
@ -932,8 +879,8 @@
<Message_ID>1540</Message_ID> <Message_ID>1540</Message_ID>
<IsExtended>FALSE</IsExtended> <IsExtended>FALSE</IsExtended>
<IsRtr>FALSE</IsRtr> <IsRtr>FALSE</IsRtr>
<DLC>4</DLC> <DLC>0</DLC>
<DataBytes>0,0,0,0</DataBytes> <DataBytes>0</DataBytes>
<Repetion>10</Repetion> <Repetion>10</Repetion>
<Repetition_Enabled>FALSE</Repetition_Enabled> <Repetition_Enabled>FALSE</Repetition_Enabled>
<Key_Value>a</Key_Value> <Key_Value>a</Key_Value>

View File

@ -6,7 +6,7 @@
[BUSMASTER_VERSION] [3.2.2] [BUSMASTER_VERSION] [3.2.2]
[NUMBER_OF_MESSAGES] 29 [NUMBER_OF_MESSAGES] 32
[START_MSG] JOY_MEASURE,529,3,3,1,S [START_MSG] JOY_MEASURE,529,3,3,1,S
[START_SIGNALS] posX,8,1,0,I,127,-128,1,0.000000,1.000000,%, [START_SIGNALS] posX,8,1,0,I,127,-128,1,0.000000,1.000000,%,
@ -177,3 +177,14 @@
[START_SIGNALS] displayAliveTime,8,1,0,U,255,0,1,0.000000,10.000000,ms, [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, [START_SIGNALS] steeringAliveTime,8,2,0,U,255,0,1,0.000000,10.000000,ms,
[END_MSG] [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]