mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 05:37:34 +08:00
Initial build for Crazyflie 2.0
Working crazyflie firmware build * Console on USART3 * Could not disable building PX4IO firmware, currently commented out Don't build PX4IO firmware if the board doesn't ask for it Added crazyflie motor driver Fixed wrong register CLK_SEL is in PWR_MGMT_1 Initial I2C/SPI MPU9250 device * Tested with I2C * Need to add error checking * Intermittent crash on stop call Working ak8963 mag driver Functional lps25h driver. Work in progress. Works well enough to probe and allow sensors task to start. Added serial port test module HACK! Get sensors module working Set crazyflie PWM range Extend baudrate for Crazyflie's NRF radio Added dummy tone alarm to allow for init Added autostart script for Crazyflie
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
#!nsh
|
||||
#
|
||||
# @name Crazyflie config
|
||||
#
|
||||
# @type Quadrotor x
|
||||
#
|
||||
# @maintainer Tim Dyer <dyer.ti@gmail.com>
|
||||
#
|
||||
|
||||
# uorb start
|
||||
|
||||
# Params
|
||||
|
||||
# System status LEDs
|
||||
|
||||
# waypoint storage
|
||||
|
||||
# Sensors
|
||||
mpu9250 -R 12 start
|
||||
ak8963 start
|
||||
lps25h start
|
||||
sensors start
|
||||
|
||||
commander start
|
||||
|
||||
# Output mode
|
||||
crazyflie start
|
||||
|
||||
# MAVLINK
|
||||
# mavlink start -r 1200 -d /dev/ttyS***
|
||||
|
||||
# MAVTYPE
|
||||
param set MAV_TYPE 2
|
||||
|
||||
exit 1
|
||||
|
||||
set OUTPUT_DEV /dev/pwm_output0
|
||||
set MIXER_FILE /etc/mixers/quad_x.main.mix
|
||||
if mixer load $OUTPUT_DEV $MIXER_FILE
|
||||
then
|
||||
echo "[i] Mixer: $MIXER_FILE on $OUTPUT_DEV"
|
||||
else
|
||||
echo "[i] Error loading mixer: $MIXER_FILE"
|
||||
echo "ERROR: Could not load mixer: $MIXER_FILE" >> $LOG_FILE
|
||||
tone_alarm $TUNE_ERR
|
||||
fi
|
||||
|
||||
sh /etc/init.d/rc.mc_apps
|
||||
|
||||
# Navigator
|
||||
navigator start
|
||||
|
||||
# Boot complete
|
||||
mavlink boot_complete
|
||||
Reference in New Issue
Block a user