Fishhook
Libraries:
        Vehicle Dynamics Blockset / 
        Vehicle Scenarios / 
        Drive Cycle and Maneuvers
    
Description
The Fishhook block generates parametric steer and countersteer commands upon reaching the target longitudinal velocity. Note that either time or roll rate feedback can trigger the countersteer action, optimizing the severity of the countersteer. This procedure is valuable for assessing rollover propensity and is typically parameterized by conducting a Slowly Increasing Steer test initially to determine the steering amplitude.
Ports
Input
Vehicle longitudinal velocity in the body fixed frame, specified as a scalar, in m/s.
Data Types: double
Vehicle roll rate, specified as a scalar, in rad/s.
Dependencies
To enable this parameter, select Use roll rate to determine initial steer dwell time.
Data Types: double
Output
Driver reference data, returned as a bus containing these block values.
| Signal | Description | Units | 
|---|---|---|
| 
 | Longitudinal reference velocity | m/s | 
| 
 | Lateral reference displacement | m | 
| 
 | Vehicle global longitudinal reference position | m | 
| 
 | Vehicle global lateral reference position | m | 
| 
 | Vehicle global yaw reference position | rad | 
| 
 | Reference path curvature | 1/m | 
| 
 | Reference path curvature gradient | 1/m^2 | 
Data Types: bus
Driver command data, returned as a bus containing these block values.
| Signal | Description | Units | |
|---|---|---|---|
| 
 | 
 | Boolean signal used to override driver model steering commands | one | 
| 
 | Handwheel angle | one | |
| 
 | Boolean signal used to override driver model steering commands
                          with zero when value is  | one | |
| 
 | Boolean signal used to hold the current driver model steering
                          output when  | one | |
| 
 | 
 | Boolean signal used to override driver model acceleration commands | one | 
| 
 | Normalized accelerator input | one | |
| 
 | Boolean signal used to hold the current driver model acceleration
                          output when  | one | |
| 
 | Boolean signal used to override driver model acceleration
                          commands with zero when value is  | one | |
| 
 | 
 | Boolean signal used to override driver model deceleration commands | one | 
| 
 | Normalized decelerator or brake input | one | |
| 
 | Boolean signal used to hold the current driver model deceleration
                          output when  | one | |
| 
 | Boolean signal used to override driver model deceleration
                          commands with zero when value is  | one | |
| 
 | Normalized handbrake or park brake input | one | |
| 
 | 
 | Transmission or drive mode command | one | 
| 
 | Command to specify manual gear or automatic transmission shifter position | one | |
| 
 | Command to upshift | one | |
| 
 | Command to downshift | one | |
| 
 | Normalized clutch pedal command for manual transmissions | one | |
Note
By default, the TransCmd bus is not actively used. Use a
                    Bus Assignment block to override the
                    TransCmd bus to customize and extend the scenario.

Data Types: bus
Parameters
To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.
Select this parameter to use the roll rate to determine the initial steer dwell time.
Programmatic Use
To set the block parameter value programmatically, use
			the set_param function.
To get the block parameter value
			programmatically, use the get_param function.
| Parameter: | pFdbk | 
| Values: | off(default) |on | 
| Data Types: | character vector | 
Dwell period the initial steer amplitude is held, specified as a positive scalar, in s.
Programmatic Use
To set the block parameter value programmatically, use
			the set_param function.
To get the block parameter value
			programmatically, use the get_param function.
| Parameter: | tDwellSteer | 
| Values: | 0.5(default) | positive scalar | 
| Data Types: | double | 
Dwell period for which the countersteer amplitude is held.
Programmatic Use
To set the block parameter value programmatically, use
			the set_param function.
To get the block parameter value
			programmatically, use the get_param function.
| Parameter: | tDwellCntrSteer | 
| Values: | 3(default) | positive scalar | 
| Data Types: | double | 
Time to return the countersteer amplitude to zero steer, in s.
Programmatic Use
To set the block parameter value programmatically, use
			the set_param function.
To get the block parameter value
			programmatically, use the get_param function.
| Parameter: | tZero | 
| Values: | 2(default) | positive scalar | 
| Data Types: | double | 
Roll rate tolerance around zero from which to initiate the countersteer, in deg/s.
Dependencies
To enable this parameter, select Use roll rate to determine initial steer dwell time.
Programmatic Use
To set the block parameter value programmatically, use
			the set_param function.
To get the block parameter value
			programmatically, use the get_param function.
| Parameter: | pZero | 
| Values: | 1.5(default) | positive scalar | 
| Data Types: | double | 
Set the initial steer direction as Right or
              Left.
Programmatic Use
To set the block parameter value programmatically, use
			the set_param function.
To get the block parameter value
			programmatically, use the get_param function.
| Parameter: | steerDir | 
| Values: | Right(default) |Left | 
| Data Types: | character vector | 
Extended Capabilities
C/C++ Code Generation
 Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2024b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
