mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 10:23:34 +08:00
27 lines
368 B
Plaintext
27 lines
368 B
Plaintext
#!nsh
|
|
#
|
|
# @name Crazyflie config
|
|
#
|
|
# @type Quadrotor x
|
|
#
|
|
|
|
sh /etc/init.d/4001_quad_x
|
|
|
|
|
|
if [ $AUTOCNF == yes ]
|
|
then
|
|
param set COM_RC_IN_MODE 2
|
|
param set BAT_N_CELLS 1
|
|
param set BAT_CAPACITY 240
|
|
param set BAT_SOURCE 1
|
|
|
|
param set PWM_DISARMED 0
|
|
param set PWM_MIN 0
|
|
param set PWM_MAX 255
|
|
fi
|
|
|
|
set PWM_MIN none
|
|
set PWM_MAX none
|
|
set PWM_DISARMED none
|
|
set PWM_RATE 500
|