Skip to content

ls4096/sailnavsim-core

Repository files navigation

SailNavSim core simulator

A global sailing navigation simulator, using real-world geographic information and weather/ocean data (as seen here: https://8bitbyte.ca/sailnavsim/).

Dependencies

  • POSIX threads (pthread) library, with headers
  • SQLite3 library, with headers

Build tools

  • Make
  • C compiler (gcc or clang, etc.)
  • Rust toolchain (rustc and cargo, etc.)

Tested build/run environments

  • Ubuntu 20.04, x86-64
  • Debian 10 (Buster), x86-64

How to build

make sailnavsim

How to run

Create the named pipe to be able to send the simulator commands:

mkfifo cmds

Basic run:

./sailnavsim

With optional TCP server listening on localhost:$PORT (for weather data, live boat info, etc.):

./sailnavsim --netport $PORT

Performance test run:

./sailnavsim --perf

Add a boat

echo "TestBoat,add,44.0,-63.0,0,0" > cmds

Set a course and start the boat

echo "TestBoat,course,90" > cmds

echo "TestBoat,start" > cmds

Stop and remove the boat

echo "TestBoat,stop" > cmds

echo "TestBoat,remove" > cmds

Build and run tests

make tests

./sailnavsim_tests

About

A global sailing navigation simulator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •