uCANca
Home
Flow types
Targets
Projects
Functions
Flows
Sub systems
State machines
Conversion targets
Datum conversions
Datum datum conversions
Units
Login
Signup
Function sub system ActDrive
Implementacion
Position
1
Function
Actuator Drive
Sub system
Driving
State machines
ActEnabler
(Not Available)There are 3 State machine states.
ActRectifier
(Not Available)There are 4 State machine states.
ActDriving
(Not Available)There are 4 State machine states.
No records to display
State machine conditions
enabled
ActDrive
disabled
ActDrive
noActionRequested
ActDrive
positiveActionRequested
ActDrive
negativeActionRequested
ActDrive
quietRequested
ActDrive
fwRequested
ActDrive
bwRequested
ActDrive
directionRequestChanged
ActDrive
stabTimeExpiredToMove
ActDrive
dissipTimeExpired
ActDrive
stabTimeExpiredToStop
ActDrive
No records to display
State machine actions
setActuationModule
ActDrive
The actuation output must equal the module of the actuation request.
Code
if (actAction>=0){
rectifiedActAction=(t_pwm)actAction;
} else {
rectifiedActAction=(t_pwm)(-actAction);
}
setActuationQuiet
ActDrive
Sets the direction of the actuators to not move.
Code
rectifiedActAction=(t_pwm)0;
actDirection=CFG_ACT_DIRECTION_QUIET;
setActuationFw
ActDrive
Sets the direction of the actuators to move in Fw position.
Code
actDirection=CFG_ACT_DIRECTION_FW;
setActuationBw
ActDrive
Sets the direction of the actuators to move in Bw position.
Code
actDirection=CFG_ACT_DIRECTION_BW;
execActDriving
ActDrive
This action is used to execute the submachine ActDriving.
Code
ActDriving();
execActRectifier
ActDrive
Executes the rectifier FSM
Code
ActRectifier();
applyDirection
ActDrive
Sets the actuation direction to equal the ActDirection.
Code
appliedActDirection=actDirection;
applyActuation
ActDrive
Applies the rectifiedActAction to the PWM channel.
Code
synthesize_pwmActAction(rectifiedActAction);
stopActuation
ActDrive
Stops the actuation by setting a duty of 0 in the PWM channel.
Code
synthesize_pwmActAction((t_pwm)0);
resetActDriverTimer
ActDrive
Resets the timer of the Actuator Driver.
Code
actDrvTimer=0L;
incrementActDriverTimer
ActDrive
Increments the actuator driver timer
Code
actDrvTimer++;
No records to display