Advanced Distributed Systems module at HSLU
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

40 lines
1.0 KiB

/*
* robo_wrapper.h
*
* Created on: 09.12.2022
* Author: jonas
*/
#ifndef MAIN_ROBO_WRAPPER_H_
#define MAIN_ROBO_WRAPPER_H_
#include <stdint.h>
#include <stdbool.h>
typedef struct {
unsigned char state[20];
unsigned char values[50];
} LineSensorCalibData_t;
/* Sets the robot to automatic / manual mode */
bool Robo_Wrapper_SetMode(bool automatic);
/* Lets the robot turn to a specific angle and then proceed straight with its previous movement */
bool Robo_Wrapper_Nav_Turn(int16_t angle);
/* Sets the movementspeed of the robot */
bool Robo_Wrapper_Nav_Move(int16_t speed);
/* Stops the movement of the robot */
bool Robo_Wrapper_Nav_Stop(void);
/* Starts / stops robo line sensor calibration. true = start, false = stop */
bool Robo_Wrapper_Calibration(bool start);
/* gets calibration value of line sensor */
bool Robo_Wrapper_GetCalibrationValues(LineSensorCalibData_t *data);
/* gets battery voltage of robo */
bool Robo_Wrapper_GetBatteryVoltage(unsigned char *voltage);
#endif /* MAIN_ROBO_WRAPPER_H_ */