Table 1-1. Event Properties
| Name | Description | Parent | Scope | Trigger |
|---|---|---|---|---|
| DOWNSHIFT21 | shift_logic | LOCAL | EITHER_EDGE | |
| DOWNSHIFT32 | shift_logic | LOCAL | EITHER_EDGE | |
| DOWNSHIFT43 | shift_logic | LOCAL | EITHER_EDGE | |
| UPSHIFT12 | shift_logic | LOCAL | EITHER_EDGE | |
| UPSHIFT23 | shift_logic | LOCAL | EITHER_EDGE | |
| UPSHIFT34 | shift_logic | LOCAL | EITHER_EDGE |
Table 1-2. Data Properties
| Name | Description | Parent | Scope | Units | Range | Data Type |
|---|---|---|---|---|---|---|
| Tconfirm | sf_car | CONSTANT | double | |||
| Tconfirm | shift_logic | CONSTANT | double | |||
| down_threshold | shift_logic | LOCAL | double | |||
| gear | shift_logic | OUTPUT | int | 1...4 | double | |
| tdn | shift_logic | LOCAL | double | |||
| throttle | shift_logic | INPUT | double | double | ||
| tup | shift_logic | LOCAL | double | |||
| up_threshold | shift_logic | LOCAL | double | |||
| vehicle_speed | shift_logic | INPUT | double | double |
| Charts | shift_logic |
| Created By | Unknown |
| Version | none |
| Data | Tconfirm |
| Machine | sf_car |
| Description | Default S-Function target. |
| Code Command | sfc |
| Code Flags | -sfun-debug-bitsets-silent-nocomments |
| Make Command | mex -v |
| Machine | sf_car |

| Data |
down_threshold |
| Events |
DOWNSHIFT21 |
| States | gear_selection |
| Parent | shift_logic |
| Label | gear_selection/ |

| Parent | gear_selection |
| Label | gear_state |

| Parent | gear_state |
| Label |
fourth/ |
| Parent | gear_state |
| Label |
second/ |
| Parent | gear_state |
| Label |
third/ |
| Parent | gear_state |
| Label |
first/ |
| Parent | gear_state |
| Label | UPSHIFT34 |

| Source | third |
| Dest | fourth |
| Chart | shift_logic |
| Parent | gear_state |
| Label | UPSHIFT23 |

| Source | second |
| Dest | third |
| Chart | shift_logic |
| Parent | gear_state |
| Label | UPSHIFT12 |

| Source | first |
| Dest | second |
| Chart | shift_logic |
| Parent | gear_state |
| Label | ? |
| Dest | first |
| Chart | shift_logic |
| Is Default | 1 |
| Parent | gear_state |
| Label | DOWNSHIFT43 |

| Source | fourth |
| Dest | third |
| Chart | shift_logic |
| Parent | gear_state |
| Label | DOWNSHIFT32 |

| Source | third |
| Dest | second |
| Chart | shift_logic |
| Parent | gear_state |
| Label | DOWNSHIFT21 |

| Source | second |
| Dest | first |
| Chart | shift_logic |
| Parent | gear_selection |
| Label |
selection_state/ |

| Parent | selection_state |
| Label |
upshift_confirm/ |
| Parent | selection_state |
| Label | steady_state |
| Parent | selection_state |
| Label |
downshift_confirm/ |
| Parent | selection_state |
| Label | ? |
| Dest | steady_state |
| Chart | shift_logic |
| Is Default | 1 |
| Parent | selection_state |
| Label | [vehicle_speed > up_threshold] |

| Source | steady_state |
| Dest | upshift_confirm |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [vehicle_speed < down_threshold] |

| Source | steady_state |
| Dest | downshift_confirm |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [vehicle_speed < up_threshold] |

| Source | upshift_confirm |
| Dest | steady_state |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [vehicle_speed > down_threshold] |

| Source | downshift_confirm |
| Dest | steady_state |
| Chart | shift_logic |
| Parent | selection_state |
| Label |
[t - tup >= Tconfirm & ... |

| Source | upshift_confirm |
| Dest | J3 |
| Chart | shift_logic |
| Parent | selection_state |
| Label | ? |
| Source | J1 |
| Dest | steady_state |
| Chart | shift_logic |
| Parent | selection_state |
| Label | ? |
| Source | J2 |
| Dest | steady_state |
| Chart | shift_logic |
| Parent | selection_state |
| Label |
[t - tdn >= Tconfirm & ... |

| Source | downshift_confirm |
| Dest | J4 |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [gear == 3]/UPSHIFT34 |

| Source | J3 |
| Dest | J2 |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [gear ==4]/DOWNSHIFT43 |

| Source | J4 |
| Dest | J1 |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [gear == 2]/UPSHIFT23 |

| Source | J3 |
| Dest | J2 |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [gear == 3]/DOWNSHIFT32 |

| Source | J4 |
| Dest | J1 |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [gear == 2]/DOWNSHIFT21 |

| Source | J4 |
| Dest | J1 |
| Chart | shift_logic |
| Parent | selection_state |
| Label | [gear == 1]/UPSHIFT12 |

| Source | J3 |
| Dest | J2 |
| Chart | shift_logic |