θm·gm·g·sin θF_grade = m·g·sin(θ̂_road)#PRODUCTIONADAS004
← All writing
#ProductionADAS · 004

The IMU can be right and the controller still gets the road grade wrong

Why a parking car stalls on an incline, and where θ in m·g·sin θ really comes from.

Raghu Ram Theerthala · 24 Jul 2026 · 1 min read

The IMU can be perfectly correct. And the controller can still infer the wrong road grade.

In my previous Production ADAS post, I explained why a vehicle can get stuck while climbing an incline. The controller needs an additional force:

F_grade = m g sin(θ)

The harder question in production: where does the vehicle get θ from?

An IMU mounted on the chassis measures vehicle-body motion and orientation. Suspension compression and longitudinal load transfer change body pitch even when the road grade has not changed.

So engineers generally use two routes.

Neither estimate is perfect on its own. A state observer, often an Extended Kalman Filter or a similar estimator, combines both to produce a more reliable road-grade estimate.

That estimate goes into:

F_grade = m g sin(θ̂_road)

One line of control law. An entire estimation system behind the variable.

In the original post, I explain the problem using a Hot Wheels car.

#ADAS#AutonomousDriving#VehicleDynamics#SensorFusion#ControlSystems

First published on LinkedIn · 41 reactions · 6 comments · join the conversation there

Read on LinkedIn ↗