Skip to content

Commit

Permalink
start_px4_sitl.sh: print log path
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Apr 26, 2019
1 parent e3442cb commit f31fb29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion start_px4_sitl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ else
timestamp=`date +%Y-%m-%dT%H:%M:%S%z`
fi

logfile_path=$log_dir/px4_sitl-$timestamp.log

echo "PX4 SITL log: '$logfile_path'"

# Before changing dir, save where we start from.
pushd .

Expand All @@ -63,7 +67,7 @@ $px4_firmware_dir/Tools/sitl_run.sh \
gazebo \
$sitl_model \
$px4_firmware_dir \
$px4_firmware_dir/build/px4_sitl_default 2>1 > $log_dir/px4_sitl-$timestamp.log &
$px4_firmware_dir/build/px4_sitl_default 2>1 > $logfile_path &

# Go back to dir where we started
popd
Expand Down

0 comments on commit f31fb29

Please sign in to comment.