Initial commit from weevil new --template basic

This commit is contained in:
Eric Ratliff
2026-02-03 21:57:40 -06:00
parent a5506dea02
commit ebccb21ed2
10 changed files with 112 additions and 20 deletions

27
.gitignore vendored
View File

@@ -1,7 +1,26 @@
build/
# Gradle
.gradle/
*.iml
.idea/
local.properties
build/
gradle-app.setting
!gradle-wrapper.jar
# Android
*.apk
*.ap_
*.aab
local.properties
# IDEs
.idea/
*.iml
.vscode/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Weevil
.weevil/

1
.gitkeep Normal file
View File

@@ -0,0 +1 @@
# This file ensures the directory is tracked by git even when empty

View File

@@ -1,28 +1,53 @@
# chute-drive
FTC Robot Project generated by Weevil v1.1.0-rc1
FTC Robot project created with Weevil 1.1.0-rc1 on 2026-02-04T03:57:40.088970052+00:00.
## Getting Started
This is a minimal FTC robot project. Add your robot code in:
- `src/main/java/robot/opmodes/` - OpModes for TeleOp and Autonomous
- `src/main/java/robot/subsystems/` - Robot subsystems
- `src/main/java/robot/hardware/` - Hardware abstractions
## Building
## Quick Start
```bash
# Test your code (runs on PC, no robot needed)
./gradlew test
# Setup environment (first time only)
weevil setup
# Build and deploy (Linux/Mac)
./build.sh
./deploy.sh
# Build APK
weevil build
# Build and deploy (Windows)
build.bat
deploy.bat
# Deploy to robot
weevil deploy
```
## Project Structure
- `src/main/java/robot/` - Your robot code
- `src/test/java/robot/` - Unit tests (run on PC)
```
chute-drive/
├── src/
│ ├── main/java/robot/
│ │ ├── hardware/ # Hardware interfaces
│ │ ├── subsystems/ # Robot subsystems
│ │ └── opmodes/ # TeleOp and Autonomous
│ └── test/java/robot/ # Unit tests
├── build.gradle # Build configuration
└── README.md # This file
```
## Development Workflow
## Next Steps
1. Write code in `src/main/java/robot/`
2. Test locally: `./gradlew test`
3. Deploy: `./deploy.sh` (or `deploy.bat` on Windows)
1. Add your robot hardware in `src/main/java/robot/hardware/`
2. Create subsystems in `src/main/java/robot/subsystems/`
3. Write OpModes in `src/main/java/robot/opmodes/`
4. Test and deploy!
## Documentation
- [Weevil Documentation](https://docs.weevil.dev)
- [FTC SDK Documentation](https://ftc-docs.firstinspires.org)
---
Created with [Weevil](https://weevil.dev) - FTC Project Generator

0
build.sh Normal file → Executable file
View File

0
deploy.sh Normal file → Executable file
View File

17
settings.gradle Normal file
View File

@@ -0,0 +1,17 @@
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = 'FtcRobotController'

View File

@@ -0,0 +1 @@
# This file ensures the directory is tracked by git even when empty

View File

@@ -0,0 +1,27 @@
package robot.opmodes;
/**
* Basic OpMode for chute-drive
*
* This is a placeholder to demonstrate project structure.
* To use this with FTC SDK:
* 1. Run: weevil deploy chute-drive
* 2. Add FTC SDK imports (OpMode, TeleOp, etc.)
* 3. Extend OpMode and implement methods
*
* For local testing (without robot), write unit tests in src/test/java/robot/
* Run tests with: ./gradlew test
*
* Created by Weevil 1.1.0-rc1
* Template: basic
*/
public class BasicOpMode {
// This placeholder compiles without FTC SDK dependencies
// Replace with actual OpMode code when deploying to robot
public static void main(String[] args) {
System.out.println("chute-drive - Ready for deployment");
System.out.println("Run: weevil deploy chute-drive");
}
}

View File

@@ -0,0 +1 @@
# This file ensures the directory is tracked by git even when empty

View File

@@ -0,0 +1 @@
# This file ensures the directory is tracked by git even when empty