Skip to content

Conversation

@SAki2007
Copy link
Contributor

@SAki2007 SAki2007 commented Dec 6, 2025

Changelist

Testing Done

Resolved Tickets

FIRM-553

@Lucien950 Lucien950 changed the title Shun/rsm hw RSM IOC/HW Jan 12, 2026
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove the stuff added here

file(GLOB HOMEBREW_GCC_CANDIDATES
"/opt/homebrew/bin/gcc-[0-9]*"
"/usr/local/bin/gcc-[0-9]*"
"/usr/bin/gcc"
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this added here?

list(APPEND IO_SRCS)
set(IO_INCLUDE_DIRS
# "${CMAKE_CURRENT_SOURCE_DIR}/src/io"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/"
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT remove the / at the end?

#include "app_canTx.h"
}

#define MIN_BRAKE_PRESSURE_PSI 0.0f
Copy link
Contributor

Choose a reason for hiding this comment

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

so you can use constexpr terms here isntead of define


#include "io_coolant.hpp"

#define MIN_FLOW_RATE_L_PER_MIN 1.0f
Copy link
Contributor

Choose a reason for hiding this comment

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

same thing here please with constexpr

#include "app_canTx.h"
}

#define MIN_TIRE_TEMPERATURE_CELSIUS -20.0f
Copy link
Contributor

Choose a reason for hiding this comment

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

samething here please


} // namespace hw::adcs

extern "C"
Copy link
Contributor

Choose a reason for hiding this comment

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

there is a preprocessor define that is called CFUNC which you can use

} // namespace hw::adcs

extern "C"
{
Copy link
Contributor

Choose a reason for hiding this comment

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

came thing here

PwmInput flow_meter_config(&htim1,
HAL_TIM_ACTIVE_CHANNEL_1,
TIM1_FREQUENCY,
TIM_CHANNEL_1,
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: line it up please

TIM1_ARR
);

void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this needs to be outside of the name space and also externed C given that this is a c function

#include "hw_adc.hpp"
#endif

#define BRAKE_PRESSURE_OC_THRESHOLD_V 0.33f // Change if under-voltage threshold is diff
Copy link
Contributor

Choose a reason for hiding this comment

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

please constexpr these guys as well

return 0;
}

// bool OCSC()
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a reason these guys are commented out?

// namespace io::brakeLight
// {
// void set(const bool val)
// {
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a reason this is commented out


void checkIfFlowMeterActive()
{
// hw_pwmInputFreqOnly_checkIfPwmIsActive(&flow_meter_5v5);
Copy link
Contributor

Choose a reason for hiding this comment

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

commented out?

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

Labels

FSM/RSM Sensor Module ECUs

Development

Successfully merging this pull request may close these issues.

3 participants