Difference between revisions of "Component: Car Seat (Scenarios)"
From Flowcode Help
Jump to navigationJump to searchLine 67: | Line 67: | ||
[[Car_Seat|Car Seat Scenario]] | [[Car_Seat|Car Seat Scenario]] | ||
+ | |||
+ | |||
Line 72: | Line 74: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===Save=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 90: | Line 93: | ||
+ | ===Load=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 108: | Line 112: | ||
+ | ===Encoder3=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 121: | Line 126: | ||
+ | ===Encoder2=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 134: | Line 140: | ||
+ | ===Encoder1=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 147: | Line 154: | ||
+ | ===CurrentSenseMotor3=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 160: | Line 168: | ||
+ | ===Motor3=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 178: | Line 187: | ||
+ | ===CurrentSenseMotor2=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 191: | Line 201: | ||
+ | ===Motor2=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 209: | Line 220: | ||
+ | ===CurrentSenseMotor1=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 222: | Line 234: | ||
+ | ===Motor1=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:48, 3 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
Save
![]() |
Save |
Saves the current position of the seat into the allocated save slot. | |
![]() |
SavePos |
0 = pos A, 1 = pos B | |
![]() |
Return |
Load
![]() |
Load |
Moves the seat back into the last saved position stored in the allocated save slot. | |
![]() |
Location |
0 = A, 1 = B | |
![]() |
Return |
Encoder3
![]() |
Encoder3 |
Returns value is equal to Rear Z Axis current value. | |
![]() |
Return |
Encoder2
![]() |
Encoder2 |
Returns value is equal to Front Z Axis current value. | |
![]() |
Return |
Encoder1
![]() |
Encoder1 |
Returns value is equal to X Axis current value (forward/ backwards movement). | |
![]() |
Return |
CurrentSenseMotor3
Motor3
![]() |
Motor3 |
Controls the Movement of the seat going up and down by the back | |
![]() |
Direction |
0 = Stop, 1 = Up, 2 = Down | |
![]() |
Return |
CurrentSenseMotor2
Motor2
![]() |
Motor2 |
Controls the Movement of the seat going up and down by the front | |
![]() |
Direction |
0 = Stop, 1 = Up, 2 = Down | |
![]() |
Return |
CurrentSenseMotor1
Motor1
![]() |
Motor1 |
Moves the Car Seat Forwards and Backwards | |
![]() |
Direction |
0 = Stop, 1 = Forward, 2 = Backward | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Show seat base? |
Controls if the base of the car seat is shown on the simulation panel. |