mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 06:03:02 +08:00
Update bebop configuration and use parameters
This commit is contained in:
committed by
Lorenz Meier
parent
cc0d28e59b
commit
83ec092b46
@@ -31,6 +31,7 @@ echo "Connection successfully established"
|
|||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
adb shell mount -o remount,rw /
|
adb shell mount -o remount,rw /
|
||||||
|
adb shell touch /home/root/parameters
|
||||||
|
|
||||||
../Tools/adb_upload.sh $@
|
../Tools/adb_upload.sh $@
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
uorb start
|
uorb start
|
||||||
|
param select /home/root/parameters
|
||||||
|
param load
|
||||||
param set SYS_AUTOSTART 4001
|
param set SYS_AUTOSTART 4001
|
||||||
|
param set MAV_BROADCAST 1
|
||||||
|
df_ms5607_wrapper start
|
||||||
sleep 1
|
sleep 1
|
||||||
param set MAV_TYPE 2
|
|
||||||
sensors start
|
|
||||||
commander start
|
|
||||||
ekf2 start
|
|
||||||
land_detector start multicopter
|
|
||||||
mc_pos_control start
|
|
||||||
mc_att_control start
|
|
||||||
mavlink start -u 14556 -r 1000000
|
mavlink start -u 14556 -r 1000000
|
||||||
sleep 1
|
sleep 1
|
||||||
mavlink stream -u 14556 -s HIGHRES_IMU -r 50
|
|
||||||
mavlink stream -u 14556 -s ATTITUDE -r 50
|
mavlink stream -u 14556 -s ATTITUDE -r 50
|
||||||
|
mavlink stream -u 14556 -s ALTITUDE -r 1
|
||||||
mavlink boot_complete
|
mavlink boot_complete
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ __END_DECLS
|
|||||||
#define PX4_ROOTFSDIR
|
#define PX4_ROOTFSDIR
|
||||||
#elif defined(__PX4_POSIX_EAGLE)
|
#elif defined(__PX4_POSIX_EAGLE)
|
||||||
#define PX4_ROOTFSDIR "/home/linaro"
|
#define PX4_ROOTFSDIR "/home/linaro"
|
||||||
|
#elif defined(__PX4_POSIX_BEBOP)
|
||||||
|
#define PX4_ROOTFSDIR "/home/root"
|
||||||
#else
|
#else
|
||||||
#define PX4_ROOTFSDIR "rootfs"
|
#define PX4_ROOTFSDIR "rootfs"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user