


Public Types | |
| enum | SensorType { DEPTH, PITCH, ROLL, HEADING } |
Public Member Functions | |
Constructors and Destructors | |
| SubController (OptionManager &mgr, const std::string &descrName="SubController", const std::string &tagName="SubController", const bool simulation=false) | |
| Constructor. | |
| ~SubController () | |
| Destructor. | |
| void | runSimLoop () |
| bool | setLevel () |
| bool | setHeading (int heading) |
| bool | setDepth (int depth) |
| bool | setSpeed (int speed) |
| bool | setTurningSpeed (int speed) |
| bool | setRoll (int roll) |
| bool | setPitch (int pitch) |
| void | start1 () |
| This is called from within start() before the subcomponents start. | |
| void | start2 () |
| This is called from within start() after the subcomponents have started. | |
| int | getHeading () |
| int | getHeadingErr () |
| int | getDepthErr () |
| int | getPitch () |
| int | getRoll () |
| int | getDepth () |
| int | getIntPressure () |
| bool | getKillSwitch () |
| void | setThruster (int thruster, int val) |
| const int * | getIntPressurePtr () |
| const int * | getHeadingPtr () |
| const int * | getPitchPtr () |
| const int * | getRollPtr () |
| const int * | getDepthPtr () |
| const int * | getThruster_Up_Left_Ptr () |
| const int * | getThruster_Up_Right_Ptr () |
| const int * | getThruster_Up_Back_Ptr () |
| const int * | getThruster_Fwd_Right_Ptr () |
| const int * | getThruster_Fwd_Left_Ptr () |
| void | setMotorsOn (bool val) |
| void | setPidOn (bool val) |
| void | updateHeading (unsigned int currentHeading) |
| void | updatePitch (int currentPitch) |
| void | updateRoll (int currentRoll) |
| void | updateDepth (unsigned int currentDepth) |
| void | updatePID () |
| void | sendHeartBeat () |
| void | setIntPressure (unsigned int pressure) |
| void | killMotors () |
| void | genPIDImage () |
| void | genSubImage () |
| const Image< PixRGB< byte > > * | getPIDImagePtr () |
| const Image< PixRGB< byte > > * | getSubImagePtr () |
| const Image< PixRGB< byte > > | getImage (int camera) |
| const Dims | peekDims () |
| bool | isSimMode () |
Definition at line 80 of file SubController.H.
| SubController::SubController | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "SubController", |
|||
| const std::string & | tagName = "SubController", |
|||
| const bool | simulation = false | |||
| ) |
Constructor.
Definition at line 94 of file SubController.C.
References ModelComponent::addSubComponent(), OModelParam< T >::getVal(), and MC_RECURSE.
| SubController::~SubController | ( | ) |
Destructor.
Definition at line 107 of file SubController.C.
| void SubController::start1 | ( | ) | [virtual] |
This is called from within start() before the subcomponents start.
Reimplemented from ModelComponent.
Definition at line 182 of file SubController.C.
References OModelParam< T >::getVal().
| void SubController::start2 | ( | ) | [virtual] |
This is called from within start() after the subcomponents have started.
Reimplemented from ModelComponent.
Definition at line 92 of file SubController.C.
References rutz::shared_ptr< T >::reset().
1.6.3