Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 27 14:05
    HomeLH commented #45
  • Jul 21 16:11
    mirkix commented #45
  • Jul 21 16:11
    mirkix commented #45
  • Jul 21 02:52
    HomeLH edited #45
  • Jul 21 02:51
    HomeLH opened #45
  • Apr 09 20:21
    mirkix commented #44
  • Apr 09 20:21

    mirkix on master

    Add git pull instructions and c… Merge pull request #44 from Ard… (compare)

  • Apr 09 20:21
    mirkix closed #44
  • Apr 06 16:09
    Ardustorm commented #44
  • Apr 06 15:50
    Ardustorm opened #44
  • Mar 18 04:16

    mirkix on master

    Update ArduPilot (compare)

  • Jul 10 2018 16:36
    jackcarrozzo commented #38
  • Jul 10 2018 16:19
    awright424 commented #38
  • Jul 10 2018 16:17
    jackcarrozzo commented #38
  • Jul 10 2018 16:17
    jackcarrozzo commented #38
  • Jul 10 2018 16:17
    jackcarrozzo commented #38
  • Jul 10 2018 16:17
    jackcarrozzo commented #38
  • Jul 10 2018 16:16
    jackcarrozzo commented #38
  • Jul 10 2018 16:14
    awright424 commented #38
  • Jul 10 2018 16:12
    jackcarrozzo commented #38
Bas de Bruijn
@luminize
image.png
Bas de Bruijn
@luminize
I manually ran the commands in the aphw script and checked after I manually run arducopter
debian@beaglebone:~$ ls /sys/class/gpio/
export  gpio80  gpiochip0  gpiochip32  gpiochip64  gpiochip96  unexport
debian@beaglebone:~$ ls /sys/class/gpio/gpio80
active_low  device  direction  edge  label  power  subsystem  uevent  value
debian@beaglebone:~$ cat /sys/class/gpio/gpio80/direction
out
debian@beaglebone:~$ cat /sys/class/gpio/gpio80/value
1
debian@beaglebone:~$ cat /sys/devices/platform/ocp/ocp:P8_15_pinmux/state
pruecapin_pu
awright424
@awright424
something didnt go right with the pinmux setup i would think
patrickpoirier51
@patrickpoirier51
@luminize I recall walking through DSM back in April, search on this thread with the word DSM
Bas de Bruijn
@luminize
@patrickpoirier51 I will do that
Bas de Bruijn
@luminize
@patrickpoirier51 I'm a bit confused, it seems that there was a problem, but after a fix the 4.19 kernel works? I have followed the setup tutorial to the letter. I'm out of ideas to be honest.
Seth
@silver2row
pruecapin_pu needs to be an input and not an output.
Seth
@silver2row
It seems /bin/echo is not permitted for your gpio80 pinmux, too. This is what I see in your arducopter.service file. Will you share your aphw file?
Did you use chmod on every file that needs to be executed? See here: https://help.ubuntu.com/community/FilePermissions.
Oh. And...sometimes powering the receiver off of a separate power supply works too. These are all just some items to take into consideration.
Bas de Bruijn
@luminize

yes I did. I have just finished a new CD card, exact image, per instructions.

debian@beaglebone:~/ardupilot$ git branch
* Copter-3.6
  master

Arducopter loads, (red light flashes) DSMX reveiver is bound to transmitter, signals visible on scope.
Qgroundcontrol does not complain that there's no receiver found, calibrating the radio fails though.
My service (I removed the $RANGER variable):

● arducopter.service - ArduCopter Service
   Loaded: loaded (/lib/systemd/system/arducopter.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-09-12 12:14:22 UTC; 27min ago
  Process: 797 ExecStartPre=/usr/bin/ardupilot/aphw (code=exited, status=0/SUCCESS)
 Main PID: 805 (arducopter)
    Tasks: 6 (limit: 4915)
   CGroup: /system.slice/arducopter.service
           └─805 /usr/bin/ardupilot/arducopter -C /dev/ttyO1 -A udp:192.168.178.53:14550 -B /dev/ttyO2

Sep 12 12:14:22 beaglebone systemd[1]: Starting ArduCopter Service...
Sep 12 12:14:22 beaglebone systemd[1]: Started ArduCopter Service.

my aphw file

debian@beaglebone:~$ cat /usr/bin/ardupilot/aphw
#!/bin/bash
# aphw
# ArduPilot hardware configuration.

/bin/echo 80 >/sys/class/gpio/export
/bin/echo out >/sys/class/gpio/gpio80/direction
/bin/echo 1 >/sys/class/gpio/gpio80/value
/bin/echo pruecapin_pu >/sys/devices/platform/ocp/ocp:P8_15_pinmux/state

the permissions

debian@beaglebone:~$ ls -l /usr/bin/ardupilot/
total 7412
-rwxr-xr-x 1 root root  890024 Sep 12 11:51 antennatracker
-rwxr-xr-x 1 root root     257 Sep 12 09:36 aphw
-rwxr-xr-x 1 root root 1461016 Sep 12 11:51 arducopter
-rwxr-xr-x 1 root root 1434284 Sep 12 11:51 arducopter-heli
-rwxr-xr-x 1 root root 1416180 Sep 12 11:51 arduplane
-rwxr-xr-x 1 root root 1181896 Sep 12 11:51 ardurover
-rwxr-xr-x 1 root root 1189688 Sep 12 11:51 ardusub
thanks @silver2row @awright424 @patrickpoirier51 for taking the time. I appreciate that.
debian@beaglebone:~$ uname -a
Linux beaglebone 4.19.71-bone-rt-r38 #1stretch PREEMPT RT Sat Sep 7 10:05:07 UTC 2019 armv7l GNU/Linux
can it be a protocol thing? like my dsmx receiver can't talk with Ardupilot?
awright424
@awright424
no i use lemonrx dsmx receivers
i have also used orangerx receivers
patrickpoirier51
@patrickpoirier51
@luminize do you have few minutes, I am available to check with you
Bas de Bruijn
@luminize
sure
patrickpoirier51
@patrickpoirier51
ok first stop the service , we will launch manually
sudo systemctl stop arducopter.service
Bas de Bruijn
@luminize
right
done, and all stopped ok
patrickpoirier51
@patrickpoirier51
and launch it manually
sudo ./arducopter -C udp:192.168.7.1:14550
Does it starts ?
Bas de Bruijn
@luminize
my terminal hangs, one sec
patrickpoirier51
@patrickpoirier51
are you running with putty connected to micro usb @ 192.168.7.2 ?
Bas de Bruijn
@luminize
yes, starts, I'm on linux host, ssh-ing to the wireless
debian@beaglebone:~$ sudo /usr/bin/ardupilot/arducopter -C udp:192.168.178.80:14550
DataFlash_File: buffer size=16384
�    Q}��    Q���    Q� Init GyroMPU: temp reset IMU[0] 8343 0
*�    QC^**

Ready to FLY �    Q���3�EKF2 IMU0 initial yaw alignment complete���    Q_�3�EKF2 IMU0 tilt alignment completeB��      Q��        Q���    
Q�C�
           o�r4T#��    
QH3�      Qv��Q�Q���    Q���    QE��    Q{z�    Q��    Qt�3�PreArm: Throttle below Failsafe�Z�3�PreArm: 3D Accel calibration needed73�PreArm: Compass not calibratedR\�3�PreArm: Compass not calibrated�3�PreArm: RC Roll not configured���3�PreArm: RC Pitch not configured/;�3�PreArm: RC Throttle not configured�&�3�PreArm: RC Yaw not configured�/�    Q���oY�f��H�    QK� Q���    !Q-��    "Q    �    #Q�w�    $Q~�    %Q�y�    &Q���    'Q@��    (Q��)o�������    *Qp��    +Q���    ,Q��    -Q���    .Q��/Q#k�    0Q"1Q�\�    2Q���    3
patrickpoirier51
@patrickpoirier51
ah ok , well.. it is starting :-)
Bas de Bruijn
@luminize
yes, that's one thing at least :)
patrickpoirier51
@patrickpoirier51
So your DSM satellite receiver is already Binded and it is spitting 115kbps data right ?
Bas de Bruijn
@luminize
yes, it is
the gibberish looks to be the mavlink data
patrickpoirier51
@patrickpoirier51
Yes it is, you should be able to connect the gcs on udp port 14550
Bas de Bruijn
@luminize
it's also inverted signal, but I understand that didn't matter for ardupilot
patrickpoirier51
@patrickpoirier51
It is NOT inverted signal == FRSKY is but not DSMX
Actually you could read it with FTDI and RealTerm
Bas de Bruijn
@luminize
ok, I can do both, I can invert if needed. The scope shows the signal is always high, and the data is low
patrickpoirier51
@patrickpoirier51
So it is connected to pin 2 as showned on Mirkix wiki ?
Bas de Bruijn
@luminize
the data signal to the pin2 on the DSM port
Bas de Bruijn
@luminize
?
patrickpoirier51
@patrickpoirier51
sorry the QeP port
Bas de Bruijn
@luminize
yes, equal to the purple wire
patrickpoirier51
@patrickpoirier51
and no rc receiver signal on Mission Planner ?
Bas de Bruijn
@luminize
exactly, I'm on Qgroundcontrol now, I've got mavlink coming in, but will switch to windows to check
patrickpoirier51
@patrickpoirier51
ok
I'll be back in 15 mins
Bas de Bruijn
@luminize
on windows with mission planer it's the same. No response when trying the radio calibration