|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Utilizing the Smart Dashboard
What.... i posted and it said a moderator has to approve the thread and its still not there....
anyway, if it finally does show up, heres the exact error whenever i try to use the Preferences class Code:
[cRIO] Done Reading [cRIO] task 0x111b458 (FRC_cameraTask) deleted: errno=0 (0) status=0 (0U) [cRIO] ncaught out of memory error on thread - aborting isolate Server Connection Reader Thread [cRIO] Tried to execute callbacks in the context of an isolate that is no longer alive: isolate 1 "edu.wpi.first.wpilibj.templates.RobotTemplate" (EXITED) [cRIO] Skipping that set of callbacks [cRIO] task 0x1126ed8 (cached TaskExecutor 1) deleted: errno=0 (0) status=0 (0) [cRIO] [cRIO] [cRIO] -------------------------------------------------------------------- [cRIO] GCs: 1 full, 4 partial [cRIO] ** VM stopped: exit code = 999 ** [cRIO] task 0xd1f738 (SquawkRobotTask) deleted: errno=0 (0) status=999 (0x3e7) BUILD STOPPED (total time: 59 seconds) I get the above error when trying to use the Prefrences class... other stuff was just blabble |
|
#2
|
||||
|
||||
|
Re: Utilizing the Smart Dashboard
Code:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.buttons;
import edu.wpi.first.wpilibj.buttons.Trigger;
import edu.wpi.first.wpilibj.command.Command;
/**
*
* @author Arhowk
*/
public class t1684_SD_TakeImage extends Trigger{
public boolean get(){return true;}
public void whenActive(Command command){
System.out.println("meh");
}
public void whileActive(Command command){
System.out.println("meh2");
}
public void whenInactive(Command command){
System.out.println("meh3");
}
}
still getting above error |
|
#3
|
|||
|
|||
|
Re: Utilizing the Smart Dashboard
My team's idea for #4 was to save the processed image to the computer and have the smart dashboard read that file, but I don't know how to get the SmartDashboard to read an image.
|
|
#4
|
||||
|
||||
|
Re: Utilizing the Smart Dashboard
Quote:
btw i fixed the preferences issue.. it turned out that i had 10 preferences windows stacked ontop of eachother -_- |
|
#5
|
||||
|
||||
|
Re: Utilizing the Smart Dashboard
Quote:
Code:
Trigger doThingyTrigger;
doThingyTrigger.whenActive(new DoThingy()); // DoThingy is some class extending Command
SmartDashboard.putData("Do Thingy",trigger);
|
|
#6
|
|||
|
|||
|
Re: Utilizing the Smart Dashboard
Quote:
Also, there is an example of using the Preferences class here: http://wpilib.screenstepslive.com/s/...smartdashboard Thanks Brad |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|