Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Ti comm dev #17

Draft
wants to merge 60 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
2a64324
modified sizes of objects
ihagedo Oct 26, 2020
cb14716
Modify makefile and SERIAL_TEST to try to find issue with makefile.
zghera Oct 27, 2020
301dc54
bag test
ihagedo Nov 7, 2020
7c0a32e
deleted outdated file
ihagedo Nov 8, 2020
a210a2b
added bagfile test
ihagedo Dec 1, 2020
15a8da1
Merge branch 'isaac_dev' of https://github.com/Autonomous-Motorsports…
ihagedo Dec 1, 2020
d10c1ff
added bagfile test data
ihagedo Dec 1, 2020
d09125d
Merge branch 'isaac_dev' of https://github.com/Autonomous-Motorsports…
ihagedo Dec 1, 2020
60bcc09
serial comm
ihagedo Feb 7, 2021
158bb48
Merge branch 'ti_comm_dev' of https://github.com/Autonomous-Motorspor…
Feb 9, 2021
7bd98b1
Serial Communiction files updated. ECU_TEST works well with debug opt…
Feb 15, 2021
6a3331c
Update .gitattributes
ihagedo Feb 25, 2021
379d173
cleaning lfs
ihagedo Feb 25, 2021
5397dc0
added libserialport submodule
ihagedo Feb 25, 2021
4055ea4
added readme
ihagedo Feb 26, 2021
6fd1038
Update README.md
ihagedo Feb 26, 2021
86a0c0e
Merge pull request #14 from Autonomous-Motorsports-Purdue/master
ihagedo Feb 27, 2021
8450f33
fixed structural issues for packet
ihagedo Feb 27, 2021
03b1c91
Merge branch 'isaac_dev' into ti_comm_dev
ihagedo Feb 27, 2021
d802305
Update amp_serial_jetson_ECU_TEST.cpp
ihagedo Feb 27, 2021
8add71c
Delete amp_serial_jetson_ECU_TEST.o
ihagedo Feb 27, 2021
c93c273
Delete amp_serial_jetson
ihagedo Feb 27, 2021
9ed89b1
Delete amp_serial_jetson_SERIAL_TEST.o
ihagedo Feb 27, 2021
3cde596
Update amp_serial_jetson.h
ihagedo Feb 27, 2021
e7c275e
added number parameters
Oct 4, 2021
525baf5
seperated library files
ihagedo Oct 13, 2021
de488c6
integrated new library into build
ihagedo Oct 30, 2021
454b19c
Merge branch 'ti_comm_dev' of https://github.com/Autonomous-Motorspor…
Oct 30, 2021
a79bb43
ecu test working properly
ihagedo Nov 13, 2021
2b55e73
Gitignore vim swap files
bitmaks Nov 21, 2021
5df3e51
Add read command from file functionality and delay flag to debugger
bitmaks Nov 21, 2021
2fb37c6
Improve help description and add exit after help menu
bitmaks Nov 21, 2021
dc38afc
Simplify speed and angle read function
bitmaks Dec 1, 2021
ceee7af
Refactor to be more readable
bitmaks Dec 1, 2021
0575b21
Merge pull request #25 from aaaakshat/ti_comm_dev
bitmaks Dec 4, 2021
9014549
Merge branch 'ti_comm_dev' of https://github.com/Autonomous-Motorspor…
Jan 23, 2022
86efbcb
restructured ti_comm dir
Jan 23, 2022
c58950b
Merge branch 'master' of https://github.com/Autonomous-Motorsports-Pu…
Jan 23, 2022
27c88aa
Added includes for SERIAL_TEST
Jan 23, 2022
73632e0
segrated old and new lib, resolved new lib build issues
Jan 23, 2022
0ef4c58
restructuring ti_comm/src
ihagedo Jan 26, 2022
39092fd
Add libserialport patch for linux configs
bitmaks Jan 30, 2022
06b75c8
Fix patch whitespacing issue
bitmaks Jan 30, 2022
bf52685
Add build script
bitmaks Jan 30, 2022
bd3067a
Modified build.sh to create libserialport obj files.
zghera Jan 30, 2022
ae501bf
Recognize if patch has been applied in build.sh
bitmaks Jan 31, 2022
0421949
FIx scriptDir error on linux
bitmaks Feb 1, 2022
6f3e346
Fix typo
bitmaks Feb 1, 2022
07232ea
Change shell to bash so source works.
zghera Feb 6, 2022
6d8fbc7
Don't fetch libserialport if patch has been applied
bitmaks Feb 6, 2022
0f613ca
Gitignore MacOS trash and debug files
bitmaks Feb 20, 2022
f87eca5
fixed ECU
ihagedo Feb 20, 2022
a2216e6
Merge branch 'ti_comm_dev' of github.com:Autonomous-Motorsports-Purdu…
ihagedo Feb 20, 2022
adeee69
added micro sleep
ihagedo Feb 20, 2022
9704f02
Fix serial pkt and control pkt memcpy issue
bitmaks Apr 3, 2022
a01c81d
Make control pkt use unsigned not signed char
bitmaks Apr 4, 2022
7bd6bfe
Add debug messages to serial and ecu test
bitmaks Apr 10, 2022
0368eb4
serial test work
bitmaks Apr 24, 2022
ec65cf8
Update amp_serial_jetson (please work)
bitmaks Apr 24, 2022
0bc09d4
Debugging 0 serial packets. ti_comm node is crapping out now.
Apr 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this empty file?

