Project

General

Profile

Revision 329

Added by Greg Tress over 16 years ago

added rudimentary battery request detection, for demonstartion only and not for permanent implementation. note that the current code detects battery lookup as a commond, not a request. once the request system works, this will be changed in the colonet dragonfly file and the applet. the server currently does not respond with a proper packet.

View differences:

trunk/code/projects/colonet/lib/colonet_dragonfly/colonet_dragonfly.c
165 165
      buzzer_off();
166 166
      break;
167 167

  
168
    // Battery
169
    case BATTERY:
170
      usb_puts("Got battery request.");
171
      wl_send_robot_to_robot_global_packet(colonet_pgh.groupCode, BATTERY,
172
        "34", 2, 0xA, 0);
173
      usb_puts("Sent.\n");
174
      break;
175

  
168 176
    case ORB_INIT:
169 177
      orb_init();
170 178
      break;

Also available in: Unified diff