Skip to content

Commit

Permalink
Flashed to car 5/8/24
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke-kC committed May 8, 2024
1 parent 7d2367a commit 6447dee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ build_src_filter =
-<**/*.cpp>
+<main.cpp>
build_unflags = -std=gnu++11
build_flags = -std=c++17
build_flags =
-std=c++17
-D TEENSY_OPT_SMALLEST_CODE
check_tool = clangtidy
check_src_filters =
+<include/*>
Expand All @@ -45,13 +47,16 @@ upload_protocol = teensy-cli
extra_scripts = pre:extra_script.py
lib_deps =
SPI
Nanopb

https://github.com/hytech-racing/HT_params/releases/download/2024-05-07T06_59_33/ht_eth_pb_lib.tar.gz
https://github.com/hytech-racing/shared_firmware_interfaces.git#native_adcs
https://github.com/hytech-racing/shared_firmware_systems.git
https://github.com/RCMast3r/spi_libs
https://github.com/tonton81/FlexCAN_T4
https://github.com/RCMast3r/hytech_can#testing_new_inv_ids
https://github.com/hytech-racing/HT_CAN/releases/download/86/can_lib.tar.gz
git+ssh://git@github.com/hytech-racing/CASE_lib.git#v39
git+ssh://git@github.com/hytech-racing/CASE_lib.git#v45

[env:test_can_on_teensy]
lib_ignore =
Expand Down
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ void setup()
// initialize CAN communication
init_all_CAN_devices();

Ethernet.begin(EthParams::default_MCU_MAC_address, EthParams::default_MCU_ip);
protobuf_send_socket.begin(EthParams::default_protobuf_send_port);
protobuf_recv_socket.begin(EthParams::default_protobuf_recv_port);
// Ethernet.begin(EthParams::default_MCU_MAC_address, EthParams::default_MCU_ip);
// protobuf_send_socket.begin(EthParams::default_protobuf_send_port);
// protobuf_recv_socket.begin(EthParams::default_protobuf_recv_port);

/* Do this to send message VVV */
// protobuf_socket.beginPacket(EthParams::default_TCU_ip, EthParams::default_protobuf_port);
Expand Down Expand Up @@ -311,7 +311,7 @@ void loop()
// get latest tick from sys clock
SysTick_s curr_tick = sys_clock.tick(micros());

handle_ethernet_interface_comms();
// handle_ethernet_interface_comms();

// process received CAN messages
process_ring_buffer(CAN2_rxBuffer, CAN_receive_interfaces, curr_tick.millis);
Expand Down

0 comments on commit 6447dee

Please sign in to comment.