7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
# Editor files
.vscode/**

# PCB temporary and old files
/PCB/temp/**
/PCB/PCB_old/**

# Misc.
/src/slam_mode_goal/.idea/**
/src/sbg_to_imu/.idea/**
/src/kart_setup_odom_tf/.idea/**
/src/ti_comm/src/libserialport/**
/src/ti_comm/src/*.txt
/src/ti_comm/src/debug_**

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/ti_comm/src/libserialport"]
path = src/ti_comm/src/libserialport
url = https://github.com/sigrokproject/libserialport.git
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ rosdep install --from-paths src --ignore-src -r -y
To learn more about [rosdep](http://wiki.ros.org/rosdep), check out the [ROS wiki](http://wiki.ros.org/rosdep).

## Building
#### ROS
As mentioned in the [ROS core tutorials on building packages](http://wiki.ros.org/ROS/Tutorials/BuildingPackages), run the following two commands at the top of the directory (in AMP-v1) to build each of the ROS packages in our project.
```
catkin_make
source devel/setup.bash
```
#### LIBSERIALPORT
At the top of each branch your want to build the library for you should run the following command and then refer to the readme in src/ti_comm/src
```
git submodule update --init --recursive
```
Copy link
Member

@zghera zghera Feb 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
At the top of each branch your want to build the library for you should run the following command and then refer to the readme in src/ti_comm/src
```
git submodule update --init --recursive
```
The serial communication node relies on a serial communication library that needs to be built each time you check out a new branch (including master when initially cloning the repo). To properly build the library, run the following commands from the top of the repo directory:
1. `git submodule update --init --recursive`
2. `cd src/ti_comm/src/libserialport`
3. `./autogen.sh`
4. `sudo apt-get install autoconf`
5. `./configure`
6. `make`
7. `sudo make install`
8. Add it to your LD_LIBRARY_PATH with `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib"`
I would encourage you to make a bash alias/function so you don't have to run all of these commands on the creation of every new branch.

10 changes: 10 additions & 0 deletions src/ti_comm/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
How to Build Libserialport
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file as a whole if you agree with the suggestion to move its contents t the top-level README

1. Add Submodule From Root
* git submodule update --recursive
2. Build Library
* ./autogen.sh
* ./configure
* make
* sudo make install
3. Add Library to Path
*
19 changes: 10 additions & 9 deletions src/ti_comm/src/amp_err.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@
* Contains the pertinent error codes regarding serial transmission.
*/
typedef enum amp_err_code_t {
AMP_ERROR_NONE = 1, // successful operation
AMP_ERROR_NONE = 1, // successful operation

// Errors Regarding Serial Transmission (-1 -> -20)
AMP_SERIAL_ERROR_RX_TIMEOUT = -1, // timed out waiting for data
AMP_SERIAL_ERROR_CRC = -2, // indicates bad crc (invalid rx bytes)
AMP_SERIAL_ERROR_RX_NO_STOP = -3, // no stop byte received
AMP_SERIAL_ERROR_INIT = -4, // initialization errors
AMP_SERIAL_ERROR_TX = -5, // transmission issues
AMP_SERIAL_ERROR_RX = -6, // receive issues
AMP_SERIAL_ERROR_RX_TIMEOUT = -1, // timed out waiting for data
AMP_SERIAL_ERROR_CRC = -2, // indicates bad crc (invalid rx bytes)
AMP_SERIAL_ERROR_RX_NO_STOP = -3, // no stop byte received
AMP_SERIAL_ERROR_RX_NO_START = -3, // no start byte received
AMP_SERIAL_ERROR_INIT = -4, // initialization errors
AMP_SERIAL_ERROR_TX = -5, // transmission issues
AMP_SERIAL_ERROR_RX = -6, // receive issues

// Error Regarding PWM Module (-21 -> -40)
AMP_PWM_ERROR_BOUNDS = -21, // PWM Value out of Bounds
AMP_PWM_ERROR_BOUNDS = -21, // PWM Value out of Bounds

// Errors Regarding DAC Module (-41 - 60)
AMP_DAC_ERROR_BOUNDS = -41 // DAC Value out of Bounds (12 Bit)
AMP_DAC_ERROR_BOUNDS = -41 // DAC Value out of Bounds (12 Bit)
} amp_err_code_t;

#endif /* SRC_AMP_ERR_H_ */
Loading