Closed RCMast3r closed 7 months ago
void DrivetrainSystem::enable_drivetrain_hv(current_time_ms)
{
if( ( (current_time_ms - prev_time_) > required_period_ms_) || (prev_time_ ==0 ) )
{
for(auto inv : inv_pointers_)
{
inv->enable_inverter_hv();
}
}
prev_time_ = current_time_ms;
}
in order to handle the rate limiting for message sending I am thinking that we use the time the interface was commanded the first time and there is a minimum required time period for the successive sending of the messages.