Skip to content
Snippets Groups Projects
  1. Feb 05, 2017
  2. Feb 03, 2017
  3. Feb 02, 2017
  4. Feb 01, 2017
    • dawehr's avatar
      Refactored things like "controller_value" to "controller_parameter" · 2349fd1b
      dawehr authored
      - Realised that controller value may get confused with the actual value of the PID terms in the controller. To avoid this confusion in the future I have refactored things referencing the PID constant to now be called "control_parameter"
      - There are quite a few instances of variables that changed.
      - Sorry Jake
      2349fd1b
  5. Jan 31, 2017
  6. Jan 30, 2017
  7. 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
  8. Jan 28, 2017
  9. Jan 27, 2017
  10. Jan 24, 2017
Loading