Skip to content
Snippets Groups Projects
  1. Jan 29, 2017
    • Jake's avatar
      Restructured packet and command parsing · c9879e71
      Jake authored
      Prepared for parsing the new data formats. Data isn't formatted
      or parsed yet, though.
      
      No more memory leaks! Unfortunately each memory leak was replaced
      by a potential buffer overflow. Basically, the code was riddled
      with functions that accept a char ** data, which
      is malloced and then formatted. This was then leaked.
      Now, it accepts a char * data, which is allocated on the stack
      by the calling function. However, there is no bounds checking,
      because that is slightly more involved.
      Unverified
      c9879e71
    • Jake's avatar
      Compiling, but format is wrong · e2292305
      Jake authored
      See todos in format_command and parse_packet.
      Unverified
      e2292305
    • dawehr's avatar
      added the datatype parameter back into MessageType struct in commands.h... · fe49e94b
      dawehr authored
      added the datatype parameter back into MessageType struct in commands.h because Jake actually does need it.
      fe49e94b
    • Jake's avatar
      Implemented FindCommand · 5fab267f
      Jake authored
      Unverified
      5fab267f
    • dawehr's avatar
      removed the "data_type" struct from commands.h. · 0a1af382
      dawehr authored
      - removed the "ID", datatype parameters from MessateType struct in commands.h
      - made equivalent changes in commands.c
      0a1af382
    • dawehr's avatar
      - Made continuity changes throughout code base to match the new commands.c/h · 19fedcae
      dawehr authored
      - removed every use of the "subtype" term
      - made the "type" term 16 bits
      - made sure that every reference to a message type is 16 bits and used correctly
      - simplified commands enum names
      - implemented setcontrol callback function that switch on the controller and P, I, D, setpoint value to be set and then set them
      - partly implemented getcontrol callback function
      - NOTE: setpoint is a double. this causes some problems..
      - TODO: add setpoints for rate controllers
      - TODO: figure out what message ID I should send back when I get a getpid command
      19fedcae
  2. Jan 28, 2017
  3. Jan 27, 2017
  4. Jan 24, 2017
  5. Dec 05, 2016
  6. Dec 03, 2016
  7. Dec 02, 2016
  8. Nov 29, 2016
  9. Nov 28, 2016
  10. Nov 17, 2016
Loading