-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EHL-2 i2c library #13
base: master
Are you sure you want to change the base?
Conversation
…module, updated readme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gnome-terminal --tab --command="bash -c '$openocd; $SHELL'" \ | ||
--tab --command="bash -c '$serial; $SHELL'" \ | ||
--tab --command="bash -c '$debug; $SHELL'" \ | ||
--disable-factory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be better to use something more portable like tmux
@@ -0,0 +1,12 @@ | |||
Initialisation: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for all files that are in common please address comments on #12 before merging this (all the adc stuff)
@@ -0,0 +1,144 @@ | |||
#include "i2c.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header comment
SysCtlPeripheralReset(sysctl_module_i2c[module]); | ||
} | ||
|
||
//GPIOIntRegister(i2c_module[module], i2cIntHandler) // might do interrupts later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code
} | ||
|
||
/* | ||
void i2c_write(i2cModule_t module, uint8_t msg[], size_t length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code
PUBLIC | ||
${science-mod_headers} | ||
) | ||
endfunction() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not the right place for this. Its not related to ros-echronos, probably belongs in the science-mod or /build-tools folder
include(${BUILD_TOOLS_DIR}/module_template.cmake) | ||
|
||
#set(CPP_FILES adc_test.cpp can_wait_task.cpp) | ||
set(CPP_FILES adc_test.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please include can_wait_task
|
||
/* Should never reach here, but if we do, an infinite loop is | ||
easier to debug than returning somewhere random. */ | ||
for (;;) ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments on #12
i2c_select(I2C0, module_num); // select multiplexer output | ||
// UARTprintf("Initialising science servo to neutral position\n"); | ||
// servo_init(SCIENCE_SERVO, SCIENCE_SERVO_PIN); | ||
// servo_write(SCIENCE_SERVO, SCIENCE_SERVO_PIN, NEUTRAL_POS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code
src/modules/science/science.cpp
Outdated
// Create the publisher | ||
ros_echronos::ROS_INFO("Data pub init\n"); | ||
owr_messages::science science_buffer_out[5]; | ||
ros_echronos::Publisher<owr_messages::science> science_pub("science/data", science_buffer_out, 5, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should all have topics starting with /
I'd actually try and match these with the voltmeter one in terms of naming as well
Also this repo is BSB + AGPL license |
@burrrrrr what's happening with this pr? |
Science module lib