主要内容

Algorithm Development

R2026b
Use Simulink blocks to connect to and configure peripherals attached to ArduPilot autopilots

Develop algorithms and prepare model for deploying on ArduPilot® Autopilots.

Blocks

expand all

Common Blocks

Current Ang VelocityReads current angular velocity (Since R2026a)
Current AttitudeReads current attitude (Since R2026a)
Current Course blockCurrent CourseRead the current course in degrees from the ArduPilot Attitude Heading Reference System (AHRS) (Since R2026b)
Current PositionReads current position (Since R2026a)
Current VelocityReads current velocity (Since R2026a)

Copter Blocks

Ang Velocity SetpointReads angular velocity setpoint (Since R2026a)
Attitude SetpointReads attitude setpoint (Since R2026a)
Position SetpointReads position setpoint (Since R2026a)
Velocity SetpointReads velocity setpoint (Since R2026a)
Write Torque & ThrustWrites normalized torque and thrust commands to the ArduPilot mixer (Since R2026a)

Plane Blocks

ArduPlane Actuator WriteSet actuator values for motors and servos (Since R2026a)
Current Airspeed blockCurrent AirspeedRead the estimate of true airspeed (TAS) in m/s from the ArduPilot Attitude Heading Reference System (AHRS) (Since R2026b)
Current Incidence and Sideslip blockCurrent Incidence & SideslipRead the estimated incidence and sideslip angles in degrees from the ArduPilot Attitude Heading Reference System (AHRS) (Since R2026b)
RC ReceiveReads radio control (RC) channel data from transmitter supported by ArduPilot (Since R2026a)
I2C Controller Read blockI2C Controller ReadRead data from I2C peripheral device or device register (Since R2026b)
I2C Controller Write BlockI2C Controller WriteWrite data to I2C peripheral device or device register (Since R2026b)
Serial ReceiveSerial ReceiveReceive data fromArduPilot serial (SCI) port (Since R2026b)
Serial Transmit blockSerial TransmitTransmit data to an ArduPilot serial (SCI) port (Since R2026b)
DataFlash Log blockDataFlash LogLog input signals to ArduPilot DataFlash log (.bin) format on the SD card (Since R2026b)
Read ParameterTimestampRead parameter value from ArduPilot (Since R2026b)
Write Parameter blockWrite ParameterWrite parameter value to ArduPilot (Since R2026b)
Read ParameterRead ParameterRead parameter value from ArduPilot (Since R2026b)

Topics

ArduPlane Setup and Configuration

Actuator Selection in Ground Control Station

Configure and verify actuator outputs using GCS.

Featured Examples