Hello Again,
This is what I do to build the arducopter binary before loading it to the BBBlue.
git clone https://github.com/silver2row/ardupilot
cd ardupilot
git checkout Copter-4.2
git submodule update --init --recursive
Or…after git submodule update --init --recursuve
, I perform these steps to directly load the building of the files to the BBBlue.
# This command is done in the /ardupilot/ directory.
python3 waf configure --board=blue --rsync-dest debian@192.168.7.2:/home/debian
# This command is done in the /ardupilot/build/blue/ directory.
python3 ../../waf --target bin/arducopter --upload
I think this is how it is supposed to be done, i.e. after installing all the required building tools.
If you see what steps I am taking that may be incorrect, please let me know. I have been working on this project off and on for about three to four years and I have come up empty so far.
Seth
P.S. Oh! My .service file is like this idea:
[Unit]
Description=ArduCopter Service
After=networking.service
StartLimitIntervalSec=0
Conflicts=arduplane.service ardurover.service antennatracker.service
[Service]
EnvironmentFile=/home/debian/more/bin/ardupilot
# ExecStartPre=/usr/bin/ardupilot/aphw
ExecStart=/home/debian/more/bin/arducopter $TELEM1 $TELEM2 $GPS
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
and…the file I am using for making the build known to the service file for working on boot is this idea:
TELEM1="-C /dev/ttyS1"
TELEM2="-A udp:192.400.2.556:14550"
GPS="-B /dev/ttyS2"
This .dtbo is not to be used, AM335X-PRU-UIO-00A0.dtbo, I think. I think the .dtb in /boot/uEnv.txt is already done and completed. So, one might not even need to call the .dtb for am335x-boneblue.dtb in /boot/uEnv.txt.
uname_r=5.10.106-ti-rt-r41
#uuid=
dtb=am335x-boneblue.dtb # Here is where I was using the .dtb at first.
###U-Boot Overlays###
###Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
enable_uboot_overlays=1
###
###Overide capes with eeprom
uboot_overlay_addr0=AM335X-PRU-UIO-00A0.dtbo # This probably does not need to be in the file either.
#uboot_overlay_addr1=<file1>.dtbo
and…Cape_Universal commented out like so:
#enable_uboot_cape_universal=1
# I am not sure if this file needs a comment or not.
If you are an avid ArduPilot, esp. around ArduCopter, user and have notes, please describe to me what exactly I am doing incorrectly…