This file contains 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
// 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. | |
package edu.wpi.first.util.sendable; | |
/** | |
* Interface for sendable objects. | |
* | |
* <p>Idiomatically, classes that support sendable operation should provide a static final |
This file contains 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
#!/bin/sh | |
exec 2>&1 >/dev/null | |
while true; do | |
APP_PATH=`nirtcfg --file /etc/natinst/share/lvrt.conf --get section=LVRT,token=RTTarget.ApplicationPath` | |
if [ "$APP_PATH" = /home/lvuser/natinst/bin/TBLStartupApp.rtexe ] | |
then | |
APP_BOOT=`nirtcfg --file /etc/natinst/share/lvrt.conf --get section=LVRT,token=RTTarget.LaunchAppAtBoot,value=true | tr "[:upper:]" "[:lower:]"` | |
APP_DISABLED=`nirtcfg --get section=SYSTEMSETTINGS,token=NoApp.enabled,value=false | tr "[:upper:]" "[:lower:]"` | |
if [ "$APP_BOOT" = true ] && [ "$APP_DISABLED" = false ] | |
then |
This file contains 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
#include <cstring> | |
#include <vector> | |
#include <frc/AddressableLED.h> | |
#include <frc/TimedRobot.h> | |
static const char* msg[8] = { | |
"* * ***** ***** ***** * * ***** * * ***** * * * * ***** ***** ***** * * ***** * * ***** * 2 3 ", | |
"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * 2 3 ", | |
"* * * * * * * * * * * * * * * ** * * * * * * * * * ** * * * 2 3 ", |
This file contains 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
#pragma once | |
#include <initializer_list> | |
#include <unordered_map> | |
#include "SendableCommandBase.h" | |
#include "CommandGroupBase.h" | |
#include "PrintCommand.h" | |
namespace frc { |
This file contains 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
public class Slow3 { | |
private static double freememory = 0.0; | |
private static double m_a = 1.0; | |
private static double m_b = 2.0; | |
private static double m_c = 3.0; | |
private static double m_d = 4.0; | |
private static double m_e = 5.0; | |
private static double m_f = 6.0; | |
private static double m_g = 7.0; |
This file contains 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
1..50 | |
ok 1 - sizes | |
# uv_shutdown_t: 80 bytes | |
# uv_write_t: 192 bytes | |
# uv_connect_t: 96 bytes | |
# uv_udp_send_t: 320 bytes | |
# uv_tcp_t: 248 bytes | |
# uv_pipe_t: 264 bytes | |
# uv_tty_t: 312 bytes | |
# uv_prepare_t: 120 bytes |
This file contains 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
class CameraServer : public ErrorBase { | |
public: | |
static constexpr uint16_t kBasePort = 1181; | |
static constexpr int kSize640x480 = 0; | |
static constexpr int kSize320x240 = 1; | |
static constexpr int kSize160x120 = 2; | |
public: | |
static CameraServer* GetInstance(); |
This file contains 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
apply plugin: 'java' | |
apply plugin: 'application' | |
apply plugin: 'com.github.johnrengelman.shadow' | |
evaluationDependsOn(':wpilibj') | |
mainClassName = 'edu.wpi.first.wpilibj.RobotBase' | |
buildscript { | |
repositories { jcenter() } |
This file contains 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
import edu.wpi.first.wpilibj.AnalogInput; | |
import edu.wpi.first.wpilibj.AnalogOutput; | |
import edu.wpi.first.wpilibj.IterativeRobot; | |
@SuppressWarnings("all") | |
public class MyRobot extends IterativeRobot { | |
AnalogInput a0, a1, a2, a3; | |
AnalogOutput aout0; | |
public void robotInit() { | |
a0 = new AnalogInput(0); |
This file contains 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
> Building 93% > :ui:jfxRunJul 29, 2016 4:29:53 PM java.util.logging.LogManager$RootLogger log | |
CONFIG: Configuration done. | |
Jul 29, 2016 4:29:53 PM java.util.logging.LogManager$RootLogger log | |
CONFIG: GRIP Version: 1.4.0-56-g58635d3 | |
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
SLF4J: Defaulting to no-operation (NOP) logger implementation | |
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. | |
Exception in Application init method | |
java.lang.reflect.InvocationTargetException |
NewerOlder