#include <drive_sensor.H>
Public Member Functions | |
| drive_sensor_t (simulated_object_t *parent, timer_t *timer) | |
| virtual | ~drive_sensor_t () |
| void | get_drive_data () |
| void | update_position (dBodyID carb) |
| void | command (int cmd, double value) |
| void | simulate_component (dBodyID carb) |
Public Attributes | |
| drive_data_t | m_drive_data |
Private Attributes | |
| simulated_object_t * | m_robot |
| drive_observer_t * | m_drive_observer |
Friends | |
| class | drive_observer_t |
| drive_sensor_t::drive_sensor_t | ( | simulated_object_t * | parent, | |
| timer_t * | timer | |||
| ) |
| drive_sensor_t::~drive_sensor_t | ( | ) | [virtual] |
| void drive_sensor_t::command | ( | int | cmd, | |
| double | value | |||
| ) |
| void drive_sensor_t::get_drive_data | ( | ) |
References cajun::dynamic_object_t::avg_wheel_angle, cajun::simulated_object_t::get_steering_pos(), cajun::simulated_object_t::get_throttle_pos(), m_drive_data, m_robot, cajun::dynamic_object_t::steering_max, cajun::dynamic_object_t::steering_min, cajun::dynamic_object_t::throttle_max, and cajun::dynamic_object_t::throttle_min.
Referenced by drive_sensor_t(), and cajun::drive_observer_t::timeout().
| void drive_sensor_t::simulate_component | ( | dBodyID | carb | ) | [virtual] |
Reimplemented from cajun::components_t.
| void drive_sensor_t::update_position | ( | dBodyID | carb | ) | [virtual] |
Reimplemented from cajun::components_t.
friend class drive_observer_t [friend] |
Referenced by drive_sensor_t().
| drive_data_t cajun::drive_sensor_t::m_drive_data |
Referenced by get_drive_data(), and cajun::drive_observer_t::timeout().
Referenced by drive_sensor_t(), and ~drive_sensor_t().
simulated_object_t* cajun::drive_sensor_t::m_robot [private] |
1.6.1