Difference between revisions of "Component: Car Seat (Scenarios)"
(XML import - Pre 8.0 release) |
|||
Line 24: | Line 24: | ||
[[Car_Seat|Car Seat Scenario]] | [[Car_Seat|Car Seat Scenario]] | ||
− | |||
==Downloadable macro reference== | ==Downloadable macro reference== |
Revision as of 14:50, 22 May 2018
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | Scenarios |
Contents
Car Seat component
An electric car seat chassis with a series of motors and sensors. Students should work through exercises to learn the principles of electric car seats including how to save and load memory positions.
Examples
There is a detailed walk through of the scenario detailed at the link below to go with this component.
Downloadable macro reference
This component does not contain any downloadable macros
Simulation macro reference
Save
No additional information
Parameters
- BYTE SavePos
- 0 = pos A, 1 = pos B
Return value
- This call does not return a value
Load
No additional information
Parameters
- BYTE Location
- 0 = A, 1 = B
Return value
- This call does not return a value
Encoder3
Returns value is equal to Rear Z Axis current value.
Parameters
- This macro has no parameters
Return value
Encoder2
Returns value is equal to Front Z Axis current value.
Parameters
- This macro has no parameters
Return value
Encoder1
Returns value is equal to X Axis current value (forward/ backwards movement).
Parameters
- This macro has no parameters
Return value
CurrentSenseMotor3
This macro is used to sense the current draw from DC motor 3. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A.
Parameters
- This macro has no parameters
Return value
CurrentSenseMotor2
This macro is used to sense the current draw from DC motor 2. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A.
Parameters
- This macro has no parameters
Return value
Motor3
Controls the Movement of the seat going up and down by the back
Parameters
- BYTE Direction
- 0 = Stop, 1 = Up, 2 = Down
Return value
- This call does not return a value
CurrentSenseMotor1
This macro is used to sense the current draw from DC motor 1. When it is not being used, it will draw no current. In normal operating conditions it will draw 3A, and under stall conditions (when the motor hits the end stops) it will draw 20A.
Parameters
- This macro has no parameters
Return value
Motor2
Controls the Movement of the seat going up and down by the front
Parameters
- BYTE Direction
- 0 = Stop, 1 = Up, 2 = Down
Return value
- This call does not return a value
Motor1
Moves the Car Seat Forwards and Backwards
Parameters
- BYTE Direction
- 0 = Stop, 1 = Forward, 2 = Backward
Return value
- This call does not return a value
Property reference
Show seat base?
This property is of type Fixed list of ints and can be referenced with the variable name Show_Hide.
No additional information