forked from joshpfosi/trst_algorithm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelper.h
More file actions
23 lines (19 loc) · 784 Bytes
/
helper.h
File metadata and controls
23 lines (19 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* File: helper.h
* By: Joshua Pfosi, Date: Sat May 10
* Last Updated: Sun May 11 02:15:50
*
* Organized helper functions
*/
#include <stdlib.h>
#include <stdio.h>
#include "state_rep.h"
/* helper functions */
Angle ang_btwn_angles (Angle a1, Angle a2);
Angle ang_to_wind (Angle wind, Angle heading);
Angle ang_btwn_positions (Position pos1, Position pos2);
double distance_btwn_positions (Position pos1, Position pos2);
int is_upwind (Angle wind_ang, Angle ang_to_waypt);
double degrees_to_radians (double deg);
double radians_to_degrees (double rad);
Angle standardize (Angle a);
FILE *open_or_abort (char *filename, char *mode);