#include <PhysicalMomentumWheel.h>
Inheritance diagram for PhysicalMomentumWheel:
Definition at line 53 of file PhysicalMomentumWheel.h.
Public Member Functions | |
PhysicalMomentumWheel () | |
Default Constructor. | |
virtual | ~PhysicalMomentumWheel () |
Default Deconstructor. | |
int | Initialize () |
Initialize the wheel and its chain. | |
int | Deinitialize () |
Deinitialize the wheel and its chain. | |
int | Reset () |
Total System Reset for wheel motor. | |
int | ChangeBaud () |
int | EchoOn () |
Set ECHO to on. Echo input data back out main channel. | |
int | EchoOff () |
Set ECHO to off. Do not echo input data back out main channel. | |
int | EnableTorqueMode () |
Enable torque mode for the wheel motor. | |
int | TorqueCommand (double _power) |
Enable torque mode for the wheel motor. | |
int | Stop () |
Stop the wheel. The function resets the settings for the wheel motor. Not a good method, but works. | |
void | StartSpeedQuery () |
Start the speed reading routine of the motor in a separate thread Each wheel's speed query needs to be started individually. The performance occurs when the spart calls for each wheel are spread evenly. | |
void | StopSpeedQuery () |
Stop the speed reading routine of the motor. This function does not need to be called a t the end of the program. The thread will be closed automatically when the program ends. | |
void | CommandWheelTorque (double _wheelTorque) |
Command a torque to the wheel. | |
void | StartTorqueController () |
Start the torque controller. It is called in the CommandWheelTorque function. | |
void | StopTorqueController () |
End the Torque Controller Thread. | |
void | SetWheelSpeed (double desiredWheelSpeed) |
Set wheel speed. | |
void | CommandWheelSpeed () |
Command a speed to the wheel. Retrieves wheelspeed from double m_DesiredWheelSpeed. | |
void | StartPID () |
Start the PID controller in a separate thread. | |
void | StopPID () |
End the PID Control Thread (will be called by the deconstructor). | |
void | CommandSystemTorque (double wheelTorque) |
Old-style Command a torque to the wheel. | |
void | SetWheelTorqueLimits (const double &minWheelTorque, const double &maxWheelTorque) |
Set the maximun and minimum torques to be applied to the wheel. | |
void | SetMaxTorqueStep (const double maxTorqueStep) |
Set the maximum change between the current and desired torque values. | |
void | SetWheelAddress (int WheelAddress) |
Set the address of the wheel in the daisy chain. | |
void | SetDaisyChainNumber (int DaisyChainNumber) |
Set a daisy chain number to distinguish between two or more daisy chains. | |
void | SetDaisyChainPort (string DaisyChainPort) |
Set the port to which the wheel's chain is connected. | |
void | SetBiasSpeed (double BiasSpeed) |
Set the bais speed of the wheel for a momentum wheel. | |
void | SetAxialInertia (double _inertia) |
Set the axial inertia of the wheel. | |
void | SetWheelName (string _wheelName) |
Set the momentum wheel string name. | |
void | SetWheelSpeedCoefficients (Vector _Coefficients1, Vector _Coefficients2, Vector _Coefficients3, Vector _Coefficients4) |
Set the momentum wheel speed coefficients. The wheel speed coefficients are determined from the characterization of each wheel motor. | |
void | GetWheelSpeed (double &Speed, double &measTime) |
double | QueryWheelTorque () |
Returns a double representing the current torque to the wheel in N-m. | |
void | GetAxialInertia (double &_inertia) |
Get wheel inertia. | |
double | GetAxialInertia () |
Returns a type double of wheel inertia kg-m^2. | |
string | GetWheelName () |
Returns a type string of the wheel name. | |
void | GetWheelTorqueLimits (double &minWheelTorque, double &maxWheelTorque) |
Sets the parameters to the min and max torque limits. | |
void | GetMaxTorqueStep (double &maxTorqueStep) |
Sets the parameter maxTorqueStep to the maximum allowed torque step in N-m. | |
int | GetWheelFD () |
Get the Wheel file descriptor. | |
double | GetAmps () |
Get the amps reported by the motor. | |
double | GetVolts () |
Get the voltage the motor. | |
virtual int | GetWheelCount () |
bool | IsActive () |
Returns the current state of m_bActiveState. | |
Vector | GetLocation () const |
Returns the physical location of the device with respect to whorl body coordinates. | |
void | SetLocation (const Vector &newDeviceLocation) |
Specify the physical location of the device with respect to whorl body coordinates. | |
Static Public Attributes | |
const bool | c_bNotActive = false |
a constant bool that is equal to false. | |
const bool | c_bActive = true |
a constant bool that is equal to true. | |
Protected Attributes | |
char * | name |
Private Attributes | |
double | m_CurrentWheelSpeed |
Member double that holds the current angular wheel speed in rad/sec. | |
double | m_VelocityTime |
Memeber double holds the time of velcotiy measurement in seconds from unix epoch. | |
double | m_DesiredWheelSpeed |
Member double that holds the desired angular wheel speed in rad/sec. | |
double | m_MaxWheelTorque |
Member double that holds the maximum output torque in N-m. | |
double | m_MinWheelTorque |
Member double that holds the minimum output torque in N-m. | |
double | m_CurrentWheelTorque |
Member double that holds the current ouput torque in N-m. | |
double | m_DesiredWheelTorque |
Desired wheel Torque. | |
double | m_AxialInertia |
Member double that holds the axial Inertia in kg-m^2. | |
int | m_BiasFlag |
Member integer Bias speed set flag. | |
double | m_BiasSpeed |
Momentum Wheel bias speed. | |
int | m_WheelAddress |
Member integer that holds the address of the wheel on its daisy chain. | |
int | m_DaisyChainNumber |
Member integer that holds which daisy chain the wheel is on. | |
int | m_fd |
Member integer that holds the file descriptor for all wheels. | |
string | m_DaisyChainPort |
Member string that hold which port the wheel is connected to. | |
double | m_MinVolts |
Member double that hold minimum volts of the reaction wheel motor. | |
double | m_MaxAmps |
Member double that hold maximum current of the reaction wheel motor. | |
string | m_WheelName |
Member double that hold maximum current of the reaction wheel motor. | |
pthread_t | m_PIDThreadID |
Member pthread id for splitting off PID control. | |
pthread_t | m_SpeedThreadID |
Member pthread for splitting off speed queries. | |
pthread_t | m_TorqueThreadID |
Member pthread for Torque Controller. | |
pthread_mutex_t | m_Mutex |
Memeber mutex lock variable. | |
int | m_exitConditionSpeed |
int | m_exitConditionTorque |
double | LAST_VEL |
Member double that holds the last angular velocity of the wheel, used in PID controller. | |
double | LAST_TOR |
Member double that holds the last applied wheel torque, used in PID controller. | |
double | LAST_ERR |
Member double that holds the last velocity error, used by the PID controller. | |
double | LAST_VOLT |
Member double that holds the last voltage, used by PID controller. | |
double | m_MaxTorqueStep |
Member double that holds the largest permissable torque change in N-m. | |
int | m_TorqueControlFlag |
Member integer Torque Control flag, used in Torque Controller. | |
double | m_TorqueControllerDeltaTime |
Delta Time to produce Desired Control Torque, used in Torque Controller [s]. | |
double | m_TorqueControllerTorqueGain |
Proportional Torque Gain (to tune function to supply torques closer to actual N-m). | |
double | m_TorqueControllerNegativeTimeGain |
Negative Time Gain. | |
double | m_TorqueControllerSteadyStateGain |
Steady State Gain [rad/s]. | |
int | m_TorqueControllerDesiredWheelSpeedFlag |
Member integer Torque Control Wheel Speed flag, used in Torque Controller. | |
Vector | m_Coefficients1 |
Vector | m_Coefficients2 |
Vector | m_Coefficients3 |
Vector | m_Coefficients4 |
Friends | |
void * | QueryWheelSpeed (void *arg) |
Friend function split in a new thread that queries the wheel speed repeatedly. It begins running in the StartSpeedQuery function. Velocity by Position: This function determines the velocity of the wheel by differentiating the position reported by the wheel. The function asks the wheel for its position and then gets the time of day at which the measurement is reported. The code then delays for a small time and asks for the position and gets the time again. The velocity is then calculated by dividing the change in position byt he change in time. The return value is the velocity in rev/sec. | |
void * | RunTorqueController (void *arg) |
Determine reaction wheel speed to provide the desired torque requested from controller. | |
void * | RunTorqueControllerRev (void *arg) |
void * | RunPIDController (void *arg) |
Friend function that is spawned in a new thread in order to run the PID controller. It is called internally by the CommandWheelSpeed() function. PID controller to set momentum wheel angular velocity. Runs in a separate thread created by by the CommandWheelSpeed() function. THis function is a friend to the PhyicalMomentumWheel class. Once created it will run indefinitely until either a new speed is requested or the end of the program is reached. |
|
|
Default Deconstructor.
Definition at line 65 of file PhysicalMomentumWheel.cpp. References Deinitialize(). |
|
Definition at line 163 of file PhysicalMomentumWheel.cpp. References hear(), m_fd, m_Mutex, m_WheelName, and say(). Referenced by Initialize(). |
|
Old-style Command a torque to the wheel.
Definition at line 1014 of file PhysicalMomentumWheel.cpp. References abs, LAST_TOR, m_CurrentWheelTorque, m_fd, m_MaxTorqueStep, m_Mutex, and say(). Referenced by MomentumWheel::SetSystemTorque(). |
|
Command a speed to the wheel. Retrieves wheelspeed from double m_DesiredWheelSpeed.
Definition at line 779 of file PhysicalMomentumWheel.cpp. References GetAmps(), GetVolts(), LAST_VOLT, m_DesiredWheelSpeed, m_WheelName, and TorqueCommand(). Referenced by Initialize(), RunTorqueController(), RunTorqueControllerRev(), and MomentumWheel::SetWheelSpeed(). |
|
Command a torque to the wheel.
Definition at line 374 of file PhysicalMomentumWheel.cpp. References m_DesiredWheelTorque, m_Mutex, m_TorqueControlFlag, and StartTorqueController(). Referenced by MomentumWheel::SetWheelTorque(). |
|
Deinitialize the wheel and its chain.
Reimplemented from Device. Definition at line 122 of file PhysicalMomentumWheel.cpp. References m_fd, m_Mutex, m_WheelName, Stop(), StopSpeedQuery(), and StopTorqueController(). Referenced by ~PhysicalMomentumWheel(). |
|
Set ECHO to off. Do not echo input data back out main channel.
Definition at line 196 of file PhysicalMomentumWheel.cpp. References m_fd, m_Mutex, m_WheelName, and say(). Referenced by Initialize(). |
|
Set ECHO to on. Echo input data back out main channel.
Definition at line 181 of file PhysicalMomentumWheel.cpp. References m_fd, m_Mutex, m_WheelName, and say(). |
|
Enable torque mode for the wheel motor.
Definition at line 211 of file PhysicalMomentumWheel.cpp. References m_fd, m_Mutex, m_WheelName, and say(). Referenced by Initialize(). |
|
Get the amps reported by the motor.
Definition at line 1186 of file PhysicalMomentumWheel.cpp. References hear(), m_fd, m_Mutex, and say(). Referenced by CommandWheelSpeed(), and MomentumWheel::GetAmps(). |
|
Returns a type double of wheel inertia kg-m^2.
Definition at line 1157 of file PhysicalMomentumWheel.cpp. |
|
Get wheel inertia.
Definition at line 1152 of file PhysicalMomentumWheel.cpp. Referenced by MomentumWheel::GetAxialInertia(), and RunTorqueController(). |
|
Returns the physical location of the device with respect to whorl body coordinates.
Definition at line 75 of file Device.cpp. References O_SESSAME::Vector. |
|
Sets the parameter maxTorqueStep to the maximum allowed torque step in N-m.
Definition at line 1175 of file PhysicalMomentumWheel.cpp. |
|
Get the voltage the motor.
Definition at line 1218 of file PhysicalMomentumWheel.cpp. References hear(), m_fd, m_Mutex, and say(). Referenced by CommandWheelSpeed(), and MomentumWheel::GetVolts(). |
|
Reimplemented in MomentumWheel. Definition at line 27 of file Actuator.h. |
|
Get the Wheel file descriptor.
Definition at line 1181 of file PhysicalMomentumWheel.cpp. Referenced by MomentumWheel::GetWheelFD(). |
|
Returns a type string of the wheel name.
Definition at line 1162 of file PhysicalMomentumWheel.cpp. Referenced by MomentumWheel::GetWheelName(). |
|
/brief Returns the most current speed reported by the wheel, a double in rad/sec
Definition at line 1117 of file PhysicalMomentumWheel.cpp. References m_Mutex. Referenced by MomentumWheel::GetWheelSpeed(). |
|
Sets the parameters to the min and max torque limits.
Definition at line 1167 of file PhysicalMomentumWheel.cpp. |
|
Initialize the wheel and its chain.
Reimplemented from Actuator. Definition at line 77 of file PhysicalMomentumWheel.cpp. References ChangeBaud(), CommandWheelSpeed(), EchoOff(), EnableTorqueMode(), init_serial(), m_DaisyChainPort, m_DesiredWheelSpeed, m_fd, m_WheelName, Reset(), and StartSpeedQuery(). Referenced by MomentumWheel::Initialize(). |
|
Returns the current state of m_bActiveState.
Definition at line 59 of file Device.cpp. Referenced by Device::Device(). |
|
Returns a double representing the current torque to the wheel in N-m.
Definition at line 1126 of file PhysicalMomentumWheel.cpp. References hear(), m_CurrentWheelTorque, m_fd, m_Mutex, and say(). Referenced by MomentumWheel::GetWheelTorque(). |
|
Total System Reset for wheel motor.
Definition at line 148 of file PhysicalMomentumWheel.cpp. References m_fd, m_Mutex, m_WheelName, and say(). Referenced by Initialize(), and Stop(). |
|
Set the axial inertia of the wheel.
Definition at line 1096 of file PhysicalMomentumWheel.cpp. References m_AxialInertia. Referenced by MomentumWheel::SetAxialInertia(). |
|
Set the bais speed of the wheel for a momentum wheel.
Definition at line 1087 of file PhysicalMomentumWheel.cpp. References m_BiasFlag, and m_BiasSpeed. Referenced by MomentumWheel::SetBiasSpeed(). |
|
Set a daisy chain number to distinguish between two or more daisy chains.
Definition at line 1076 of file PhysicalMomentumWheel.cpp. References m_DaisyChainNumber. Referenced by MomentumWheel::SetChainNumber(). |
|
Set the port to which the wheel's chain is connected.
Definition at line 1082 of file PhysicalMomentumWheel.cpp. References m_DaisyChainPort. Referenced by MomentumWheel::SetPort(). |
|
Specify the physical location of the device with respect to whorl body coordinates.
Definition at line 67 of file Device.cpp. References Device::m_Location, and O_SESSAME::Vector. |
|
Set the maximum change between the current and desired torque values.
Definition at line 1066 of file PhysicalMomentumWheel.cpp. References m_MaxTorqueStep. |
|
Set the address of the wheel in the daisy chain.
Definition at line 1071 of file PhysicalMomentumWheel.cpp. References m_WheelAddress. Referenced by MomentumWheel::SetWheelAddress(). |
|
Set the momentum wheel string name.
Definition at line 1101 of file PhysicalMomentumWheel.cpp. References m_WheelName. Referenced by MomentumWheel::SetWheelName(). |
|
Set wheel speed.
Definition at line 772 of file PhysicalMomentumWheel.cpp. References m_DesiredWheelSpeed, and m_Mutex. Referenced by RunTorqueController(), and MomentumWheel::SetWheelSpeed(). |
|
Set the momentum wheel speed coefficients. The wheel speed coefficients are determined from the characterization of each wheel motor.
Definition at line 1106 of file PhysicalMomentumWheel.cpp. References _, and O_SESSAME::Vector. Referenced by MomentumWheel::SetWheelSpeedCoefficients(). |
|
Set the maximun and minimum torques to be applied to the wheel.
Definition at line 1059 of file PhysicalMomentumWheel.cpp. References m_MaxWheelTorque, and m_MinWheelTorque. Referenced by MomentumWheel::SetWheelTorqueLimits(). |
|
Start the PID controller in a separate thread.
Definition at line 871 of file PhysicalMomentumWheel.cpp. References m_PIDThreadID, and RunPIDController. Referenced by MomentumWheel::StartPID(). |
|
Start the speed reading routine of the motor in a separate thread Each wheel's speed query needs to be started individually. The performance occurs when the spart calls for each wheel are spread evenly.
Definition at line 244 of file PhysicalMomentumWheel.cpp. References m_SpeedThreadID, and QueryWheelSpeed. Referenced by Initialize(), and MomentumWheel::StartSpeedQuery(). |
|
Start the torque controller. It is called in the CommandWheelTorque function.
Definition at line 389 of file PhysicalMomentumWheel.cpp. References m_TorqueThreadID, and RunTorqueControllerRev. Referenced by CommandWheelTorque(). |
|
Stop the wheel. The function resets the settings for the wheel motor. Not a good method, but works.
Implements Actuator. Definition at line 237 of file PhysicalMomentumWheel.cpp. References m_Mutex, and Reset(). Referenced by Deinitialize(), and MomentumWheel::Stop(). |
|
End the PID Control Thread (will be called by the deconstructor).
Definition at line 1008 of file PhysicalMomentumWheel.cpp. References m_Mutex, and m_PIDThreadID. Referenced by MomentumWheel::StopPID(). |
|
Stop the speed reading routine of the motor. This function does not need to be called a t the end of the program. The thread will be closed automatically when the program ends.
Definition at line 364 of file PhysicalMomentumWheel.cpp. References m_exitConditionSpeed, m_Mutex, and m_SpeedThreadID. Referenced by Deinitialize(), and MomentumWheel::StopSpeedQuery(). |
|
End the Torque Controller Thread.
Definition at line 763 of file PhysicalMomentumWheel.cpp. References m_exitConditionTorque, m_Mutex, and m_TorqueThreadID. Referenced by Deinitialize(). |
|
Enable torque mode for the wheel motor.
Definition at line 226 of file PhysicalMomentumWheel.cpp. References m_fd, m_Mutex, and say(). Referenced by CommandWheelSpeed(), RunPIDController(), and MomentumWheel::TorqueCommand(). |
|
Friend function split in a new thread that queries the wheel speed repeatedly. It begins running in the StartSpeedQuery function. Velocity by Position: This function determines the velocity of the wheel by differentiating the position reported by the wheel. The function asks the wheel for its position and then gets the time of day at which the measurement is reported. The code then delays for a small time and asks for the position and gets the time again. The velocity is then calculated by dividing the change in position byt he change in time. The return value is the velocity in rev/sec.
Definition at line 249 of file PhysicalMomentumWheel.cpp. Referenced by StartSpeedQuery(). |
|
Friend function that is spawned in a new thread in order to run the PID controller. It is called internally by the CommandWheelSpeed() function. PID controller to set momentum wheel angular velocity. Runs in a separate thread created by by the CommandWheelSpeed() function. THis function is a friend to the PhyicalMomentumWheel class. Once created it will run indefinitely until either a new speed is requested or the end of the program is reached. This controller has gain scheduling based on the magnitude of the velocity change desired. It also places limits on large changes in torque and limits the upper value of torque in order to protect the motor and its components.
Definition at line 876 of file PhysicalMomentumWheel.cpp. Referenced by StartPID(). |
|
Determine reaction wheel speed to provide the desired torque requested from controller.
Definition at line 630 of file PhysicalMomentumWheel.cpp. |
|
Friend function split in a new thread that controls the torque applied. It begins running in the StartTorqueController function. Determine reaction wheel speed to provide the desired torque requested from controller.
Definition at line 396 of file PhysicalMomentumWheel.cpp. Referenced by StartTorqueController(). |
|
a constant bool that is equal to true. Used for setting the active state Definition at line 50 of file Device.h. Referenced by Device::Initialize(). |
|
a constant bool that is equal to false. Used for setting the active state. Definition at line 48 of file Device.h. Referenced by Device::Deinitialize(), and Device::Device(). |
|
Member double that holds the last velocity error, used by the PID controller.
Definition at line 381 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), and RunPIDController(). |
|
Member double that holds the last applied wheel torque, used in PID controller.
Definition at line 378 of file PhysicalMomentumWheel.h. Referenced by CommandSystemTorque(), PhysicalMomentumWheel(), and RunPIDController(). |
|
Member double that holds the last angular velocity of the wheel, used in PID controller.
Definition at line 375 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), RunPIDController(), and RunTorqueController(). |
|
Member double that holds the last voltage, used by PID controller.
Definition at line 384 of file PhysicalMomentumWheel.h. Referenced by CommandWheelSpeed(), and PhysicalMomentumWheel(). |
|
Member double that holds the axial Inertia in kg-m^2.
Definition at line 322 of file PhysicalMomentumWheel.h. Referenced by RunTorqueControllerRev(), and SetAxialInertia(). |
|
Member integer Bias speed set flag.
Definition at line 325 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), and SetBiasSpeed(). |
|
Momentum Wheel bias speed.
Definition at line 328 of file PhysicalMomentumWheel.h. Referenced by SetBiasSpeed(). |
|
Definition at line 415 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(). |
|
Definition at line 416 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(). |
|
Definition at line 417 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(). |
|
Definition at line 418 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(). |
|
Member double that holds the current angular wheel speed in rad/sec.
Definition at line 301 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), QueryWheelSpeed(), RunPIDController(), RunTorqueController(), and RunTorqueControllerRev(). |
|
Member double that holds the current ouput torque in N-m.
Definition at line 316 of file PhysicalMomentumWheel.h. Referenced by CommandSystemTorque(), and QueryWheelTorque(). |
|
Member integer that holds which daisy chain the wheel is on.
Definition at line 334 of file PhysicalMomentumWheel.h. Referenced by SetDaisyChainNumber(). |
|
Member string that hold which port the wheel is connected to.
Definition at line 340 of file PhysicalMomentumWheel.h. Referenced by Initialize(), and SetDaisyChainPort(). |
|
Member double that holds the desired angular wheel speed in rad/sec.
Definition at line 307 of file PhysicalMomentumWheel.h. Referenced by CommandWheelSpeed(), Initialize(), RunPIDController(), RunTorqueControllerRev(), and SetWheelSpeed(). |
|
Desired wheel Torque.
Definition at line 319 of file PhysicalMomentumWheel.h. Referenced by CommandWheelTorque(), RunTorqueController(), and RunTorqueControllerRev(). |
|
Definition at line 367 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), QueryWheelSpeed(), and StopSpeedQuery(). |
|
Definition at line 369 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), RunTorqueControllerRev(), and StopTorqueController(). |
|
Member integer that holds the file descriptor for all wheels.
Definition at line 337 of file PhysicalMomentumWheel.h. Referenced by ChangeBaud(), CommandSystemTorque(), Deinitialize(), EchoOff(), EchoOn(), EnableTorqueMode(), GetAmps(), GetVolts(), Initialize(), PhysicalMomentumWheel(), QueryWheelSpeed(), QueryWheelTorque(), Reset(), and TorqueCommand(). |
|
Member double that hold maximum current of the reaction wheel motor.
Definition at line 346 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(). |
|
Member double that holds the largest permissable torque change in N-m.
Definition at line 387 of file PhysicalMomentumWheel.h. Referenced by CommandSystemTorque(), PhysicalMomentumWheel(), RunPIDController(), and SetMaxTorqueStep(). |
|
Member double that holds the maximum output torque in N-m.
Definition at line 310 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), RunPIDController(), and SetWheelTorqueLimits(). |
|
Member double that hold minimum volts of the reaction wheel motor.
Definition at line 343 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(). |
|
Member double that holds the minimum output torque in N-m.
Definition at line 313 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), and SetWheelTorqueLimits(). |
|
Memeber mutex lock variable.
Definition at line 365 of file PhysicalMomentumWheel.h. Referenced by ChangeBaud(), CommandSystemTorque(), CommandWheelTorque(), Deinitialize(), EchoOff(), EchoOn(), EnableTorqueMode(), GetAmps(), GetVolts(), GetWheelSpeed(), PhysicalMomentumWheel(), QueryWheelSpeed(), QueryWheelTorque(), Reset(), RunPIDController(), RunTorqueController(), RunTorqueControllerRev(), SetWheelSpeed(), Stop(), StopPID(), StopSpeedQuery(), StopTorqueController(), and TorqueCommand(). |
|
Member pthread id for splitting off PID control.
Definition at line 356 of file PhysicalMomentumWheel.h. Referenced by StartPID(), and StopPID(). |
|
Member pthread for splitting off speed queries.
Definition at line 359 of file PhysicalMomentumWheel.h. Referenced by StartSpeedQuery(), and StopSpeedQuery(). |
|
Member integer Torque Control flag, used in Torque Controller.
Definition at line 394 of file PhysicalMomentumWheel.h. Referenced by CommandWheelTorque(), and PhysicalMomentumWheel(). |
|
Delta Time to produce Desired Control Torque, used in Torque Controller [s].
Definition at line 397 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), and RunTorqueControllerRev(). |
|
Member integer Torque Control Wheel Speed flag, used in Torque Controller.
Definition at line 409 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), and RunTorqueControllerRev(). |
|
Negative Time Gain.
Definition at line 403 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(). |
|
Steady State Gain [rad/s].
Definition at line 406 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), and RunTorqueControllerRev(). |
|
Proportional Torque Gain (to tune function to supply torques closer to actual N-m).
Definition at line 400 of file PhysicalMomentumWheel.h. Referenced by PhysicalMomentumWheel(), and RunTorqueControllerRev(). |
|
Member pthread for Torque Controller.
Definition at line 362 of file PhysicalMomentumWheel.h. Referenced by StartTorqueController(), and StopTorqueController(). |
|
Memeber double holds the time of velcotiy measurement in seconds from unix epoch.
Definition at line 304 of file PhysicalMomentumWheel.h. Referenced by QueryWheelSpeed(). |
|
Member integer that holds the address of the wheel on its daisy chain.
Definition at line 331 of file PhysicalMomentumWheel.h. Referenced by SetWheelAddress(). |
|
Member double that hold maximum current of the reaction wheel motor.
Definition at line 349 of file PhysicalMomentumWheel.h. Referenced by ChangeBaud(), CommandWheelSpeed(), Deinitialize(), EchoOff(), EchoOn(), EnableTorqueMode(), Initialize(), Reset(), and SetWheelName(). |
|
|