ifndef in all the h files
This commit is contained in:
parent
41f7b66f5d
commit
dc1aa96d9a
5 changed files with 19 additions and 11 deletions
|
@ -1,6 +1,9 @@
|
|||
//codé par Kévin Cavailles et Jasper Güldenstein
|
||||
#ifndef DC_MOTOR_H
|
||||
#define DC_MOTOR_H
|
||||
|
||||
void DC_MOTOR_Init(void);
|
||||
|
||||
// set a speed between -100 (full throttle clockwise) 0 (stop) and 100 (full throttle counterclockwise)
|
||||
void DC_MOTOR_SetSpeed(int speed);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef INCR_ENCODER
|
||||
#ifndef INCR_ENCODER_H
|
||||
#define INCR_ENCODER_H
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
void INCR_ENCODER_Init(void);
|
||||
|
||||
int INCR_ENCODER_IsAbsolute(void);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//codé par Kévin Cavailles et Jasper Güldenstein
|
||||
|
||||
#ifndef RF_INPUT_H
|
||||
#define RF_INPUT_H
|
||||
|
||||
// initializes the PWM input of the remote on PB6
|
||||
void RF_INPUT_Init(void);
|
||||
|
@ -12,3 +12,5 @@ int RF_INPUT_GetDutyTimeUs(void);
|
|||
|
||||
// returns the duty time of the PWM signal of the remote as a value between -100 and 100
|
||||
int RF_INPUT_GetDutyTimeRelative(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
//codé par Kévin Cavailles et Jasper Güldenstein
|
||||
|
||||
#ifndef SAIL_H
|
||||
#define SAIL_H
|
||||
|
||||
void SAIL_Init(void);
|
||||
|
||||
// sets the opening angle of the sail
|
||||
void SAIL_SetAngle(float angle);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#ifndef SERVO
|
||||
#define SERVO
|
||||
|
||||
//codé par Kévin Cavailles et Jasper Güldenstein
|
||||
#ifndef SERVO_H
|
||||
#define SERVO_H
|
||||
|
||||
void SERVO_Init(void);
|
||||
|
||||
|
|
Loading…
Reference in a new issue