Skip to content

Commit

Permalink
Merge pull request #1 from LorenzMeier/master
Browse files Browse the repository at this point in the history
Update for master
  • Loading branch information
thomasgubler committed Jan 1, 2014
2 parents 31f808d + 5b302fe commit 70153ac
Show file tree
Hide file tree
Showing 25 changed files with 275 additions and 367 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ fi
#
param set MAV_TYPE 2

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -74,8 +72,3 @@ pwm max -c 1234 -p 1900
# Start common for all multirotors apps
#
sh /etc/init.d/rc.multirotor

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ fi
#
param set MAV_TYPE 2

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -73,8 +71,3 @@ pwm min -c 1234 -p 1050
# Start common for all multirotors apps
#
sh /etc/init.d/rc.multirotor

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ fi
#
param set MAV_TYPE 1

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -80,8 +78,3 @@ fi
# Start common fixedwing apps
#
sh /etc/init.d/rc.fixedwing

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ fi
#
param set MAV_TYPE 1

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -80,8 +78,3 @@ fi
# Start common fixedwing apps
#
sh /etc/init.d/rc.fixedwing

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ fi
#
param set MAV_TYPE 1

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -82,8 +80,3 @@ fi
# Start common fixedwing apps
#
sh /etc/init.d/rc.fixedwing

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ fi
#
param set MAV_TYPE 1

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -58,8 +56,3 @@ fi
# Start common fixedwing apps
#
sh /etc/init.d/rc.fixedwing

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ fi
#
param set MAV_TYPE 1

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -85,8 +83,3 @@ fi
# Start common fixedwing apps
#
sh /etc/init.d/rc.fixedwing

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ fi
#
param set MAV_TYPE 1

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -58,8 +56,3 @@ fi
# Start common fixedwing apps
#
sh /etc/init.d/rc.fixedwing

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ fi
#
param set MAV_TYPE 1

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -84,8 +82,3 @@ fi
# Start common fixedwing apps
#
sh /etc/init.d/rc.fixedwing

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ fi
#
param set MAV_TYPE 1

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -84,8 +82,3 @@ fi
# Start common fixedwing apps
#
sh /etc/init.d/rc.fixedwing

if [ $EXIT_ON_END == yes ]
then
exit
fi
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ ardrone_interface start -d /dev/ttyS1
#
sh /etc/init.d/rc.sensors

#
# Start the commander.
#
commander start

#
# Start the attitude estimator
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ then

param save
fi

#
# Force some key parameters to sane values
# MAV_TYPE 2 = quadrotor
#
param set MAV_TYPE 2

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
Expand All @@ -69,29 +61,9 @@ else
set EXIT_ON_END yes
fi

#
# Load mixer
#
mixer load /dev/pwm_output /etc/mixers/FMU_quad_x.mix

#
# Set PWM output frequency
#
pwm rate -c 1234 -r 400

#
# Set disarmed, min and max PWM signals (for DJI ESCs)
#
pwm disarmed -c 1234 -p 900
pwm min -c 1234 -p 1200
pwm max -c 1234 -p 1800
sh /etc/init.d/rc.mc_interface

#
# Start common for all multirotors apps
#
sh /etc/init.d/rc.multirotor

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ fi
#
param set MAV_TYPE 2

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand All @@ -43,8 +41,6 @@ then
mavlink start
usleep 5000

commander start

sh /etc/init.d/rc.io
else
# Start MAVLink (on UART1 / ttyS0)
Expand Down Expand Up @@ -76,8 +72,3 @@ pwm max -c 1234 -p 1800
# Start common multirotor apps
#
sh /etc/init.d/rc.multirotor

if [ $EXIT_ON_END == yes ]
then
exit
fi
5 changes: 0 additions & 5 deletions ROMFS/px4fmu_common/init.d/40_io_segway
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ usleep 5000
# Start and configure PX4IO interface
#
sh /etc/init.d/rc.io

#
# Start the commander (depends on orb, mavlink)
#
commander start

#
# Start the sensors (depends on orb, px4io)
Expand Down
7 changes: 0 additions & 7 deletions ROMFS/px4fmu_common/init.d/666_fmu_q_x550
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ fi
#
param set MAV_TYPE 2

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand Down Expand Up @@ -76,8 +74,3 @@ pwm max -c 1234 -p 1900
# Start common for all multirotors apps
#
sh /etc/init.d/rc.multirotor

if [ $EXIT_ON_END == yes ]
then
exit
fi
9 changes: 0 additions & 9 deletions ROMFS/px4fmu_common/init.d/800_sdlogger
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ then
param save
fi

set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
#
Expand All @@ -24,8 +22,6 @@ then
mavlink start
usleep 5000

commander start

sh /etc/init.d/rc.io
# Set PWM values for DJI ESCs
else
Expand Down Expand Up @@ -53,8 +49,3 @@ then
sdlog2 start -r 200 -e -b 16
fi
fi

if [ $EXIT_ON_END == yes ]
then
exit
fi
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ param set MAV_TYPE 13
set EXIT_ON_END no

#
# Start and configure PX4IO or FMU interface
# Start and configure PX4IO interface
#
if px4io detect
then
Expand All @@ -62,18 +62,14 @@ then

sh /etc/init.d/rc.io
else
# Start MAVLink (on UART1 / ttyS0)
mavlink start -d /dev/ttyS0
usleep 5000
fmu mode_pwm
param set BAT_V_SCALING 0.004593
set EXIT_ON_END yes
# This is not possible on a hexa
tone_alarm error
fi

#
# Load mixer
#
mixer load /dev/pwm_output /etc/mixers/FMU_hex_x.mix
mixer load /dev/pwm_output $MIXER

#
# Set PWM output frequency to 400 Hz
Expand Down
Loading

0 comments on commit 70153ac

Please # to comment.