#include <PIDControl7.h>
Public Member Functions | |
PIDControl7 () | |
virtual | ~PIDControl7 () |
virtual OStatus | DoInit (const OSystemEvent &event) |
virtual OStatus | DoStart (const OSystemEvent &event) |
virtual OStatus | DoStop (const OSystemEvent &event) |
virtual OStatus | DoDestroy (const OSystemEvent &event) |
void | ReadyEffector (const OReadyEvent &event) |
void | NotifySensor (const ONotifyEvent &event) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
void | OpenPrimitives () |
void | NewCommandVectorData () |
void | SetJointGain () |
MovingResult | AdjustDiffJointValue () |
MovingResult | MoveToBroadBase () |
MovingResult | MoveToSleeping () |
RCRegion * | FindFreeRegion () |
void | SetJointValue (RCRegion *rgn, int idx, double start, double end) |
void | SetJointValueForStepInput (RCRegion *rgn, int idx, double val) |
void | InitSensorIndex (OSensorFrameVectorData *sensorVecData) |
void | DisableJointGainOfAllLegs () |
void | InputParameter () |
MovingResult | StepInput () |
void | SaveLogData () |
bool | YesNo (const char *prompt) |
int | InputKey (const char *prompt) |
Private Attributes | |
PIDControl7State | pidControl7State |
PIDControl7Info | pidControl7Info |
OPrimitiveID | jointID [NUM_JOINTS] |
RCRegion * | region [NUM_COMMAND_VECTOR] |
OJointValue * | logData |
bool | initSensorIndex |
int | sensorIndex [NUM_JOINTS] |
Static Private Attributes | |
const size_t | NUM_COMMAND_VECTOR = 2 |
const word | TILT1_PGAIN = 0x000a |
const word | TILT1_IGAIN = 0x0004 |
const word | TILT1_DGAIN = 0x0002 |
const word | PAN_PGAIN = 0x0008 |
const word | PAN_IGAIN = 0x0002 |
const word | PAN_DGAIN = 0x0004 |
const word | TILT2_PGAIN = 0x000a |
const word | TILT2_IGAIN = 0x0008 |
const word | TILT2_DGAIN = 0x000c |
const word | J1_PGAIN = 0x0010 |
const word | J1_IGAIN = 0x0004 |
const word | J1_DGAIN = 0x0001 |
const word | J2_PGAIN = 0x000a |
const word | J2_IGAIN = 0x0004 |
const word | J2_DGAIN = 0x0001 |
const word | J3_PGAIN = 0x0010 |
const word | J3_IGAIN = 0x0004 |
const word | J3_DGAIN = 0x0001 |
const word | TAIL_PGAIN = 0x000a |
const word | TAIL_IGAIN = 0x0004 |
const word | TAIL_DGAIN = 0x0004 |
const word | PSHIFT = 0x000e |
const word | ISHIFT = 0x0002 |
const word | DSHIFT = 0x000f |
const int | BROADBASE_MAX_COUNTER = 24 |
const int | SLEEPING_MAX_COUNTER = 24 |
const int | STEP_INPUT_NUM_FRAMES = 4 |
const int | HOLD_TIME_NUM_FRAMES = 256 |
|
Definition at line 18 of file PIDControl7.cc. References jointID, PCS7_IDLE, region, and sensorIndex. |
|
Definition at line 153 of file PIDControl7.h. |
|
Definition at line 282 of file PIDControl7.cc. References FindFreeRegion(), GetJointValue(), jointID, NUM_JOINTS, SetJointValue(), and subject. Referenced by DoStart(), and ReadyEffector(). |
|
Definition at line 436 of file PIDControl7.cc. References jointID, LFLEG_J1, LFLEG_J2, LFLEG_J3, LRLEG_J1, LRLEG_J2, LRLEG_J3, RFLEG_J1, RFLEG_J2, RFLEG_J3, RRLEG_J1, RRLEG_J2, and RRLEG_J3. Referenced by ReadyEffector(). |
|
Definition at line 82 of file PIDControl7.cc. |
|
Definition at line 28 of file PIDControl7.cc. References HOLD_TIME_NUM_FRAMES, logData, NewCommandVectorData(), and OpenPrimitives(). |
|
Definition at line 51 of file PIDControl7.cc. References AdjustDiffJointValue(), pidControl7State, and subject. |
|
Definition at line 69 of file PIDControl7.cc. References pidControl7State. |
|
Definition at line 377 of file PIDControl7.cc. References region. Referenced by AdjustDiffJointValue(), MoveToBroadBase(), MoveToSleeping(), and StepInput(). |
|
Definition at line 421 of file PIDControl7.cc. References jointID, and sensorIndex. Referenced by NotifySensor(). |
|
Definition at line 522 of file PIDControl7.cc. Referenced by InputParameter(). |
|
Definition at line 453 of file PIDControl7.cc. References PIDControl7Info::desiredValue, PIDControl7Info::dgain, DSHIFT, PIDControl7Info::effectorCounter, PIDControl7Info::igain, InputKey(), ISHIFT, jointID, PIDControl7Info::jointIndex, PIDControl7Info::pgain, pidControl7Info, PSHIFT, and PIDControl7Info::sensorCounter. Referenced by ReadyEffector(). |
|
Definition at line 304 of file PIDControl7.cc. References BROADBASE_ANGLE, FindFreeRegion(), GetJointValue(), jointID, MOVING_FINISH, SetJointValue(), and subject. Referenced by ReadyEffector(). |
|
Definition at line 346 of file PIDControl7.cc. References BROADBASE_ANGLE, FindFreeRegion(), MOVING_FINISH, SetJointValue(), SLEEPING_ANGLE, and subject. Referenced by ReadyEffector(). |
|
Definition at line 208 of file PIDControl7.cc. References jointID, NUM_JOINTS, and region. Referenced by DoInit(). |
|
Definition at line 161 of file PIDControl7.cc. References InitSensorIndex(), initSensorIndex, PIDControl7Info::jointIndex, logData, memcpy(), observer, pidControl7Info, pidControl7State, PIDControl7Info::sensorCounter, sensorIndex, and STEP_INPUT_NUM_FRAMES. |
|
Definition at line 195 of file PIDControl7.cc. References jointID. Referenced by DoInit(). |
|
Definition at line 89 of file PIDControl7.cc. References AdjustDiffJointValue(), DisableJointGainOfAllLegs(), InputParameter(), MoveToBroadBase(), MoveToSleeping(), MovingResult, observer, pidControl7State, SaveLogData(), SetJointGain(), StepInput(), and YesNo(). |
|
Definition at line 531 of file PIDControl7.cc. References logData. Referenced by ReadyEffector(). |
|
Definition at line 240 of file PIDControl7.cc. References DSHIFT, HEAD_PAN, HEAD_TILT1, HEAD_TILT2, ISHIFT, J1_DGAIN, J1_IGAIN, J1_PGAIN, J2_DGAIN, J2_IGAIN, J2_PGAIN, J3_DGAIN, J3_IGAIN, J3_PGAIN, jointID, PAN_DGAIN, PAN_IGAIN, PAN_PGAIN, PSHIFT, TILT1_DGAIN, TILT1_IGAIN, TILT1_PGAIN, TILT2_DGAIN, TILT2_IGAIN, and TILT2_PGAIN. Referenced by ReadyEffector(). |
|
Definition at line 387 of file PIDControl7.cc. References jointID. Referenced by AdjustDiffJointValue(), MoveToBroadBase(), and MoveToSleeping(). |
|
Definition at line 405 of file PIDControl7.cc. References jointID, and STEP_INPUT_NUM_FRAMES. Referenced by StepInput(). |
|
Definition at line 484 of file PIDControl7.cc. References PIDControl7Info::desiredValue, PIDControl7Info::effectorCounter, FindFreeRegion(), HOLD_TIME_NUM_FRAMES, PIDControl7Info::jointIndex, pidControl7Info, PIDControl7Info::sensorCounter, SetJointValueForStepInput(), and subject. Referenced by ReadyEffector(). |
|
Definition at line 509 of file PIDControl7.cc. Referenced by ReadyEffector(). |
|
Definition at line 221 of file PIDControl7.h. |
|
Definition at line 219 of file PIDControl7.h. Referenced by InputParameter(), and SetJointGain(). |
|
Definition at line 225 of file PIDControl7.h. Referenced by DoInit(), and StepInput(). |
|
Definition at line 234 of file PIDControl7.h. Referenced by NotifySensor(). |
|
Definition at line 218 of file PIDControl7.h. Referenced by InputParameter(), and SetJointGain(). |
|
Definition at line 203 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 202 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 201 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 207 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 206 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 205 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 211 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 210 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 209 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 230 of file PIDControl7.h. Referenced by AdjustDiffJointValue(), DisableJointGainOfAllLegs(), InitSensorIndex(), InputParameter(), MoveToBroadBase(), NewCommandVectorData(), OpenPrimitives(), PIDControl7(), SetJointGain(), SetJointValue(), and SetJointValueForStepInput(). |
|
Definition at line 232 of file PIDControl7.h. Referenced by DoInit(), NotifySensor(), and SaveLogData(). |
|
Definition at line 187 of file PIDControl7.h. |
|
Definition at line 156 of file PIDControl7.h. Referenced by NotifySensor(), and ReadyEffector(). |
|
Definition at line 195 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 194 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 193 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 228 of file PIDControl7.h. Referenced by InputParameter(), NotifySensor(), and StepInput(). |
|
Definition at line 227 of file PIDControl7.h. Referenced by DoStart(), DoStop(), NotifySensor(), and ReadyEffector(). |
|
Definition at line 217 of file PIDControl7.h. Referenced by InputParameter(), and SetJointGain(). |
|
Definition at line 231 of file PIDControl7.h. Referenced by FindFreeRegion(), NewCommandVectorData(), and PIDControl7(). |
|
Definition at line 235 of file PIDControl7.h. Referenced by InitSensorIndex(), NotifySensor(), and PIDControl7(). |
|
Definition at line 222 of file PIDControl7.h. |
|
Definition at line 224 of file PIDControl7.h. Referenced by NotifySensor(), and SetJointValueForStepInput(). |
|
Definition at line 155 of file PIDControl7.h. Referenced by AdjustDiffJointValue(), DoStart(), MoveToBroadBase(), MoveToSleeping(), and StepInput(). |
|
Definition at line 215 of file PIDControl7.h. |
|
Definition at line 214 of file PIDControl7.h. |
|
Definition at line 213 of file PIDControl7.h. |
|
Definition at line 191 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 190 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 189 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 199 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 198 of file PIDControl7.h. Referenced by SetJointGain(). |
|
Definition at line 197 of file PIDControl7.h. Referenced by SetJointGain(). |