Changeset 41002
- Timestamp:
- 10/06/17 21:25:22 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/instar/instar.h
r40965 r41002 149 149 150 150 if(rcret == getrcconfigint("rc1", NULL)) { 151 position = ostrcat("/decoder_control.cgi?command=", "31", 0 , 0); 152 ohnestop = 1; 151 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 152 { 153 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "0", 0 , 0); 154 ohnestop = 1; 155 } 156 else 157 { 158 position = ostrcat("/decoder_control.cgi?command=", "31", 0 , 0); 159 ohnestop = 1; 160 } 153 161 } 154 162 if(rcret == getrcconfigint("rc2", NULL)) { 155 position = ostrcat("/decoder_control.cgi?command=", "33", 0 , 0); 156 ohnestop = 1; 163 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 164 { 165 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "1", 0 , 0); 166 ohnestop = 1; 167 } 168 else 169 { 170 position = ostrcat("/decoder_control.cgi?command=", "33", 0 , 0); 171 ohnestop = 1; 172 } 157 173 } 158 174 if(rcret == getrcconfigint("rc3", NULL)) { 159 position = ostrcat("/decoder_control.cgi?command=", "35", 0 , 0); 160 ohnestop = 1; 175 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 176 { 177 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "2", 0 , 0); 178 ohnestop = 1; 179 } 180 else 181 { 182 position = ostrcat("/decoder_control.cgi?command=", "35", 0 , 0); 183 ohnestop = 1; 184 } 161 185 } 162 186 if(rcret == getrcconfigint("rc4", NULL)) { 163 position = ostrcat("/decoder_control.cgi?command=", "37", 0 , 0); 164 ohnestop = 1; 187 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 188 { 189 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "3", 0 , 0); 190 ohnestop = 1; 191 } 192 else 193 { 194 position = ostrcat("/decoder_control.cgi?command=", "37", 0 , 0); 195 ohnestop = 1; 196 } 165 197 } 166 198 if(rcret == getrcconfigint("rc5", NULL)) { 167 position = ostrcat("/decoder_control.cgi?command=", "39", 0 , 0); 168 ohnestop = 1; 199 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 200 { 201 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "4", 0 , 0); 202 ohnestop = 1; 203 } 204 else 205 { 206 position = ostrcat("/decoder_control.cgi?command=", "39", 0 , 0); 207 ohnestop = 1; 208 } 169 209 } 170 210 if(rcret == getrcconfigint("rc6", NULL)) { 171 position = ostrcat("/decoder_control.cgi?command=", "41", 0 , 0); 172 ohnestop = 1; 211 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 212 { 213 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "5", 0 , 0); 214 ohnestop = 1; 215 } 216 else 217 { 218 position = ostrcat("/decoder_control.cgi?command=", "41", 0 , 0); 219 ohnestop = 1; 220 } 173 221 } 174 222 if(rcret == getrcconfigint("rc7", NULL)) { 175 position = ostrcat("/decoder_control.cgi?command=", "43", 0 , 0); 176 ohnestop = 1; 223 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 224 { 225 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "6", 0 , 0); 226 ohnestop = 1; 227 } 228 else 229 { 230 position = ostrcat("/decoder_control.cgi?command=", "43", 0 , 0); 231 ohnestop = 1; 232 } 177 233 } 178 234 if(rcret == getrcconfigint("rc8", NULL)) { 179 position = ostrcat("/decoder_control.cgi?command=", "45", 0 , 0); 180 ohnestop = 1; 235 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 236 { 237 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "7", 0 , 0); 238 ohnestop = 1; 239 } 240 else 241 { 242 position = ostrcat("/decoder_control.cgi?command=", "45", 0 , 0); 243 ohnestop = 1; 244 } 181 245 } 182 246 if(rcret == getrcconfigint("rc9", NULL)) { 183 position = ostrcat("/decoder_control.cgi?command=", "47", 0 , 0); 184 ohnestop = 1; 247 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 248 { 249 position = ostrcat("/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=", "8", 0 , 0); 250 ohnestop = 1; 251 } 252 else 253 { 254 position = ostrcat("/decoder_control.cgi?command=", "47", 0 , 0); 255 ohnestop = 1; 256 } 185 257 } 186 258 if(positionstop == NULL) 187 259 { 188 260 if(rcret == getrcconfigint("rcup", NULL)) { 189 position = ostrcat("/decoder_control.cgi?command=", "0", 0 , 0); 190 positionstop = ostrcat("/decoder_control.cgi?command=", "1", 0 , 0); 261 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 262 { 263 position = ostrcat("/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=", "up", 0 , 0); 264 positionstop = ostrcat("/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=", "stop", 0 , 0); 265 } 266 else 267 { 268 position = ostrcat("/decoder_control.cgi?command=", "0", 0 , 0); 269 positionstop = ostrcat("/decoder_control.cgi?command=", "1", 0 , 0); 270 } 191 271 } 192 272 if(rcret == getrcconfigint("rcdown", NULL)) { 193 position = ostrcat("/decoder_control.cgi?command=", "2", 0 , 0); 194 positionstop = ostrcat("/decoder_control.cgi?command=", "3", 0 , 0); 273 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 274 { 275 position = ostrcat("/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=", "down", 0 , 0); 276 positionstop = ostrcat("/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=", "stop", 0 , 0); 277 } 278 else 279 { 280 position = ostrcat("/decoder_control.cgi?command=", "2", 0 , 0); 281 positionstop = ostrcat("/decoder_control.cgi?command=", "3", 0 , 0); 282 } 195 283 } 196 284 if(rcret == getrcconfigint("rcleft", NULL)) { 197 position = ostrcat("/decoder_control.cgi?command=", "4", 0 , 0); 198 positionstop = ostrcat("/decoder_control.cgi?command=", "5", 0 , 0); 285 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 286 { 287 position = ostrcat("/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=", "left", 0 , 0); 288 positionstop = ostrcat("/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=", "stop", 0 , 0); 289 } 290 else 291 { 292 position = ostrcat("/decoder_control.cgi?command=", "4", 0 , 0); 293 positionstop = ostrcat("/decoder_control.cgi?command=", "5", 0 , 0); 294 } 199 295 } 200 296 if(rcret == getrcconfigint("rcright", NULL)) { 201 position = ostrcat("/decoder_control.cgi?command=", "6", 0 , 0); 202 positionstop = ostrcat("/decoder_control.cgi?command=", "7", 0 , 0); 297 if((actcam == 1 && getconfigint("instar_1", NULL) == 2) || (actcam == 2 && getconfigint("instar_2", NULL) == 2) || (actcam == 3 && getconfigint("instar_3", NULL) == 2) || (actcam == 4 && getconfigint("instar_4", NULL) == 2)) 298 { 299 position = ostrcat("/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=", "right", 0 , 0); 300 positionstop = ostrcat("/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=", "stop", 0 , 0); 301 } 302 else 303 { 304 position = ostrcat("/decoder_control.cgi?command=", "6", 0 , 0); 305 positionstop = ostrcat("/decoder_control.cgi?command=", "7", 0 , 0); 306 } 203 307 } 204 308 if(rcret == getrcconfigint("rcchup", NULL)) {
Note: See TracChangeset
for help on using the changeset viewer.