firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
constants.h File Reference

Constants. More...

#include <stdint.h>
#include <stdbool.h>
#include "iem_utils.h"
Include dependency graph for constants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RAD_TO_DEG   57.295779F
#define DEG_TO_RAD   0.0174532925F
#define ADC_RAW16_TO_V   (3.3F / 65535.0F)
#define CAN_TIMEOUT_MS   100
#define APPS_LEFT_ZERO   -118.0F
#define APPS_RIGHT_ZERO   -2.0F
#define APPS_LEFT_DIR   -1.0F
#define APPS_RIGHT_DIR   1.0F
#define APPS_RANGE   22.0F

Functions

static float apps_right_deg_to_per (float deg)
static float apps_left_deg_to_per (float deg)

Detailed Description

Constants.

Author
Jamie Pruett :)
Version
0.1
Date
2024-11-01

Macro Definition Documentation

◆ ADC_RAW16_TO_V

#define ADC_RAW16_TO_V   (3.3F / 65535.0F)

◆ APPS_LEFT_DIR

#define APPS_LEFT_DIR   -1.0F

◆ APPS_LEFT_ZERO

#define APPS_LEFT_ZERO   -118.0F

◆ APPS_RANGE

#define APPS_RANGE   22.0F

◆ APPS_RIGHT_DIR

#define APPS_RIGHT_DIR   1.0F

◆ APPS_RIGHT_ZERO

#define APPS_RIGHT_ZERO   -2.0F

◆ CAN_TIMEOUT_MS

#define CAN_TIMEOUT_MS   100

◆ DEG_TO_RAD

#define DEG_TO_RAD   0.0174532925F

◆ RAD_TO_DEG

#define RAD_TO_DEG   57.295779F

Function Documentation

◆ apps_left_deg_to_per()

float apps_left_deg_to_per ( float deg)
inlinestatic
Here is the caller graph for this function:

◆ apps_right_deg_to_per()

float apps_right_deg_to_per ( float deg)
inlinestatic
Here is the caller graph for this function: