send params
This commit is contained in:
parent
1ad382063c
commit
57b19e59d9
@ -93,8 +93,11 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data){
|
|||||||
KART_CST.STEERING_ALIVE_TIME = incomeData.separate.byte1;
|
KART_CST.STEERING_ALIVE_TIME = incomeData.separate.byte1;
|
||||||
MEM_write_1_byte(MEMADD_DISPLAY_ALIVE_TIME, KART_CST.DISPLAY_ALIVE_TIME);
|
MEM_write_1_byte(MEMADD_DISPLAY_ALIVE_TIME, KART_CST.DISPLAY_ALIVE_TIME);
|
||||||
MEM_write_1_byte(MEMADD_STEERING_ALIVE_TIME, KART_CST.STEERING_ALIVE_TIME);
|
MEM_write_1_byte(MEMADD_STEERING_ALIVE_TIME, KART_CST.STEERING_ALIVE_TIME);
|
||||||
|
|
||||||
// TODO set alive times
|
// TODO set alive times
|
||||||
// TODO send params
|
// start alives
|
||||||
|
CM_DISPLAY_SETUP(NULL);
|
||||||
|
CM_STEERING_SETUP(NULL);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,9 +126,10 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data){
|
|||||||
MEM_write_1_byte(MEMADD_DRIVE_ALIVE_TIME, KART_CST.DRIVE_ALIVE_TIME);
|
MEM_write_1_byte(MEMADD_DRIVE_ALIVE_TIME, KART_CST.DRIVE_ALIVE_TIME);
|
||||||
MEM_write_1_byte(MEMADD_DRIVE_SPEED_TIME, KART_CST.DRIVE_SPEED_TIME);
|
MEM_write_1_byte(MEMADD_DRIVE_SPEED_TIME, KART_CST.DRIVE_SPEED_TIME);
|
||||||
MEM_write_1_byte(MEMADD_DRIVE_STOP_TIME, KART_CST.DRIVE_STOP_TIME);
|
MEM_write_1_byte(MEMADD_DRIVE_STOP_TIME, KART_CST.DRIVE_STOP_TIME);
|
||||||
ALIVE_setAliveTime(drive()->myChecker, KART_CST.DRIVE_ALIVE_TIME);
|
|
||||||
|
ALIVE_setAliveTime(&drive()->myChecker, KART_CST.DRIVE_ALIVE_TIME);
|
||||||
|
ALIVE_emitStart(&drive()->myChecker, 0, 0);
|
||||||
CM_DRIVE_SETUP(NULL);
|
CM_DRIVE_SETUP(NULL);
|
||||||
// TODO send params
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,8 +143,10 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data){
|
|||||||
MEM_write_1_byte(MEMADD_BATTERY_CURRENT_TIME, KART_CST.BATTERY_CURRENT_TIME);
|
MEM_write_1_byte(MEMADD_BATTERY_CURRENT_TIME, KART_CST.BATTERY_CURRENT_TIME);
|
||||||
MEM_write_1_byte(MEMADD_BATTERY_ENERGY_TIME, KART_CST.BATTERY_ENERGY_TIME);
|
MEM_write_1_byte(MEMADD_BATTERY_ENERGY_TIME, KART_CST.BATTERY_ENERGY_TIME);
|
||||||
MEM_write_1_byte(MEMADD_BATTERY_ALIVE_TIME, KART_CST.BATTERY_ALIVE_TIME);
|
MEM_write_1_byte(MEMADD_BATTERY_ALIVE_TIME, KART_CST.BATTERY_ALIVE_TIME);
|
||||||
|
|
||||||
// TODO set alive time
|
// TODO set alive time
|
||||||
// TODO send params
|
// TODO start alive
|
||||||
|
CM_SUPPLY_SETUP(NULL);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,18 +210,115 @@
|
|||||||
<property key="program-the-device-with-default-config-words" value="true"/>
|
<property key="program-the-device-with-default-config-words" value="true"/>
|
||||||
<property key="remove-unused-sections" value="true"/>
|
<property key="remove-unused-sections" value="true"/>
|
||||||
</HI-TECH-LINK>
|
</HI-TECH-LINK>
|
||||||
|
<PICkit3PlatformTool>
|
||||||
|
<property key="AutoSelectMemRanges" value="auto"/>
|
||||||
|
<property key="Freeze Peripherals" value="true"/>
|
||||||
|
<property key="SecureSegment.SegmentProgramming" value="FullChipProgramming"/>
|
||||||
|
<property key="ToolFirmwareFilePath"
|
||||||
|
value="Press to browse for a specific firmware version"/>
|
||||||
|
<property key="ToolFirmwareOption.UseLatestFirmware" value="true"/>
|
||||||
|
<property key="debugoptions.debug-startup" value="Use system settings"/>
|
||||||
|
<property key="debugoptions.reset-behaviour" value="Use system settings"/>
|
||||||
|
<property key="debugoptions.useswbreakpoints" value="false"/>
|
||||||
|
<property key="event.recorder.enabled" value="false"/>
|
||||||
|
<property key="event.recorder.scvd.files" value=""/>
|
||||||
|
<property key="hwtoolclock.frcindebug" value="false"/>
|
||||||
|
<property key="lastid" value=""/>
|
||||||
|
<property key="memories.aux" value="false"/>
|
||||||
|
<property key="memories.bootflash" value="true"/>
|
||||||
|
<property key="memories.configurationmemory" value="true"/>
|
||||||
|
<property key="memories.configurationmemory2" value="true"/>
|
||||||
|
<property key="memories.dataflash" value="true"/>
|
||||||
|
<property key="memories.eeprom" value="true"/>
|
||||||
|
<property key="memories.flashdata" value="true"/>
|
||||||
|
<property key="memories.id" value="true"/>
|
||||||
|
<property key="memories.instruction.ram" value="true"/>
|
||||||
|
<property key="memories.instruction.ram.ranges"
|
||||||
|
value="${memories.instruction.ram.ranges}"/>
|
||||||
|
<property key="memories.programmemory" value="true"/>
|
||||||
|
<property key="memories.programmemory.ranges" value="0-ffff"/>
|
||||||
|
<property key="poweroptions.powerenable" value="false"/>
|
||||||
|
<property key="programmertogo.imagename" value=""/>
|
||||||
|
<property key="programoptions.donoteraseauxmem" value="false"/>
|
||||||
|
<property key="programoptions.eraseb4program" value="true"/>
|
||||||
|
<property key="programoptions.pgmspeed" value="2"/>
|
||||||
|
<property key="programoptions.preservedataflash" value="false"/>
|
||||||
|
<property key="programoptions.preservedataflash.ranges"
|
||||||
|
value="${programoptions.preservedataflash.ranges}"/>
|
||||||
|
<property key="programoptions.preserveeeprom" value="true"/>
|
||||||
|
<property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/>
|
||||||
|
<property key="programoptions.preserveprogram.ranges" value=""/>
|
||||||
|
<property key="programoptions.preserveprogramrange" value="false"/>
|
||||||
|
<property key="programoptions.preserveuserid" value="false"/>
|
||||||
|
<property key="programoptions.programcalmem" value="false"/>
|
||||||
|
<property key="programoptions.programuserotp" value="false"/>
|
||||||
|
<property key="programoptions.testmodeentrymethod" value="VDDFirst"/>
|
||||||
|
<property key="programoptions.usehighvoltageonmclr" value="false"/>
|
||||||
|
<property key="programoptions.uselvpprogramming" value="false"/>
|
||||||
|
<property key="voltagevalue" value="5.0"/>
|
||||||
|
</PICkit3PlatformTool>
|
||||||
|
<Tool>
|
||||||
|
<property key="AutoSelectMemRanges" value="auto"/>
|
||||||
|
<property key="Freeze Peripherals" value="true"/>
|
||||||
|
<property key="SecureSegment.SegmentProgramming" value="FullChipProgramming"/>
|
||||||
|
<property key="ToolFirmwareFilePath"
|
||||||
|
value="Press to browse for a specific firmware version"/>
|
||||||
|
<property key="ToolFirmwareOption.UseLatestFirmware" value="true"/>
|
||||||
|
<property key="debugoptions.debug-startup" value="Use system settings"/>
|
||||||
|
<property key="debugoptions.reset-behaviour" value="Use system settings"/>
|
||||||
|
<property key="debugoptions.useswbreakpoints" value="false"/>
|
||||||
|
<property key="event.recorder.enabled" value="false"/>
|
||||||
|
<property key="event.recorder.scvd.files" value=""/>
|
||||||
|
<property key="hwtoolclock.frcindebug" value="false"/>
|
||||||
|
<property key="lastid" value=""/>
|
||||||
|
<property key="memories.aux" value="false"/>
|
||||||
|
<property key="memories.bootflash" value="true"/>
|
||||||
|
<property key="memories.configurationmemory" value="true"/>
|
||||||
|
<property key="memories.configurationmemory2" value="true"/>
|
||||||
|
<property key="memories.dataflash" value="true"/>
|
||||||
|
<property key="memories.eeprom" value="true"/>
|
||||||
|
<property key="memories.flashdata" value="true"/>
|
||||||
|
<property key="memories.id" value="true"/>
|
||||||
|
<property key="memories.instruction.ram" value="true"/>
|
||||||
|
<property key="memories.instruction.ram.ranges"
|
||||||
|
value="${memories.instruction.ram.ranges}"/>
|
||||||
|
<property key="memories.programmemory" value="true"/>
|
||||||
|
<property key="memories.programmemory.ranges" value="0-ffff"/>
|
||||||
|
<property key="poweroptions.powerenable" value="false"/>
|
||||||
|
<property key="programmertogo.imagename" value=""/>
|
||||||
|
<property key="programoptions.donoteraseauxmem" value="false"/>
|
||||||
|
<property key="programoptions.eraseb4program" value="true"/>
|
||||||
|
<property key="programoptions.pgmspeed" value="2"/>
|
||||||
|
<property key="programoptions.preservedataflash" value="false"/>
|
||||||
|
<property key="programoptions.preservedataflash.ranges"
|
||||||
|
value="${programoptions.preservedataflash.ranges}"/>
|
||||||
|
<property key="programoptions.preserveeeprom" value="true"/>
|
||||||
|
<property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/>
|
||||||
|
<property key="programoptions.preserveprogram.ranges" value=""/>
|
||||||
|
<property key="programoptions.preserveprogramrange" value="false"/>
|
||||||
|
<property key="programoptions.preserveuserid" value="false"/>
|
||||||
|
<property key="programoptions.programcalmem" value="false"/>
|
||||||
|
<property key="programoptions.programuserotp" value="false"/>
|
||||||
|
<property key="programoptions.testmodeentrymethod" value="VDDFirst"/>
|
||||||
|
<property key="programoptions.usehighvoltageonmclr" value="false"/>
|
||||||
|
<property key="programoptions.uselvpprogramming" value="false"/>
|
||||||
|
<property key="voltagevalue" value="5.0"/>
|
||||||
|
</Tool>
|
||||||
<XC8-CO>
|
<XC8-CO>
|
||||||
<property key="coverage-enable" value=""/>
|
<property key="coverage-enable" value=""/>
|
||||||
<property key="stack-guidance" value="false"/>
|
<property key="stack-guidance" value="false"/>
|
||||||
</XC8-CO>
|
</XC8-CO>
|
||||||
<XC8-config-global>
|
<XC8-config-global>
|
||||||
<property key="advanced-elf" value="true"/>
|
<property key="advanced-elf" value="true"/>
|
||||||
|
<property key="constdata-progmem" value="true"/>
|
||||||
<property key="gcc-opt-driver-new" value="true"/>
|
<property key="gcc-opt-driver-new" value="true"/>
|
||||||
<property key="gcc-opt-std" value="-std=c99"/>
|
<property key="gcc-opt-std" value="-std=c99"/>
|
||||||
<property key="gcc-output-file-format" value="dwarf-3"/>
|
<property key="gcc-output-file-format" value="dwarf-3"/>
|
||||||
|
<property key="mapped-progmem" value="false"/>
|
||||||
<property key="omit-pack-options" value="false"/>
|
<property key="omit-pack-options" value="false"/>
|
||||||
<property key="omit-pack-options-new" value="1"/>
|
<property key="omit-pack-options-new" value="1"/>
|
||||||
<property key="output-file-format" value="-mcof,+elf"/>
|
<property key="output-file-format" value="-mcof,+elf"/>
|
||||||
|
<property key="smart-io-format" value=""/>
|
||||||
<property key="stack-size-high" value="auto"/>
|
<property key="stack-size-high" value="auto"/>
|
||||||
<property key="stack-size-low" value="auto"/>
|
<property key="stack-size-low" value="auto"/>
|
||||||
<property key="stack-size-main" value="auto"/>
|
<property key="stack-size-main" value="auto"/>
|
||||||
|
Reference in New Issue
Block a user