Skip to content
Snippets Groups Projects
send_actuator_commands.c 442 B
/*
 * send_actuator_commands.c
 *
 *  Created on: Feb 20, 2016
 *      Author: ucart
 */
 
#include "send_actuator_commands.h"
#include "util.h"
 
int send_actuator_commands(struct PWMOutputDriver *pwm_outputs, log_t* log_struct, actuator_command_t* actuator_command_struct) {
  int i;
  // write the PWMs to the motors

  for (i = 0; i < 4; i++) {
    pwm_outputs->write(pwm_outputs, i, actuator_command_struct->pwms[i]);
  }

  return 0;
}