Skip to content

Instantly share code, notes, and snippets.

robot rock

Raffaello Bonghi rbonghi

robot rock
Block or report user

Report or block rbonghi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rbonghi / panther.rosinstall
Last active May 5, 2018
panther wstool installer
View panther.rosinstall
- git:
local-name: panther
- git:
local-name: panther_hardware
- git:
local-name: roboteq_control
- git:
rbonghi /
Created Apr 25, 2017
build FTDI module for Jetson TX2
# Prepare to build the FTDI module the NVIDIA Jetson TX2
if [ $(id -u) != 0 ]; then
echo "This script requires root permissions"
echo "$ sudo "$0""
# Go to the kernel sources
cd /usr/src/linux-headers-$(uname -r)
# Get the kernel configuration file
rbonghi /
Created Apr 20, 2017
Test between thread and sigint
import threading
import time
import signal, sys
def signal_handler(signal, frame):
exitFlag = 1
print(' You pressed Ctrl+C!')
# sys.exit(0)
rbonghi / i2c_test.c
Created Jul 24, 2015
Test i2c communication
View i2c_test.c
EEPROM_read(0, &rdBuffer[0], address, rdSize, pCallback);
EEPROM_write(0, wrBuffer, address, 2, wCallback);
rbonghi / line_count.c
Last active Aug 29, 2015
How to count a line
View line_count.c
#define BIT_LEN 7
float line_value(int line) {
int i;
int value = 0, count = 0;
for(i=0; i < BIT_LEN; ++i) {
int mask = (1 << (i));
if((line & (mask)) == (mask)) {
value += i:
You can’t perform that action at this time.