       checked: false
 
     menubar.append new gui.MenuItem
-      label: 'Field Control'
+      label: 'Robot Control'
       submenu: fieldControlMenu
 
     debugMenu = new gui.Menu()

# huge hack, needs to be kept outside of Angular
require = window.requireNode

angular.module('daemon.menubar', ['daemon.fieldcontrol'])

.service('menubar', [
  'fieldcontrol'
  (fieldcontrol) ->
    gui = require('nw.gui')
    win = gui.Window.get()
    menubar = new gui.Menu(type: 'menubar')

      menubar.createMacBuiltin('Daemon')

    fieldControlMenu = new gui.Menu()

    fieldControlMenu.append new gui.MenuItem
      label: 'Teleop'
      click: -> radio.setTeleoperated()
      key: '1'
      modifiers: if onMac then 'cmd-shift' else 'ctrl-shift'

    fieldControlMenu.append new gui.MenuItem
      label: 'Autonomous'
      click: -> radio.setAutonomous()
      key: '2'
      modifiers: if onMac then 'cmd-shift' else 'ctrl-shift'

    fieldControlMenu.append new gui.MenuItem
      label: 'Emergency Stop'
      click: -> radio.emergencyStop()
      key: 'e'
      modifiers: if onMac then 'cmd' else 'ctrl'

    fieldControlMenu.append new gui.MenuItem type: 'separator'

    fieldControlMenu.append new gui.MenuItem
      type: 'checkbox'
