MCPcopy Create free account
hub / github.com/RoboMaster/RoboRTS / getKey

Method getKey

roborts_tracking/tracking_utility.cpp:85–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void TrackingUtility::getKey(char c)
86{
87 switch(c)
88 {
89 case 'g':
90 if( (state == STATE_IDLE) && (roiSelected == true))
91 {
92 state = STATE_INIT;
93 }
94 break;
95
96 case 's':
97 if( state == STATE_ONGOING )
98 {
99 state = STATE_STOP;
100 roi = cv::Rect(0,0,0,0); //when we press s, should clear bounding box
101 }
102 break;
103
104 default:
105 break;
106 }
107}

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64