Code generation fail for Parrot Mambo Hardware

조회 수: 2 (최근 30일)
Benjamin Campbell
Benjamin Campbell 2023년 12월 6일
편집: Benjamin Campbell 2023년 12월 6일
I followed this exactly up until the third video where he uses simulink to build the C code and mine fails for some reason and I get the below. I am using MATLAB 2022a.
It seems that it is building the flightController and the stateEstimator, but then the top model build is failing. I have spent a while checking other answers but none of the other solutions have worked. The problem is not the file path length or inclusion of spaces or anything like that. You can open this model by running "asbQuadcopterStart". Here is some more pictures of the successes of the other two, and the error in the top model build:
Then the full output of "Top Model Build" is:
### Starting build procedure for: flightControlSystem "C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc" -c -MMD -MP -MF"flightControlSystem.dep" -MT"flightControlSystem.o" -O3 -DDELOS -DDELOS_EDU -fPIC -Wall -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -D__linux__ -DDELOS -DDELOS_EDU -DEXTMODE_DISABLETESTING -DEXTMODE_STATIC_SIZE=16384 -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DPARROT_LINUX_COMM -DSTACK_SIZE=64 -DRT -DSTOP_TIME=30 -DMAMBO=1 -DMODEL=flightControlSystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/stateEstimator -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/flightController -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/ert -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -o "flightControlSystem.o" "C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem.c" "C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc" -c -MMD -MP -MF"flightControlSystem_data.dep" -MT"flightControlSystem_data.o" -O3 -DDELOS -DDELOS_EDU -fPIC -Wall -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -D__linux__ -DDELOS -DDELOS_EDU -DEXTMODE_DISABLETESTING -DEXTMODE_STATIC_SIZE=16384 -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DPARROT_LINUX_COMM -DSTACK_SIZE=64 -DRT -DSTOP_TIME=30 -DMAMBO=1 -DMODEL=flightControlSystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/stateEstimator -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/flightController -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/ert -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -o "flightControlSystem_data.o" "C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_data.c" "C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc" -c -MMD -MP -MF"rsedu_control.dep" -MT"rsedu_control.o" -O3 -DDELOS -DDELOS_EDU -fPIC -Wall -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -D__linux__ -DDELOS -DDELOS_EDU -DEXTMODE_DISABLETESTING -DEXTMODE_STATIC_SIZE=16384 -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DPARROT_LINUX_COMM -DSTACK_SIZE=64 -DRT -DSTOP_TIME=30 -DMAMBO=1 -DMODEL=flightControlSystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/stateEstimator -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/flightController -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/ert -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -o "rsedu_control.o" "C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/rsedu_control.c" "C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc" -c -MMD -MP -MF"rsedu_of.dep" -MT"rsedu_of.o" -O3 -DDELOS -DDELOS_EDU -fPIC -Wall -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -D__linux__ -DDELOS -DDELOS_EDU -DEXTMODE_DISABLETESTING -DEXTMODE_STATIC_SIZE=16384 -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DPARROT_LINUX_COMM -DSTACK_SIZE=64 -DRT -DSTOP_TIME=30 -DMAMBO=1 -DMODEL=flightControlSystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/stateEstimator -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/flightController -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/ert -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -o "rsedu_of.o" "C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/rsedu_of.c" "C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc" -c -MMD -MP -MF"rsedu_vis.dep" -MT"rsedu_vis.o" -O3 -DDELOS -DDELOS_EDU -fPIC -Wall -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -D__linux__ -DDELOS -DDELOS_EDU -DEXTMODE_DISABLETESTING -DEXTMODE_STATIC_SIZE=16384 -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DPARROT_LINUX_COMM -DSTACK_SIZE=64 -DRT -DSTOP_TIME=30 -DMAMBO=1 -DMODEL=flightControlSystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/stateEstimator -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/flightController -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/ert -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -o "rsedu_vis.o" "C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/rsedu_vis.c" "C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc" -c -MMD -MP -MF"ptimer.dep" -MT"ptimer.o" -O3 -DDELOS -DDELOS_EDU -fPIC -Wall -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -D__linux__ -DDELOS -DDELOS_EDU -DEXTMODE_DISABLETESTING -DEXTMODE_STATIC_SIZE=16384 -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DPARROT_LINUX_COMM -DSTACK_SIZE=64 -DRT -DSTOP_TIME=30 -DMAMBO=1 -DMODEL=flightControlSystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/stateEstimator -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/flightController -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/ert -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -o "ptimer.o" "C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/ptimer.c" In file included from C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem.h:10, from C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/rsedu_control.h:23, from C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/rsedu_control.c:8: C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:20: error: conflicting types for 'HAL_acc_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:71: note: previous declaration of 'HAL_acc_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:25: error: conflicting types for 'HAL_gyro_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:35: note: previous declaration of 'HAL_gyro_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:29: error: conflicting types for 'HAL_fifo_gyro_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:53: note: previous declaration of 'HAL_fifo_gyro_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:34: error: conflicting types for 'HAL_magn_mG_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:88: note: previous declaration of 'HAL_magn_mG_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:38: error: conflicting types for 'HAL_pressure_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:99: note: previous declaration of 'HAL_pressure_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:45: error: conflicting types for 'HAL_echo_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:163: note: previous declaration of 'HAL_echo_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:50: error: conflicting types for 'HAL_list_echo_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:172: note: previous declaration of 'HAL_list_echo_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:57: error: conflicting types for 'HAL_ultrasound_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:194: note: previous declaration of 'HAL_ultrasound_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:61: error: conflicting types for 'HAL_vbat_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:113: note: previous declaration of 'HAL_vbat_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:76: error: conflicting types for 'HAL_acquisition_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:343: note: previous declaration of 'HAL_acquisition_t' was here "C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc" -c -MMD -MP -MF"controlCommand.dep" -MT"controlCommand.o" -O3 -DDELOS -DDELOS_EDU -fPIC -Wall -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -D__linux__ -DDELOS -DDELOS_EDU -DEXTMODE_DISABLETESTING -DEXTMODE_STATIC_SIZE=16384 -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DPARROT_LINUX_COMM -DSTACK_SIZE=64 -DRT -DSTOP_TIME=30 -DMAMBO=1 -DMODEL=flightControlSystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/stateEstimator -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/flightController -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw -In file included from C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem.h:10, from C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/rsedu_control.h:23, from C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/rsedu_vis.c:22: C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:20: error: conflicting types for 'HAL_acc_SI_t' IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/ert -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -o "controlCommand.o" "C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/controlCommand.c" C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/rsedu_control.c: In function 'RSEDU_control': C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:71: note: previous declaration of 'HAL_acc_SI_t' was here C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/rsedu_control.c:578: error: 'CommandBus' has no member named 'live_time_ticks' C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:25: error: conflicting types for 'HAL_gyro_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:35: note: previous declaration of 'HAL_gyro_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:29: error: conflicting types for 'HAL_fifo_gyro_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:53: note: previous declaration of 'HAL_fifo_gyro_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:34: error: conflicting types for 'HAL_magn_mG_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:88: note: previous declaration of 'HAL_magn_mG_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:38: error: conflicting types for 'HAL_pressure_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:99: note: previous declaration of 'HAL_pressure_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:45: error: conflicting types for 'HAL_echo_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:163: note: previous declaration of 'HAL_echo_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:50: error: conflicting types for 'HAL_list_echo_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:172: note: previous declaration of 'HAL_list_echo_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:57: error: conflicting types for 'HAL_ultrasound_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:194: note: previous declaration of 'HAL_ultrasound_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:61: error: conflicting types for 'HAL_vbat_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:113: note: previous declaration of 'HAL_vbat_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:76: error: conflicting types for 'HAL_acquisition_t' "C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc" -c -MMD -MP -MF"mw_extrathreads.dep" -MT"mw_extrathreads.o" -O3 -DDELOS -DDELOS_EDU -fPIC -Wall -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -D__linux__ -DDELOS -DDELOS_EDU -DEXTMODE_DISABLETESTING -DEXTMODE_STATIC_SIZE=16384 -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DPARROT_LINUX_COMM -DSTACK_SIZE=64 -DRT -DSTOP_TIME=30 -DMAMBO=1 -DMODEL=flightControlSystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/stateEstimator -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/flightController -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtwIn file included from C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/controlCommand.h:19, from C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/controlCommand.c:7: C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:20: error: conflicting types for 'HAL_acc_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:343: note: previous declaration of 'HAL_acquisition_t' was here C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:71: note: previous declaration of 'HAL_acc_SI_t' was here -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/ert -IC:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/slprj/ert/_sharedutils -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src/utils -o "mw_extrathreads.o" "C:/ProgramData/MATLAB/SupportPackages/R2022a/toolbox/target/supportpackages/parrot/src/mw_extrathreads.c" C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:25: error: conflicting types for 'HAL_gyro_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:35: note: previous declaration of 'HAL_gyro_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:29: error: conflicting types for 'HAL_fifo_gyro_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:53: note: previous declaration of 'HAL_fifo_gyro_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:34: error: conflicting types for 'HAL_magn_mG_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:88: note: previous declaration of 'HAL_magn_mG_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:38: error: conflicting types for 'HAL_pressure_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:99: note: previous declaration of 'HAL_pressure_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:45: error: conflicting types for 'HAL_echo_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:163: note: previous declaration of 'HAL_echo_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:50: error: conflicting types for 'HAL_list_echo_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:172: note: previous declaration of 'HAL_list_echo_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:57: error: conflicting types for 'HAL_ultrasound_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:194: note: previous declaration of 'HAL_ultrasound_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:61: error: conflicting types for 'HAL_vbat_SI_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:113: note: previous declaration of 'HAL_vbat_SI_t' was here C:/Users/Ben/MATLAB/Projects/examples/asbQuadcopter1/work/flightControlSystem_ert_rtw/flightControlSystem_types.h:76: error: conflicting types for 'HAL_acquisition_t' C:/PROGRA~3/MATLAB/SUPPOR~1/R2022a/toolbox/target/SUPPOR~1/parrot/include/HAL.h:343: note: previous declaration of 'HAL_acquisition_t' was here gmake: *** [rsedu_control.o] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [controlCommand.o] Error 1 gmake: *** [rsedu_vis.o] Error 1 The make command returned an error of 2 ### Build procedure for flightControlSystem aborted due to an error.
  댓글 수: 1
Benjamin Campbell
Benjamin Campbell 2023년 12월 6일
Worth noting that I get the same problems just trying to build the unedited asbQuadcopter model flight control system.

댓글을 달려면 로그인하십시오.

채택된 답변

Benjamin Campbell
Benjamin Campbell 2023년 12월 6일
편집: Benjamin Campbell 2023년 12월 6일
I uninstalled MATLAB 2022a and downloaded and installed MATLAB 2021a and this problem did not occur and it built correctly. But if anyone knows another way that would be great so I can go back to the most up to date MATLAB.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by