Difference between revisions of "Component: Car Seat (Scenarios)"
From Flowcode Help
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_CarSeatSource_v004.fcfx FC_Comp_Source_CarSeatSource_v004.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_CarSeatSource_v004.fcfx FC_Comp_Source_CarSeatSource_v004.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 67: | Line 67: | ||
[[Car_Seat|Car Seat Scenario]] | [[Car_Seat|Car Seat Scenario]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 253: | Line 257: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 13:09, 7 February 2023
Author | Matrix TSL |
Version | 1.0 |
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.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_CarSeatSource_v004.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_CarSeatSource_v004.fcfx
Detailed description
No detailed description exists yet for this component
Examples
There is a detailed walk through of the scenario detailed at the link below to go with this component.
Macro reference
CurrentSenseMotor1
CurrentSenseMotor2
CurrentSenseMotor3
Encoder1
Encoder1 | |
Returns value is equal to X Axis current value (forward/ backwards movement). | |
- INT | Return |
Encoder2
Encoder2 | |
Returns value is equal to Front Z Axis current value. | |
- INT | Return |
Encoder3
Encoder3 | |
Returns value is equal to Rear Z Axis current value. | |
- INT | Return |
Load
Load | |
Moves the seat back into the last saved position stored in the allocated save slot. | |
- BYTE | Location |
0 = A, 1 = B | |
- VOID | Return |
Motor1
Motor1 | |
Moves the Car Seat Forwards and Backwards | |
- BYTE | Direction |
0 = Stop, 1 = Forward, 2 = Backward | |
- VOID | Return |
Motor2
Motor2 | |
Controls the Movement of the seat going up and down by the front | |
- BYTE | Direction |
0 = Stop, 1 = Up, 2 = Down | |
- VOID | Return |
Motor3
Motor3 | |
Controls the Movement of the seat going up and down by the back | |
- BYTE | Direction |
0 = Stop, 1 = Up, 2 = Down | |
- VOID | Return |
Save
Save | |
Saves the current position of the seat into the allocated save slot. | |
- BYTE | SavePos |
0 = pos A, 1 = pos B | |
- VOID | Return |
Property reference
Properties | |
Show seat base? | |
Controls if the base of the car seat is shown on the simulation panel. |