mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 19:43:16 +02:00
Implementación de IP estática
This commit is contained in:
parent
ec4742145f
commit
385adaf90a
4 changed files with 15 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ static bool driver_installed = false;
|
|||
void CAN::start() {
|
||||
Serial.println("Starting CAN Controller...");
|
||||
twai_general_config_t g_config = TWAI_GENERAL_CONFIG_DEFAULT((gpio_num_t)TX_PIN, (gpio_num_t)RX_PIN, TWAI_MODE_NORMAL);
|
||||
twai_timing_config_t t_config = TWAI_TIMING_CONFIG_125KBITS();
|
||||
twai_timing_config_t t_config = TWAI_TIMING_CONFIG_500KBITS();
|
||||
twai_filter_config_t f_config = TWAI_FILTER_CONFIG_ACCEPT_ALL();
|
||||
|
||||
esp_err_t install_status = twai_driver_install(&g_config, &t_config, &f_config);
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@ void DataProcessor::send_serial_frame_0(int rpmh, int rpml, int tpsh, int tpsl,
|
|||
Serial.println("send_serial_frame_0");
|
||||
|
||||
// Actualizamos las variables globales para que puedan ser leidas por el protocolo UDP
|
||||
this -> current_ect_value = ect;
|
||||
this->current_ect_value = ect;
|
||||
this->current_rpm_value = rpm;
|
||||
this->current_vbatt_value = vbatt;
|
||||
|
||||
// Serial.printf("CAN RX -> ECT: %d | RPM: %d | BATT: %.1f \n", ect, rpm, vbatt);;
|
||||
Serial.printf("CAN RX -> ECT: %d | RPM: %d | BATT: %.1f \n", ect, rpm, vbatt);;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue