A class for calculating steering angle calculations based on current and desired heading and specified intercept distance along the new path.

Dependents:   AVC_20110423

Embed: (wiki syntax)

« Back to documentation index

Steering Class Reference

Steering Class Reference

A class for managing steering angle calculations based on current and desired heading and specified intercept distance along the new path. More...

#include <Steering.h>

Public Member Functions

 Steering (float wheelbase, float track)
 create a new steering calculator
void setIntercept (float intercept)
 set intercept distance
float calcSA (float theta)
 convert course change to average steering angle assumes Ackerman steering, with track and wheelbase and course intercept distance specified.

Detailed Description

A class for managing steering angle calculations based on current and desired heading and specified intercept distance along the new path.

See Notebook entry: http://mbed.org/users/shimniok/notebook/smooth-steering-for-rc-car/

Definition at line 9 of file Steering.h.


Constructor & Destructor Documentation

Steering ( float  wheelbase,
float  track 
)

create a new steering calculator

create a new steering calculator for a particular vehicle

Parameters:
wheelbasevehicle wheelbase
trackvehicle track width
interceptnew course intercept distance

Definition at line 7 of file Steering.cpp.


Member Function Documentation

float calcSA ( float  theta )

convert course change to average steering angle assumes Ackerman steering, with track and wheelbase and course intercept distance specified.

Calculate a steering angle based on relative bearing.

See notebook: http://mbed.org/users/shimniok/notebook/smooth-steering-for-rc-car/

Parameters:
thetarelative bearing of the new course
Returns:
steering angle in degrees

Definition at line 22 of file Steering.cpp.

void setIntercept ( float  intercept )

set intercept distance

Parameters:
interceptdistance along new course at which turn arc will intercept

Definition at line 14 of file Steering.cpp.