"quad/git@git.ece.iastate.edu:bbartels/MicroCART_17-18.git" did not exist on "ef520ac4b39a48fd8cabf4a7234d413c7175b342"
Newer
Older
#include <err.h>
#include <stdio.h>
#include "frontend_setsetpoint.h"
#include "setpoint_common.h"
#include "frontend_common.h"
int frontend_setsetpoint(
struct backend_conn * conn,
struct frontend_setpoint_data * setpoint_data,
int mask)
{
if (conn == NULL) {
return -1;
}
char buffer[2048];
/* Set the P, I, and D */
"setheight %f\n",
setpoint_data->height) >= 2048) {
errx(0, "Buffer to small to format!");
}
ucart_backendWrite(conn, buffer);
}
"setlat %f\n",
setpoint_data->lat) >= 2048) {
errx(0, "Buffer to small to format!");
}
ucart_backendWrite(conn, buffer);
}
"setlong %f\n",
setpoint_data->longg) >= 2048) {