how to get signal of limits from titan

61 views
Skip to first unread message

alex ho

unread,
Oct 19, 2021, 11:45:17 PM10/19/21
to vmx-pi
I finish my code on FRC VS Code and I'm using WPILIBC++ Library to control my robot. But I have no idea of which studica library should I include. I can't find the function which can read the signal of limit in either studica/TitanQuad.h or studica/Titan.h

James Taylor

unread,
Oct 20, 2021, 8:40:41 AM10/20/21
to vmx-pi
Hi Alex,

If you are using the current Studica JSON V1.0.0 (http://dev.studica.com/releases/2020/Studica.json) in TitanQuad.h you will find GetLimitSwitch(bool direction). This function will allow you to get the limits from the Titan. 

Thanks 
James
Reply all
Reply to author
Forward
0 new messages