View Single Post
  #7   Spotlight this post!  
Unread 18-02-2015, 02:13
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Limit switch help

It's multi-thread friendly, but there's no additional thread here. I think he's ok to do the Wait (small) at the moment - first things first ... an ability to know the switch is working right. I'd suggest not worrying about the motor control yet. I'd say use the smart dashboard to put the value of the limit switch up on the dashboard and see it flitter from 1 to 0 when it is closed and opened.

Code:
SmartDashboard::PutNumber("Switch1", limitswitch.Get());
...
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote