Skip to content

First Ardupilot Startup #8

Description

@marcovilla118

Hi Guys,ì I'm here again :)

I tryed to startup for the first time ardupilot but I'm not sure it's working. It looks like is stopping. Here the service file where I changed the config-pin option "-f" to "-c" because the first option is not available anymore. I have also changed the mavlink to the serial port.

The service try to start but I can see it always restart and in the process I can see the sleep process waiting. I tryed also to start ardupilot manually but with no success. Any suggestion for troubleshooting?

root@beaglebone:/home/debian#
root@beaglebone:/home/debian#
root@beaglebone:/home/debian#
root@beaglebone:/home/debian# ls -l
total 17496
-rwxr-xr-x 1 root root 2094304 Nov 3 05:52 antennatracker
-rwxr-xr-x 1 root root 2985212 Nov 3 05:52 arducopter
-rwxr-xr-x 1 root root 2967128 Nov 3 05:52 arducopter-heli
drwxr-xr-x 20 root root 4096 Nov 2 21:33 ardupilot
-rwxr-xr-x 1 root root 2864360 Nov 3 05:52 arduplane
-rwxr-xr-x 1 root root 2564560 Nov 3 05:52 ardurover
-rwxr-xr-x 1 root root 2517688 Nov 3 05:52 ardusub
-rwxr-xr-x 1 root root 1898248 Nov 3 05:52 blimp
-rwxr-xr-x 1 root root 572 Nov 4 22:03 pocketpilot_pin.cfg
root@beaglebone:/home/debian#
root@beaglebone:/home/debian#
root@beaglebone:/home/debian# cat /lib/systemd/system/arducopter.service
[Unit]
Description=ArduCopter Service
After=networking.service
StartLimitIntervalSec=0
Conflicts=arduplane.service ardupilot.service ardurover.service

[Service]
ExecStartPre=/bin/sleep 30
ExecStartPre=/bin/bash -c "/usr/bin/config-pin -c /home/debian/pocketpilot_pin.cfg"
ExecStart=/home/debian/arducopter -A /dev/ttyO0 -B /dev/ttyO2 -C /dev/ttyO4

Restart=on-failure
RestartSec=1

[Install]
WantedBy=multi-user.target
root@beaglebone:/home/debian#
root@beaglebone:/home/debian#
root@beaglebone:/home/debian# sudo systemctl status
● beaglebone
State: running
Jobs: 1 queued
Failed: 0 units
Since: Sat 2000-01-01 00:00:11 UTC; 22 years 10 months ago
CGroup: /
├─user.slice
│ └─user-1000.slice
│ ├─user@1000.service
│ │ └─init.scope
│ │ ├─958 /lib/systemd/systemd --user
│ │ └─960 (sd-pam)
│ └─session-1.scope
│ ├─ 885 sshd: debian [priv]
│ ├─ 987 sshd: debian@pts/0
│ ├─ 988 -bash
│ ├─ 991 sudo su
│ ├─1004 su
│ ├─1005 bash
│ ├─1340 sudo systemctl status
│ ├─1342 systemctl status
│ └─1343 pager
├─init.scope
│ └─1 /sbin/init
└─system.slice
├─systemd-timesyncd.service
│ └─474 /lib/systemd/systemd-timesyncd
├─dbus.service
│ └─521 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
├─ssh.service
│ └─639 /usr/sbin/sshd -D
├─dnsmasq.service
│ └─749 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --loc
├─system-serial\x2dgetty.slice
│ ├─serial-getty@ttyGS0.service
│ │ └─966 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyGS0 vt220
│ └─serial-getty@ttyS0.service
│ └─699 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyS0 vt220
├─system-getty.slice
│ └─getty@tty1.service
│ └─565 /sbin/agetty -o -p -- \u --noclear tty1 linux
├─wpa_supplicant.service
│ └─528 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
├─connman.service
│ └─524 /usr/sbin/connmand -n --nodnsproxy
├─systemd-logind.service
│ └─507 /lib/systemd/systemd-logind
├─cron.service
│ └─516 /usr/sbin/cron -f
├─systemd-udevd.service
│ └─452 /lib/systemd/systemd-udevd
├─rsyslog.service
│ └─509 /usr/sbin/rsyslogd -n -iNONE
├─systemd-journald.service
│ └─439 /lib/systemd/systemd-journald
├─haveged.service
│ └─478 /usr/sbin/haveged --Foreground --verbose=1 -w 1024
└─arducopter.service
└─1341 /bin/sleep 30
root@beaglebone:/home/debian#
root@beaglebone:/home/debian#
root@beaglebone:/home/debian#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions