-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* synchronous communication, remove protobuf * accumulate ticks to send * receive config parameters at startup, close #13 * file cleanup * README.md * fix ticks type
- Loading branch information
Showing
173 changed files
with
12,398 additions
and
113,514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
doxygen/doxygen_new_line_after_brief=true | ||
doxygen/doxygen_use_brief_tag=false | ||
doxygen/doxygen_use_javadoc_tags=true | ||
doxygen/doxygen_use_pre_tag=false | ||
doxygen/doxygen_use_structural_commands=false | ||
eclipse.preferences.version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
8DF89ED150041C4CBC7CB9A9CAA90856=AE0564D014D0FF6F8CDA67667BE5E95D | ||
DC22A860405A8BF2F2C095E5B6529F12=AE0564D014D0FF6F8CDA67667BE5E95D | ||
eclipse.preferences.version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* otto_messages.h | ||
* | ||
* Created on: Aug 5, 2021 | ||
* Author: fdila | ||
*/ | ||
|
||
#ifndef INC_COMMUNICATION_OTTO_MESSAGES_H_ | ||
#define INC_COMMUNICATION_OTTO_MESSAGES_H_ | ||
|
||
typedef struct _ConfigMessage { | ||
uint32_t ticks_per_revolution; //x4 resolution | ||
float baseline; //in meters | ||
float left_wheel_circumference; //in meters | ||
float right_wheel_circumference; //in meters | ||
float kp_left; | ||
float ki_left; | ||
float kd_left; | ||
float kp_right; | ||
float ki_right; | ||
float kd_right; | ||
float kp_cross; | ||
float ki_cross; | ||
float kd_cross; | ||
uint32_t crc; | ||
} ConfigMessage; | ||
|
||
typedef struct _VelocityMessage { | ||
float linear_velocity; | ||
float angular_velocity; | ||
uint32_t crc; | ||
} VelocityMessage; | ||
|
||
typedef struct _StatusMessage { | ||
/* | ||
* Status codes: | ||
* 0 - waiting for config | ||
* 1 - running | ||
* 2 - error receiving config | ||
* 3 - error receiving vel | ||
* 4 - H-Bridge fault | ||
*/ | ||
uint16_t status; | ||
uint16_t delta_millis; | ||
int32_t left_ticks; | ||
int32_t right_ticks; | ||
uint32_t crc; | ||
} StatusMessage; | ||
|
||
#endif /* INC_COMMUNICATION_OTTO_MESSAGES_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
****************************************************************************** | ||
* @file crc.h | ||
* @brief This file contains all the function prototypes for | ||
* the crc.c file | ||
****************************************************************************** | ||
* @attention | ||
* | ||
* <h2><center>© Copyright (c) 2021 STMicroelectronics. | ||
* All rights reserved.</center></h2> | ||
* | ||
* This software component is licensed by ST under BSD 3-Clause license, | ||
* the "License"; You may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at: | ||
* opensource.org/licenses/BSD-3-Clause | ||
* | ||
****************************************************************************** | ||
*/ | ||
/* Define to prevent recursive inclusion -------------------------------------*/ | ||
#ifndef __CRC_H__ | ||
#define __CRC_H__ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* Includes ------------------------------------------------------------------*/ | ||
#include "main.h" | ||
|
||
/* USER CODE BEGIN Includes */ | ||
|
||
/* USER CODE END Includes */ | ||
|
||
extern CRC_HandleTypeDef hcrc; | ||
|
||
/* USER CODE BEGIN Private defines */ | ||
|
||
/* USER CODE END Private defines */ | ||
|
||
void MX_CRC_Init(void); | ||
|
||
/* USER CODE BEGIN Prototypes */ | ||
|
||
/* USER CODE END Prototypes */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __CRC_H__ */ | ||
|
||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.