Trik-Sharp is designed with strong attempt to cope with Rx and TRIK-controller. It provides general methods for working with sensors (IR, Gyroscope, Accelerometer, Light and Noise sensors, Encoders etc.) along with output devices (Servomotors and general power motors, Led stripe and On-board light bulb).
Trik-Sharp can also be freely used without Reactive Extensions due to providing not event-based sensors communication.
Main development language is F# but trik-sharp isn't just F# faced library. All components as well can be effectively used in C# in a natural not disruptive way
##Build tips
You can use library and make robots either with MacOS, Linux or Windows
- Use Xamarin Studio/Monodevelop or Visual Studio
- F# 3.0 / F# 3.1
- .NET/Mono 4.0 framework (is set already in build options)
- Enable NuGet package restore
##Deploy & Run
###Copying files
For file transferring with Wi-Fi connected TRIK-controller you may use
- SCP console tool
- WinSCP if you use Windows
###Deploying for the first time
- Set up ssh tunnel with controller board (linux ssh tool or Putty can be used)
- Copy to a robot all files in a folder you got from build
- Make sure folder contains Trik.Core.dll and libconWrap.so. If it does not then copy these assembly too
- Copy to a robot Fsharp.Core.dll which can be find GAC
###Running
After you end up with file moving. You can run your application (e.g test.exe) with Mono environment
root@trikboard:~/home/root/test/# mono test.exe
###Future development
For future deployment you only need to move new versions of your program. All external components will remain the same.
You can also make .sh script file with your program to make it accessible from On-board file explorer. So you no longer need connected laptop to run your app
root@trikboard:~/home/root/test/# echo '#!/bin/sh
> mono test.exe' > test.sh
root@trikboard:~/home/root/test/# chmod +x test.sh