Skip to content
Snippets Groups Projects
Commit c303ccd5 authored by burneykb's avatar burneykb
Browse files

making all header guards the same format

parent c5387ea4
No related branches found
No related tags found
No related merge requests found
Showing
with 58 additions and 53 deletions
#ifndef __callbacks_h
#define __callbacks_h
#ifndef __CALLBACKS_H
#define __CALLBACKS_H
/* Grab some stupid stuff from legacy code */
#include "type_def.h"
......@@ -8,4 +8,4 @@
typedef void (command_cb)(unsigned char *command,
int dataLen, modular_structs_t *structs);
#endif
#endif /* __CALLBACKS_H */
#ifndef __CB_DEFAULT_H
#define __CB_DEFAULT_H
#include "commands.h"
/* The cb_default used on the groundStation. This file MUST NOT BE INCLUDED
......@@ -8,3 +11,5 @@ int cb_default(unsigned char * command, int dataLen, modular_structs_t *structs)
{
return 0;
}
#endif /* __CB_DEFAULT_H */
\ No newline at end of file
#ifndef _COMMANDS_H
#define _COMMANDS_H
#ifndef __COMMANDS_H
#define __COMMANDS_H
#include <stdio.h>
#include <stdlib.h>
......@@ -48,4 +48,4 @@ float getFloat(unsigned char* str, int pos);
int getInt(unsigned char* str, int pos);
/* end legacy crap */
#endif
#endif /* __COMMANDS_H */
\ No newline at end of file
#ifndef _COMMUNICATION_H
#define _COMMUNICATION_H
#ifndef __COMMUNICATION_H
#define __COMMUNICATION_H
#include <stdio.h>
#include <string.h>
......@@ -16,4 +16,4 @@ int parse_packet(unsigned char * packet, unsigned char ** data, metadata_t * met
int processCommand(unsigned char *command, modular_structs_t *structs);
int logData(unsigned char *log_msg, unsigned char *formattedCommand);
#endif
\ No newline at end of file
#endif /* __COMMUNICATION_H */
\ No newline at end of file
......@@ -17,4 +17,4 @@
#define QUAD_PORT_ENV "UCART_QUAD_PORT"
#define QUAD_PORT_DEFAULT 8080
#endif
#endif /* __CONFIG_H */
\ No newline at end of file
......@@ -2,8 +2,8 @@
*
* Logger header file for holding info pertaining to loging to a file.
*/
#ifndef _LOGGER_H
#define _LOGGER_H
#ifndef __LOGGER_H
#define __LOGGER_H
#include <fcntl.h>
#include <time.h>
......@@ -18,4 +18,4 @@ int updateLogFile(const struct ucart_vrpn_TrackerData* );
void closeLogFile();
#endif
#endif /* __LOGGER_H */
\ No newline at end of file
......@@ -5,8 +5,8 @@
* Author: ucart
*/
#ifndef TYPE_DEF_H_
#define TYPE_DEF_H_
#ifndef __TYPE_DEF_H
#define __TYPE_DEF_H
/**
* @brief
......@@ -358,4 +358,4 @@ typedef struct {
//////// END MAIN MODULAR STRUCTS
#endif /* TYPE_DEF_H_ */
#endif /* __TYPE_DEF_H */
......@@ -33,4 +33,4 @@ static char* commandNames[MAX_COMMANDS] = {
"setsetpoint"
};
#endif
#endif /* __CLI_H */
\ No newline at end of file
#ifndef CLI_GETIMU_H
#define CLI_GETIMU_H
#ifndef __CLI_GETIMU_H
#define __CLI_GETIMU_H
#include "frontend_getimu.h"
int cli_getimu(struct backend_conn * conn, int argc, char ** argv);
#endif
\ No newline at end of file
#endif /* __CLI_GETIMU_H */
\ No newline at end of file
#ifndef CLI_GETPID_H
#define CLI_GETPID_H
#ifndef __CLI_GETPID_H
#define __CLI_GETPID_H
#include "frontend_getpid.h"
int getValues(struct backend_conn *, struct frontend_pid_data *);
int cli_getpid(struct backend_conn * conn, int argc, char ** argv);
#endif
\ No newline at end of file
#endif /* __CLI_GETPID_H */
\ No newline at end of file
#ifndef CLI_MONITOR_H
#define CLI_MONITOR_H
#ifndef __CLI_MONITOR_H
#define __CLI_MONITOR_H
#include <time.h>
......@@ -11,4 +11,4 @@ int cli_monitor(struct backend_conn * conn, int argc, char **argv);
// Return 0 on success and 1 otherwise
int monitor(struct backend_conn * conn);
#endif
\ No newline at end of file
#endif /* __CLI_MONITOR_H */
\ No newline at end of file
#ifndef CLI_SETPID_H
#define CLI_SETPID_H
#ifndef __CLI_SETPID_H
#define __CLI_SETPID_H
#include "frontend_setpid.h"
int cli_setpid(struct backend_conn * conn, int argc, char ** argv);
#endif
#endif /* __CLI_SETPID_H */
\ No newline at end of file
#ifndef CLI_SETSETPOINT_H
#define CLI_SETSETPOINT_H
#ifndef __CLI_SETSETPOINT_H
#define __CLI_SETSETPOINT_H
#include "frontend_setsetpoint.h"
int cli_setsetpoint(struct backend_conn * conn, int argc, char ** argv);
#endif /* CLI_SETSETPOINT_H */
#endif /* __CLI_SETSETPOINT_H */
\ No newline at end of file
#ifndef FRONTEND_COMMON_H
#define FRONTEND_COMMON_H
#ifndef __FRONTEND_COMMON_H
#define __FRONTEND_COMMON_H
#include <stdlib.h>
struct backend_conn;
......@@ -19,4 +19,4 @@ char * ucart_backendGetline(struct backend_conn * conn);
/* Write a line to the backend */
int ucart_backendWrite(struct backend_conn * backend, const char * line);
#endif
#endif /* __FRONTEND_COMMON_H */
\ No newline at end of file
#ifndef FRONTEND_GETIMU_H
#define FRONTEND_GETIMU_H
#ifndef __FRONTEND_GETIMU_H
#define __FRONTEND_GETIMU_H
#include "frontend_common.h"
#endif
\ No newline at end of file
#endif /* __FRONTEND_GETIMU_H */
\ No newline at end of file
#ifndef FRONTEND_GETPID_H
#define FRONTEND_GETPID_H
#ifndef __FRONTEND_GETPID_H
#define __FRONTEND_GETPID_H
#include "frontend_common.h"
#include "pid_common.h"
......@@ -23,4 +23,4 @@ int frontend_getpid(
struct frontend_pid_data * pid_data);
#endif
#endif /* __FRONTEND_GETPID_H */
\ No newline at end of file
#ifndef FRONTEND_SETPID_H
#define FRONTEND_SETPID_H
#ifndef __FRONTEND_SETPID_H
#define __FRONTEND_SETPID_H
#include "pid_common.h"
#include "frontend_common.h"
......@@ -17,4 +17,4 @@ int frontend_setpid(
#define SET_ALL (SET_P | SET_I | SET_D)
#endif /* SET_ALL */
#endif /* FRONTEND_SETPID_H */
\ No newline at end of file
#endif /* __FRONTEND_SETPID_H */
\ No newline at end of file
#ifndef FRONTEND_SETSETPOINT_H
#define FRONTEND_SETSETPOINT_H
#ifndef __FRONTEND_SETSETPOINT_H
#define __FRONTEND_SETSETPOINT_H
#include "setpoint_common.h"
#include "frontend_common.h"
......@@ -17,4 +17,4 @@ int frontend_setsetpoint(
#define SET_ALL (SET_LAT | SET_LONG | SET_HEIGHT)
#endif /* SET_ALL */
#endif /* FRONTEND_SETSETPOINT_H */
\ No newline at end of file
#endif /* __FRONTEND_SETSETPOINT_H */
\ No newline at end of file
#ifndef _FRONTEND_TRACKER_H
#define _FRONTEND_TRACKER_H
#ifndef __FRONTEND_TRACKER_H
#define __FRONTEND_TRACKER_H
#include "frontend_common.h"
......@@ -24,4 +24,4 @@ struct frontend_tracker_data {
int frontend_track(struct backend_conn * conn,
struct frontend_tracker_data *data);
#endif
#endif /* __FRONTEND_TRACKER_H */
\ No newline at end of file
#ifndef PID_COMMON_H
#define PID_COMMON_H
#ifndef __PID_COMMON_H
#define __PID_COMMON_H
enum pid_controller {
PID_PITCH,
......@@ -23,4 +23,4 @@ struct frontend_pid_data {
};
#endif
#endif /* __PID_COMMON_H */
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment