aboutsummaryrefslogblamecommitdiff
path: root/ROMFS/scripts/rc.PX4IO
blob: 3a5ccbc5c69f19965b7c5cbe8bc9a72bca5c9274 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
     
 
          

 
                                 



          









                            




                           




                         
                                                                        
 
                                    
           



                      
               



                              
                            

 
                                            
 

                           

 
                   
 
          


                                                     
                                 
 
                          
    
#!nsh

set USB no

#
# Start the object request broker
#
uorb start

#
# Init the EEPROM
#
echo "[init] eeprom"
eeprom start
if [ -f /eeprom/parameters ]
then
	param load
fi

#
# Enable / connect to PX4IO
#
px4io start

#
# Start the sensors.
#
sh /etc/init.d/rc.sensors

#
# Start MAVLink on UART1 (dev/ttyS0) at 57600 baud (CLI is now unusable)
#
mavlink start -d /dev/ttyS0 -b 57600
usleep 5000

#
# Start the commander.
#
commander start

#
# Start the attitude estimator
#
attitude_estimator_ekf start

#
# Start the attitude and position controller
#
fixedwing_att_control start
fixedwing_pos_control start

#
# Start GPS capture
#
#gps start

#
# startup is done; we don't want the shell because we
# use the same UART for telemetry
#
echo "[init] startup done"
exit