Subversion Repositories EngineBay2

Rev

Rev 14 | Rev 17 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 16
Line 203... Line 203...
203
                   {
203
                   {
204
                          Coded_CHT= 1000; // signal fail
204
                          Coded_CHT= 1000; // signal fail
205
                   }
205
                   }
206
        }
206
        }
207
 
207
 
208
        plx_sendword(PLX_EGT);
208
        plx_sendword(PLX_X_CHT);
209
        PutCharSerial(&uc1, instance);
209
        PutCharSerial(&uc1, instance);
210
        plx_sendword(Coded_CHT);
210
        plx_sendword(Coded_CHT);
211
     HAL_GPIO_WritePin(SPI_NS_Temp_GPIO_Port, SPI_NS_Temp_Pin, GPIO_PIN_SET);
211
     HAL_GPIO_WritePin(SPI_NS_Temp_GPIO_Port, SPI_NS_Temp_Pin, GPIO_PIN_SET);
212
 
212
 
213
}
213
}
Line 221... Line 221...
221
 
221
 
222
 
222
 
223
}
223
}
224
 
224
 
225
 
225
 
-
 
226
void ProcessTiming(int instance)
-
 
227
{
-
 
228
        plx_sendword(PLX_Timing);
-
 
229
        PutCharSerial(&uc1, instance);
-
 
230
        plx_sendword(64-15); // make it negative
-
 
231
}
-
 
232
 
226
/* USER CODE END 0 */
233
/* USER CODE END 0 */
227
 
234
 
228
int main(void)
235
int main(void)
229
{
236
{
230
 
237
 
Line 333... Line 340...
333
                 ProcessRPM(0);
340
                 ProcessRPM(0);
334
                 ProcessCHT(0);
341
                 ProcessCHT(0);
335
                 ProcessBatteryVoltage(3);
342
                 ProcessBatteryVoltage(3);
336
                 ProcessBatteryVoltage(1);
343
                 ProcessBatteryVoltage(1);
337
 
344
 
-
 
345
                 ProcessTiming(0);
-
 
346
 
338
                 PutCharSerial(&uc1,PLX_Stop);
347
                 PutCharSerial(&uc1,PLX_Stop);
339
                }
348
                }
340
 
349
 
341
        }
350
        }
342
  /* USER CODE END 3 */
351
  /* USER CODE END 3 */