30 double distance = sqrt((dx * dx) + (dy * dy) + (dz * dz));
40 uint32_t idx = (uint32_t)(distance * 10);
41 idx = std::min(idx, (uint32_t)(
sizeof(
vel_dist_lookup) /
sizeof(
float)));
constexpr const float METERS_PER_SECOND_TO_RPM
const float vel_dist_lookup[750]
float launch_speed_target_
int16_t init_speed_target_
void calc_launch_algo(const VectornavData_s &vn_data) override
increases speed target based on distance from start to ensure the speed target is progressing as the ...
float launch_rate_target_
void calc_launch_algo(const VectornavData_s &vn_data) override
Increases speed target during launch linearly based off launch rate provided in the constructor.
void calc_launch_algo(const VectornavData_s &vn_data) override
Increases speed target during launch linearly according to slip ratio to keep the cars wheels spinnin...
const int16_t DEFAULT_LAUNCH_SPEED_TARGET
const int16_t DEFAULT_LAUNCH_SPEED_TARGET