Initial commit from weevil new --template basic
This commit is contained in:
27
.gitignore
vendored
27
.gitignore
vendored
@@ -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
1
.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
# This file ensures the directory is tracked by git even when empty
|
||||
57
README.md
57
README.md
@@ -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
|
||||
|
||||
17
settings.gradle
Normal file
17
settings.gradle
Normal file
@@ -0,0 +1,17 @@
|
||||
pluginManagement {
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
dependencyResolutionManagement {
|
||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = 'FtcRobotController'
|
||||
1
src/main/java/robot/hardware/.gitkeep
Normal file
1
src/main/java/robot/hardware/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
# This file ensures the directory is tracked by git even when empty
|
||||
27
src/main/java/robot/opmodes/BasicOpMode.java
Normal file
27
src/main/java/robot/opmodes/BasicOpMode.java
Normal 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");
|
||||
}
|
||||
}
|
||||
1
src/main/java/robot/subsystems/.gitkeep
Normal file
1
src/main/java/robot/subsystems/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
# This file ensures the directory is tracked by git even when empty
|
||||
1
src/test/java/robot/.gitkeep
Normal file
1
src/test/java/robot/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
# This file ensures the directory is tracked by git even when empty
|
||||
Reference in New Issue
Block a user