mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 01:01:37 +08:00
Merge branch 'master' of github.com:PX4/Firmware into unit_tests
This commit is contained in:
@@ -176,7 +176,7 @@ then
|
|||||||
tone_alarm MBABGP
|
tone_alarm MBABGP
|
||||||
if px4io forceupdate 14662 $io_file
|
if px4io forceupdate 14662 $io_file
|
||||||
then
|
then
|
||||||
usleep 200000
|
usleep 500000
|
||||||
if px4io start
|
if px4io start
|
||||||
then
|
then
|
||||||
echo "PX4IO restart OK"
|
echo "PX4IO restart OK"
|
||||||
@@ -186,7 +186,8 @@ then
|
|||||||
echo "PX4IO restart failed"
|
echo "PX4IO restart failed"
|
||||||
echo "PX4IO restart failed" >> $logfile
|
echo "PX4IO restart failed" >> $logfile
|
||||||
tone_alarm MNGGG
|
tone_alarm MNGGG
|
||||||
sh /etc/init.d/rc.error
|
sleep 10
|
||||||
|
reboot
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "PX4IO update failed"
|
echo "PX4IO update failed"
|
||||||
|
|||||||
@@ -479,7 +479,8 @@ FixedwingAttitudeControl::task_main()
|
|||||||
|
|
||||||
/* rate limit vehicle status updates to 5Hz */
|
/* rate limit vehicle status updates to 5Hz */
|
||||||
orb_set_interval(_vcontrol_mode_sub, 200);
|
orb_set_interval(_vcontrol_mode_sub, 200);
|
||||||
orb_set_interval(_att_sub, 100);
|
/* rate limit attitude control to 50 Hz (with some margin, so 17 ms) */
|
||||||
|
orb_set_interval(_att_sub, 17);
|
||||||
|
|
||||||
parameters_update();
|
parameters_update();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user