Current Velocity
R2026bLibraries:
UAV Toolbox Support Package for ArduPilot Autopilots /
Controller Interface Blocks /
Common Blocks
Description
Add-On Required: This feature requires the UAV Toolbox Support Package for ArduPilot Autopilots add-on.
The Current Velocity block outputs the vehicle's current velocity (in m/s) in the NED (North-East-Down) frame, which is a geographic coordinate system used in navigation.
North (N): Positive direction points toward the North (geographical north).
East (E): Positive direction points toward the East (perpendicular to North, in the horizontal plane).
Down (D): Positive direction points downward, toward the Earth's center (vertical component).
This block supports both ArduCopter and ArduPlane vehicle types.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"ardupilotCommonlib/Current Velocity"
Example: add_block("ardupilotCommonlib/Current Velocity","myModel/myBlock",MakeNameUnique="on")
