Skip to content

Conversation

@emilysxng
Copy link
Contributor

@emilysxng emilysxng commented Jan 20, 2026

Changelist

dam ioc, hw, chimera
(not sure about the hw files, especially hw_uarts. I kept the code from the old one for now but pls tell me what I need to fix)

@emilysxng emilysxng requested a review from Lucien950 January 20, 2026 05:04
@Lucien950
Copy link
Contributor

if you try to build the code once, it should generate new cubemx code, and pass CI.

@Lucien950
Copy link
Contributor

cuz currently all of your hw objects area pointing at stm objects which do not exist

@Lucien950 Lucien950 added the Telem/DAM Telemetry Tasks, on the car and off the car label Jan 25, 2026
@emilysxng emilysxng changed the title dam hw dam ioc/hw/chimera Jan 28, 2026
syntax = "proto3";

package DAM;
package dam;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capitalize this please -Amir

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm delete this file

#include "io_canQueue.h"
}

CanHandle can1 = { .hcan = &hfdcan2, .bus_num = 0, .receive_callback = jobs_runCanRx_callBack };
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specify that this fdcan here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually use the new Can stuff


using hw::Gpio;

const Gpio buzzer_pwr_en_pin = { BUZZER_PWR_EN_GPIO_Port, BUZZER_PWR_EN_Pin };
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the C way if doing it. Note that Gpio is a class so use the constructor

#include "main.h"
}

hw::SdCard sd1 = { .hsd = &hsd1, .timeout = 2000, .present_gpio = &sd_present }; No newline at end of file
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing with sd card please refer to cpp constructor

#include "main.h"
}

UartDevice _900k_uart = { .config = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment here


IWDG_HandleTypeDef hiwdg;

RTC_HandleTypeDef hrtc;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time to make a new hw_rtc library hehehehe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Telem/DAM Telemetry Tasks, on the car and off the car

Development

Successfully merging this pull request may close these issues.

3 participants