This library is deprecated. Go use DogeCommander.
RobotLib is a library for programming FTC robots. It’s central feature is a template for command-based design pattern. It seperates robot code into 2 parts. The main two parts are commands and subsystems. Subsystems are just parts of the robot, like a claw, a drivetrain, etc. Commands make subsystems perform specific actions.
build.gradle
to look like this.
buildscript {
ext.kotlin_version = '1.2.71' //this line
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" //this line
}
}
//The lines after this
allprojects {
repositories {
google()
jcenter()
}
}
:robotlib
, and press OK twice.The documentation for RobotLib is written in the KDoc format and is compiled into github flavored markdown with Dokka. The documentation can be found here.
The samples for robotlib can be found here.