safe_speed: Safe Speed

Description Usage Arguments Value Author(s)

View source: R/safe_speed.R

Description

Estimate the highest "velocity" to stop a car for a given distance for different road (with different friction coefficient)

Usage

1
safe_speed(v, mu, safe_distance, g = 9.8, d = 0)

Arguments

v

The starting speed for calculation. After each attempt, the velocity will increase 0.1 unit. (m/s)

mu

The friction coefficient, need to identify for different roads.

safe_distance

The goal of braking distance. (m)

g

The acceleration of gravity, a constant. (9.8 m/s)

d

The technical braking distance to be calculate in the loop, the initial default is 0. (m)

Value

The highest speed estimate until the target braking distance is reached. Numeric.

Author(s)

Ruoyu Wang


quin-smith/groupcsbigpkg documentation built on March 22, 2021, 11:05 p.m.