示例#1
0
文件: Robot.cs 项目: umrest/HERO-Code
        private void PackageTalonInfo()
        {
            if ((cntr++) % 100 != 0)
            {
                return;
            }

            NUC_SerialConnection.WriteDashboardState();

            ArrayList talonInfoList = new ArrayList();

            foreach (TalonInfo info in driveBase.GetTalonInfo())
            {
                talonInfoList.Add(info);
            }
            foreach (TalonInfo info in excavation.GetTalonInfo())
            {
                talonInfoList.Add(info);
            }

            NUC_SerialConnection.WriteMotorInfo(ref talonInfoList);
        }