![]() |
1st Post! ZomB Dashboard Troubles
Long time lurker, first time posting. Hello everybody!
I'm trying to create a simple slider in ZomB that will let me set the speed of our shooter for testing out the range/rpm ratio on our shooter. I set up a slider in Visual ZomB, named it "Shooter Speed", and then wrote in my teleopPeriodic() in Java Code:
try {Code:
[cRIO]edu.wpi.first.wpilibj.networktables.NetworkTableKeyNotDefinedMy ZomB Dashboard is working great otherwise, I have encoders mapped to graphs and the camera is showing up. It's an awesome program. If you haven't tried it out, I would highly recommend it. |
Re: 1st Post! ZomB Dashboard Troubles
We ran across this same issue at one point. I don't have the robot in front of me, but I think the solution was to add a line in the robot initialization code to set a initial value for each SmartDashboard key name we wanted to retrieve before we started retrieving it.
Here's a example (from a SimpleRobot based perspective): Code:
private int shooterSpeed = 0; |
Re: 1st Post! ZomB Dashboard Troubles
We tested that already, and it doesn't help. I'm switching to SmartDashboard, so I just wrote a custom widget that gets at the NetworkTable from within the program. Haven't tested it yet, but that seems like it should work. I'll test it as soon as I get back into the shop.
|
Re: 1st Post! ZomB Dashboard Troubles
what control are you using? some controls don't send data back
|
| All times are GMT -5. The time now is 08:54 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi