주요 콘텐츠

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

알고리즘을 개발하여 PX4 Autopilot에 배포하기

R2026a
알고리즘 개발 및 PX4 Autopilot에 배포할 모델 준비

알고리즘을 개발하고 PX4 Autopilot에 배포할 모델을 준비합니다. 다음 항목에서는 모델 구성 파라미터, COM 포트 설정, Simulink®에서 PX4 Autopilot을 배포하는 방법에 대한 추가 정보를 제공합니다.

블록

모두 확장

I2C Controller Read blockI2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller Write blockI2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
PX4 Analog Input blockPX4 Analog InputMeasure analog voltage applied to an ADC channel
CAN Receive blockPX4 CAN ReceiveReceive message from CAN network (R2022b 이후)
CAN Transmit blockPX4 CAN Transmit Transmit message to CAN network (R2022b 이후)
Serial Receive blockSerial ReceiveRead data from UART or USART port on PX4 flight controller
Serial Transmit blockSerial TransmitSend serial data to UART or USART port
Accelerometer blockAccelerometerRead sensor_accel uORB topic and obtain three dimensional linear acceleration
Battery blockBatteryRead battery_status uORB topic and obtain details about the battery's state
GPS blockGPSRead vehicle_gps_position uORB topic and obtain GPS coordinates
Gyroscope blockGyroscopeRead sensor_gyro uORB topic and obtain three dimensional rate of rotation
Magnetometer blockMagnetometerRead sensor_mag uORB topic and obtain three dimensional magnetic field
Radio Control Transmitter blockRadio Control TransmitterRead input_rc uORB topic to obtain data from Radio Control Transmitter
Vehicle Attitude blockVehicle AttitudeRead vehicle_odometry uORB topic and obtain attitude measurements
PX4 uORB Message blockPX4 uORB MessageCreate a blank message using specified uORB topic
PX4 uORB Read blockPX4 uORB ReadRead uORB data for the specified uORB topic
PX4 uORB Write blockPX4 uORB WriteWrite uORB data for the specified uORB topic
MAVLink Bridge SourceMAVLink Bridge SourceRead MAVLink data from the Pixhawk board (R2022a 이후)
MAVLink Bridge SinkMAVLink Bridge SinkWrite MAVLink data to the Pixhawk board (R2022a 이후)
PX4 Read Position SetpointRead the position setpoints published by the PX4 Navigator module in the uORB topic position_setpoint_triplet
PX4 TimestampPX4 TimestampOutput absolute timestamp from the PX4 Autopilot to a Simulink model (R2023b 이후)
PX4 ULogPX4 ULogLog Simulink signals to an SD card in ULog format (R2023b 이후)
PX4 Write Parameter Simulink blockPX4 Write ParameterWrite PX4 system parameters (R2025a 이후)
Read Parameter blockRead ParameterRead PX4 system parameters

함수

getMATFilesFromPixhawkRetrieve MAT files from SD card inserted on Pixhawk hardware board
px4MATFilestitcherCombine multiple MAT-files retrieved from SD card into a single MAT-file
createPX4uORBMessageCreate custom uORB topic for logging in a Simulink model (R2023b 이후)
createCustomPX4ParameterCreate custom PX4 parameter for writing to the PX4 system parameter (R2025a 이후)

도움말 항목

Simulink 모델 설정하기

PX4 Autopilot 주변기기 정보

PX4 Autopilot에서 MAVLink 통신 사용

추가 정보

문제 해결

Troubleshooting Deploy to Hardware Issues

Solve the problems when you try to deploy the Simulink model to Generic Board flight controllers.

Resolve Firmware Build Failure Due to Flash Memory Overflow

Troubleshoot flash memory overflow errors when building PX4 firmware with the default board build target file.

Troubleshooting Running Out of File Descriptor Issues

Solve the running out of file descriptor issues.

Troubleshooting USB Issues with Cube Orange on Windows

Solve the USB issues with Cube Orange.

추천 예제