diff options
author | Lorenz Meier <lorenz@px4.io> | 2015-02-28 11:18:02 +0100 |
---|---|---|
committer | Lorenz Meier <lorenz@px4.io> | 2015-02-28 11:18:02 +0100 |
commit | 7e20d039e3ca5e7ec79981a3b5c25e68bbf09e5b (patch) | |
tree | 5122f0f485ce2e80d0da036169ca1458f8c4a02c /ROMFS/px4fmu_common | |
parent | e0947c694044317a47e2d124d14c81c6833467e2 (diff) | |
parent | 97d31f667e6fcfe88fb23220b8d1c0ff938a598b (diff) | |
download | px4-firmware-7e20d039e3ca5e7ec79981a3b5c25e68bbf09e5b.tar.gz px4-firmware-7e20d039e3ca5e7ec79981a3b5c25e68bbf09e5b.tar.bz2 px4-firmware-7e20d039e3ca5e7ec79981a3b5c25e68bbf09e5b.zip |
Merge pull request #1848 from mstuettgen/master
modified default pwm values and added comments to the startup scripts
Diffstat (limited to 'ROMFS/px4fmu_common')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/50001_rover | 4 | ||||
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rc.rover_defaults | 24 |
2 files changed, 19 insertions, 9 deletions
diff --git a/ROMFS/px4fmu_common/init.d/50001_rover b/ROMFS/px4fmu_common/init.d/50001_rover index e9df3904b..c2f94705c 100644 --- a/ROMFS/px4fmu_common/init.d/50001_rover +++ b/ROMFS/px4fmu_common/init.d/50001_rover @@ -3,8 +3,8 @@ # Generic rover # +#load some defaults e.g. PWM values sh /etc/init.d/rc.rover_defaults +#choose a mixer, for rover control we need a plain passthrough to the servos set MIXER IO_pass - -set PWM_OUT 1234 diff --git a/ROMFS/px4fmu_common/init.d/rc.rover_defaults b/ROMFS/px4fmu_common/init.d/rc.rover_defaults index fc68472a6..bda3a9a66 100644 --- a/ROMFS/px4fmu_common/init.d/rc.rover_defaults +++ b/ROMFS/px4fmu_common/init.d/rc.rover_defaults @@ -2,12 +2,22 @@ set VEHICLE_TYPE rover -if [ $AUTOCNF == yes ] -then - # param set MC_ROLL_P 7.0 -fi +# i dont think AUTOCNF is needed here, can it be removed? +#if [ $AUTOCNF == yes ] +#then +# # param set MC_ROLL_P 7.0 +#fi + +#PWM Hz set PWM_RATE 50 -set PWM_DISARMED 1100 -set PWM_MIN 1100 -set PWM_MAX 1900 + +#PWW default value for "disarmed" mode +set PWM_DISARMED 1500 + +#PWM range +set PWM_MIN 1200 +set PWM_MAX 1800 + +#enable servo output on pins 3 and 4 (steering and thrust) +set PWM_OUT 34 |