This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| import wpilib | |
| from robotpy_ext.control import xbox_controller | |
| import magicbot | |
| class MyRobot(magicbot.MagicRobot): | |
| def createObjects(self): | |
| self.driveStick = xbox_controller.XboxController(0) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def initialize(self): | |
| from autonomous import SimpleAutonomous | |
| self.obstacles = { | |
| 'LowGoal': SimpleAutonomous.LowGoal(), | |
| 'A0': SimpleAutonomous.DirectPortcullis(), | |
| 'A1': SimpleAutonomous.ChevalDeFrise() | |
| } | |
| @state(first = True) | |
| def main_autonomous(self, initial_call): | |
| if initial_call: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias deploy="networksetup -setairportnetwork en0 1418 Fedora1418;robot;./robot.py deploy" | |
| alias robot="cd ~/src/2016-robot/robot" | |
| alias sim="robot;./robot.py sim" | |
| alias pyfrc="pip3 install -U pyfrc --user" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.qualcomm.ftcrobotcontroller.opmodes; | |
| import com.qualcomm.robotcore.eventloop.opmode.OpMode; | |
| import com.qualcomm.robotcore.hardware.DcMotor; | |
| /** | |
| * Created by winterst on 9/12/15. | |
| */ | |
| public class Arcade extends OpMode{ | |
| DcMotor motorRight; |
NewerOlder