From 8c5e00c91213310820a26b1d4caa549759580071 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Wed, 27 Mar 2024 14:24:51 -0700 Subject: [PATCH] done on laptop --- build.gradle | 2 +- src/main/cpp/cowlib/SwerveModule.cpp | 7 +++++++ src/main/include/cowlib/SwerveModule.h | 11 +++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/main/cpp/cowlib/SwerveModule.cpp create mode 100644 src/main/include/cowlib/SwerveModule.h diff --git a/build.gradle b/build.gradle index 99595e3..74b0240 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ plugins { id "cpp" id "google-test-test-suite" - id "edu.wpi.first.GradleRIO" version "2024.1.1" + id "edu.wpi.first.GradleRIO" version "2024.3.2" } // Define my targets (RoboRIO) and artifacts (deployable files) diff --git a/src/main/cpp/cowlib/SwerveModule.cpp b/src/main/cpp/cowlib/SwerveModule.cpp new file mode 100644 index 0000000..579a633 --- /dev/null +++ b/src/main/cpp/cowlib/SwerveModule.cpp @@ -0,0 +1,7 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + +#include "cowlib/SwerveModule.h" + +SwerveModule::SwerveModule(int driveMotorId, int steerMotorId, int encoderId) {} diff --git a/src/main/include/cowlib/SwerveModule.h b/src/main/include/cowlib/SwerveModule.h new file mode 100644 index 0000000..8876619 --- /dev/null +++ b/src/main/include/cowlib/SwerveModule.h @@ -0,0 +1,11 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + +#pragma once + +class SwerveModule { +private: +public: + SwerveModule(int driveMotorId, int steerMotorId, int encoderId); +};