@@ -1448,7 +1448,7 @@ void ZEDWrapperNodelet::checkResolFps()
1448
1448
case sl::RESOLUTION::HD2K:
1449
1449
if (mCamFrameRate != 15 )
1450
1450
{
1451
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD2K. Set to 15 FPS." );
1451
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD2K. Forced to 15 FPS." );
1452
1452
mCamFrameRate = 15 ;
1453
1453
}
1454
1454
@@ -1457,26 +1457,26 @@ void ZEDWrapperNodelet::checkResolFps()
1457
1457
case sl::RESOLUTION::HD1080:
1458
1458
if (mZedUserCamModel == sl::MODEL::ZED_X || mZedUserCamModel == sl::MODEL::ZED_XM)
1459
1459
{
1460
- if (mCamFrameRate == 60 || mCamFrameRate == 30 )
1460
+ if (mCamFrameRate == 60 || mCamFrameRate == 30 || mCamFrameRate == 15 )
1461
1461
{
1462
1462
break ;
1463
1463
}
1464
1464
1465
- if (mCamFrameRate > 30 && mCamFrameRate < 60 )
1465
+ if (mCamFrameRate < 23 )
1466
1466
{
1467
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Set to 30 FPS." );
1467
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 15 FPS." );
1468
+ mCamFrameRate = 15 ;
1469
+ }
1470
+ else if (mCamFrameRate >= 23 && mCamFrameRate < 45 )
1471
+ {
1472
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 30 FPS." );
1468
1473
mCamFrameRate = 30 ;
1469
1474
}
1470
- else if (mCamFrameRate > 60 )
1475
+ else if (mCamFrameRate >= 45 )
1471
1476
{
1472
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Set to 60 FPS." );
1477
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 60 FPS." );
1473
1478
mCamFrameRate = 60 ;
1474
1479
}
1475
- else
1476
- {
1477
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Set to 30 FPS." );
1478
- mCamFrameRate = 30 ;
1479
- }
1480
1480
}
1481
1481
else
1482
1482
{
@@ -1485,21 +1485,16 @@ void ZEDWrapperNodelet::checkResolFps()
1485
1485
break ;
1486
1486
}
1487
1487
1488
- if (mCamFrameRate > 15 && mCamFrameRate < 30 )
1488
+ if (mCamFrameRate < 23 )
1489
1489
{
1490
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Set to 15 FPS." );
1490
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 15 FPS." );
1491
1491
mCamFrameRate = 15 ;
1492
1492
}
1493
- else if (mCamFrameRate > 30 )
1493
+ else if (mCamFrameRate >= 23 )
1494
1494
{
1495
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Set to 30 FPS." );
1495
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 30 FPS." );
1496
1496
mCamFrameRate = 30 ;
1497
1497
}
1498
- else
1499
- {
1500
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Set to 15 FPS." );
1501
- mCamFrameRate = 15 ;
1502
- }
1503
1498
}
1504
1499
1505
1500
break ;
@@ -1510,25 +1505,25 @@ void ZEDWrapperNodelet::checkResolFps()
1510
1505
break ;
1511
1506
}
1512
1507
1513
- if (mCamFrameRate > 15 && mCamFrameRate < 30 )
1508
+ if (mCamFrameRate < 23 )
1514
1509
{
1515
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD720. Set to 15 FPS." );
1510
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 15 FPS." );
1516
1511
mCamFrameRate = 15 ;
1517
- }
1518
- else if (mCamFrameRate > 30 && mCamFrameRate < 60 )
1512
+ }
1513
+ else if (mCamFrameRate >= 23 && mCamFrameRate < 45 )
1519
1514
{
1520
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD720. Set to 30 FPS." );
1515
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 30 FPS." );
1521
1516
mCamFrameRate = 30 ;
1522
1517
}
1523
- else if (mCamFrameRate > 60 )
1518
+ else if (mCamFrameRate >= 45 )
1524
1519
{
1525
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD720. Set to 60 FPS." );
1520
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 60 FPS." );
1526
1521
mCamFrameRate = 60 ;
1527
1522
}
1528
1523
else
1529
1524
{
1530
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD720. Set to 15 FPS." );
1531
- mCamFrameRate = 15 ;
1525
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 30 FPS." );
1526
+ mCamFrameRate = 30 ;
1532
1527
}
1533
1528
1534
1529
break ;
@@ -1539,31 +1534,26 @@ void ZEDWrapperNodelet::checkResolFps()
1539
1534
break ;
1540
1535
}
1541
1536
1542
- if (mCamFrameRate > 15 && mCamFrameRate < 30 )
1537
+ if (mCamFrameRate < 23 )
1543
1538
{
1544
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Set to 15 FPS." );
1539
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Forced to 15 FPS." );
1545
1540
mCamFrameRate = 15 ;
1546
1541
}
1547
- else if (mCamFrameRate > 30 && mCamFrameRate < 60 )
1542
+ else if (mCamFrameRate >= 23 && mCamFrameRate < 45 )
1548
1543
{
1549
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Set to 30 FPS." );
1544
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Forced to 30 FPS." );
1550
1545
mCamFrameRate = 30 ;
1551
1546
}
1552
- else if (mCamFrameRate > 60 && mCamFrameRate < 100 )
1547
+ else if (mCamFrameRate >= 45 && mCamFrameRate < 80 )
1553
1548
{
1554
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Set to 60 FPS." );
1549
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Forced to 60 FPS." );
1555
1550
mCamFrameRate = 60 ;
1556
1551
}
1557
- else if (mCamFrameRate > 100 )
1552
+ else if (mCamFrameRate >= 80 )
1558
1553
{
1559
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Set to 100 FPS." );
1554
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Forced to 100 FPS." );
1560
1555
mCamFrameRate = 100 ;
1561
1556
}
1562
- else
1563
- {
1564
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution VGA. Set to 15 FPS." );
1565
- mCamFrameRate = 15 ;
1566
- }
1567
1557
1568
1558
break ;
1569
1559
@@ -1573,45 +1563,45 @@ void ZEDWrapperNodelet::checkResolFps()
1573
1563
break ;
1574
1564
}
1575
1565
1576
- if (mCamFrameRate > 30 && mCamFrameRate < 60 )
1566
+ if (mCamFrameRate < 45 )
1577
1567
{
1578
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1200. Set to 30 FPS." );
1568
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1200. Forced to 30 FPS." );
1579
1569
mCamFrameRate = 30 ;
1580
1570
}
1581
- else if (mCamFrameRate > 60 )
1571
+ else if (mCamFrameRate >= 45 )
1582
1572
{
1583
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1200. Set to 60 FPS." );
1573
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1200. Forced to 60 FPS." );
1584
1574
mCamFrameRate = 60 ;
1585
1575
}
1586
- else
1587
- {
1588
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1200. Set to 30 FPS." );
1589
- mCamFrameRate = 30 ;
1590
- }
1591
1576
1592
1577
break ;
1593
1578
1594
1579
case sl::RESOLUTION::SVGA:
1595
- if (mCamFrameRate == 120 || mCamFrameRate == 60 )
1580
+ if (mCamFrameRate == 120 || mCamFrameRate == 60 || mCamFrameRate == 30 || mCamFrameRate == 15 )
1596
1581
{
1597
1582
break ;
1598
1583
}
1599
1584
1600
- if (mCamFrameRate > 60 && mCamFrameRate < 120 )
1585
+ if (mCamFrameRate < 23 )
1601
1586
{
1602
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution SVGA. Set to 60 FPS." );
1603
- mCamFrameRate = 60 ;
1604
- }
1605
- else if (mCamFrameRate > 120 )
1587
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 15 FPS." );
1588
+ mCamFrameRate = 15 ;
1589
+ }
1590
+ else if (mCamFrameRate >= 23 && mCamFrameRate < 45 )
1606
1591
{
1607
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution SVGA. Set to 120 FPS." );
1608
- mCamFrameRate = 120 ;
1592
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 30 FPS." );
1593
+ mCamFrameRate = 30 ;
1609
1594
}
1610
- else
1595
+ else if ( mCamFrameRate >= 45 && mCamFrameRate < 90 )
1611
1596
{
1612
- NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution SVGA. Set to 60 FPS." );
1597
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1080. Forced to 60 FPS." );
1613
1598
mCamFrameRate = 60 ;
1614
1599
}
1600
+ else if (mCamFrameRate >= 90 )
1601
+ {
1602
+ NODELET_WARN_STREAM (" Wrong FrameRate (" << mCamFrameRate << " ) for the resolution HD1200. Forced to 120 FPS." );
1603
+ mCamFrameRate = 120 ;
1604
+ }
1615
1605
1616
1606
break ;
1617
1607
0 commit comments