Skip to main content

Cubo Orange

Micro SD card extra files

Orange+ (not Orange) needs a extra condition in the Micro SD files because of the boot sequence

# Wait till the interface is up and running (not needed in the past for pixhawk boards)
while [ ! -e /dev/ttyS1 ]; do
sleep 0.5
done

# Starts the mavlink on telem 2 (ttyS1)
mavlink start -d /dev/ttyS1 -b 2000000

# Required messages for MRS
mavlink stream -d /dev/ttyS1 -s ATTITUDE -r 100
mavlink stream -d /dev/ttyS1 -s ATTITUDE_TARGET -r 100
mavlink stream -d /dev/ttyS1 -s HIGHRES_IMU -r 100
mavlink stream -d /dev/ttyS1 -s RC_CHANNELS -r 10
mavlink stream -d /dev/ttyS1 -s LOCAL_POSITION_NED -r 100
mavlink stream -d /dev/ttyS1 -s ODOMETRY -r 100
mavlink stream -d /dev/ttyS1 -s GLOBAL_POSITION_INT -r 100
mavlink stream -d /dev/ttyS1 -s SYS_STATUS -r 10
mavlink stream -d /dev/ttyS1 -s DISTANCE_SENSOR -r 100
mavlink stream -d /dev/ttyS1 -s HEARTBEAT -r 100
mavlink stream -d /dev/ttyS1 -s UTM_GLOBAL_POSITION -r 1