Closed krishnans2006 closed 2 years ago
Maybe this is helpful: https://stackoverflow.com/questions/61240589/how-to-initialize-a-struct-to-0-in-c
But I'm not sure how to create an AP_Float
.
@khancyr do you have any suggestions for resolving this issue?
I can't seem to create an AP_Float
, and besides that the only other solution I see is to remove the usage of the struct and replace it with a AP_Vector3f
@acxz fixed in https://github.com/ArduPilot/ardupilot/pull/21183
Thanks so much! Tested it and it works!
Bug report
Issue details
Compiling SITL fails, with the below error:
Some additional information: I am on Arch, and all packages (including
gcc
) are completely up-to-date (after asudo pacman -Syu
). The exact configuration was working perfectly for the past few months, until SITL decided to re-compile the files again when runningardupilot/Tools/autotest/sim_vehicle.py --no-mavproxy -L CUSTOM_LOCATION -v ArduPlane --add-param-file ardupilot/Tools/autotest/default_params/custom.parm
Version I am currently on
origin/Plane-4.2
on commit44735215e5bf4dc26b55c1c3b0d361188c2927d1
in order to keep firmware consistent. However, I have tried with the latestorigin/master
and got the same errorPlatform [ ] All [ ] AntennaTracker [ ] Copter [ x ] Plane [ ] Rover [ ] Submarine
Airframe type Plane (Configured with
./waf plane
)Hardware type The board was configured as
./waf configure --board sitl --debug
to use SITL.