LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remote control vehicle need help...

Hi...I'm creating a vi for remote control vehicle with 4 buttons (forward, reverse, left, right) at front panel.
servo "0" represents steering and servo "1" representing throttle.
position 127 represents centre for steering and stop for throttle
position 0 represents left for steering and forward for throttle
position 255 represents righte for steering and reverse for throttle
When no button is press, the default is steering centre. how do i add "stop throttle" to default (reset)? Alternating the servo no. maybe?
 
Also, how do i control the 4 buttons using keyboard (not focusing the button) just as one would like for remote control car because i think "switch until release" don't work with keyboard. Thank you. 
0 Kudos
Message 1 of 2
(2,469 Views)
You could do as shown in the modified VI attached.
 
Make switch mechanical property >> switch when pressed.
 
Pop down menu of that control, Advanced>> Select suitable key for 'Key navigation'
And inside that corresponding case, set the boolean control's value back to 'False' using a local variable.
Hope this helps
 
Regards,
Dev
 
 
0 Kudos
Message 2 of 2
(2,435 Views)