auto-sync
This commit is contained in:
parent
afdbbb03f3
commit
ec69d43a9f
|
@ -12,6 +12,10 @@
|
|||
#include "allsensors.h"
|
||||
#include "engine_math.h"
|
||||
|
||||
#if EFI_PROD_CODE
|
||||
#include "can_hw.h"
|
||||
#endif
|
||||
|
||||
EXTERN_ENGINE;
|
||||
|
||||
void setCustomEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
||||
|
@ -112,6 +116,9 @@ void setCustomEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
// todo: 8.2 or 10k?
|
||||
engineConfiguration->vbattDividerCoeff = ((float) (10 + 33)) / 10 * 2;
|
||||
|
||||
#if EFI_PROD_CODE
|
||||
enableFrankensoCan();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ENGINES_CUSTOM_ENGINE_CPP_ */
|
||||
|
|
|
@ -447,11 +447,8 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
// engineConfiguration->alternatorControl.pFactor = 22;
|
||||
engineConfiguration->alternatorControl.pFactor = 55; // looks to work better, maybe time for some iFactor
|
||||
|
||||
// engineConfiguration->isCanEnabled = true;
|
||||
boardConfiguration->canTxPin = GPIOB_6;
|
||||
boardConfiguration->canRxPin = GPIOB_12;
|
||||
// enableFrankensoCan();
|
||||
engineConfiguration->canWriteEnabled = true;
|
||||
engineConfiguration->canReadEnabled = false;
|
||||
engineConfiguration->canNbcType = CAN_BUS_NBC_BMW;
|
||||
// engineConfiguration->canNbcType = CAN_BUS_MAZDA_RX8;
|
||||
|
||||
|
|
|
@ -252,6 +252,12 @@ static void canInfo(void) {
|
|||
|
||||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F) {
|
||||
// engineConfiguration->isCanEnabled = true;
|
||||
boardConfiguration->canTxPin = GPIOB_6;
|
||||
boardConfiguration->canRxPin = GPIOB_12;
|
||||
engineConfiguration->canReadEnabled = false;
|
||||
}
|
||||
|
||||
void initCan(void) {
|
||||
#if EFI_PROD_CODE
|
||||
|
|
|
@ -30,5 +30,6 @@ void initCan(void);
|
|||
void commonTxInit(int eid);
|
||||
void sendMessage();
|
||||
void setTxBit(int offset, int index);
|
||||
void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F);
|
||||
|
||||
#endif /* CAN_HW_H_ */
|
||||
|
|
Loading…
Reference in New Issue