<div ng-controller="acquiCtrl">
    <div class="data-controls-container no-print">
        <div class="data-controls">
            <!-- Controls -->
            <span class="btn-group">
                <button class="btn btn-default" ng-disabled="dongleMode != 'CONNECTED' || !r1Disabled" type="button" ng-click="startData()" title="Record">
                    <span ng-class="{'btn-record': dongleMode == 'CONNECTED' && r1Disabled}"><span class="glyphicon glyphicon-record"></span></span> Record
                </button>
                <button class="btn btn-default btn-small" ng-disabled="dongleMode != 'DATA'" type="button" ng-click="stopData()" title="Stop">
                    <span ng-class="{'btn-stop': dongleMode == 'DATA'}">
                        <span class="glyphicon glyphicon-stop"></span>
                    </span> Stop
                </button>
                <button class="btn btn-default btn-small" ng-disabled="dongleMode == 'DATA'" type="button" ng-click="resetDataAndConfig()" title="Reset">
                    <span class="btn-reset">
                        <span class="glyphicon glyphicon-refresh"></span>
                    </span> Reset
                </button>
            </span>
            <!-- Chart types (chart / Parametric plot) -->
            <!--<div class="btn-group" style="margin-left: 12px; display: inline-block;">-->
                <!--<label class="btn btn-default btn-small" ng-model="type" btn-radio="'chart'"><span>Chart</span></label>-->
                <!--<label class="btn btn-default btn-small" ng-model="type" btn-radio="'parametric'"><span>Parametric Plot</span></label>-->
            <!--</div>-->
            <!-- Calibration -->
            <div class="btn-group" ng-controller="ModalCalibrationCtrl" style="margin-left: 12px; display: inline-block;">
                <button class="btn btn-default btn-small dropdown-toggle" data-toggle="dropdown" ng-disabled="r1Disabled">
                    Calibration <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" role="menu">
                    <li><a ng-click="setCalibration(1, 03)" ng-disabled="r1Disabled">Acc/Magn/Gyro</a></li>
                    <li><a ng-click="setCalibration(1, 04)" ng-disabled="r1Disabled">Force</a></li>
                </ul>
            </div>
        </div>
    </div>
    <table>
        <tr>
            <td>
                <iolab-param-plot ng-repeat="plotParams in parametricPlots[1] | orderBy:'desc'"></iolab-param-plot>
                <iolab-chart ng-repeat="sensor in chartSensors[1] | orderBy:'desc'"></iolab-chart>
            </td>
            <td>
                <iolab-param-plot ng-repeat="plotParams in parametricPlots[2] | orderBy:'desc'"></iolab-param-plot>
                <iolab-chart ng-repeat="sensor in chartSensors[2] | orderBy:'desc'"></iolab-chart>
            </td>
        </tr>
    </table>
</div>