jaeyoung-lim / rosppm Goto Github PK
View Code? Open in Web Editor NEWGenerating ppm signal to interface with an RC transmitter
License: Other
Generating ppm signal to interface with an RC transmitter
License: Other
Hi again!
Sorry to bother you again!
I want to send commands through the radio transmitter (I have the same as you TG 9x).
So I am using this node to send the ppm signal to the transmitter through the pins, avoiding the trainer port, cause the transmitter is very old and I have serious doubts that it works fine.
I have set up a small test bench with the receiver and a servo to make sure the communication is good.
However, whenever I try to publish to the set_ppm topic, it doesn´t work. I can see with an oscilloscope that the signal in pin 10 changes.
The transmitter and receiver work properly so I think it might be that there is something I am not doing right while publishing.
To publish the topic I use:
rostopic pub --once /rosppm_interface/joy_set_channels sensor_msgs/Joy '{ header: {seq: 1, stamp: {secs: 0, nsecs: 0}, frame_id: "1"}, axes: [650.0,650.0,650.0, 650.0, 650.0,650.0], buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}'
(650 cause it is the minimum value attending the Arduino script quotes)
I would like to control any single channel.
What is what I am doing wrong??
I can read the channels properly, but I cannot publish them.
Problem launching rosserial_python package in rosppm
Issue posted in the rosserial repository
Hi Jaeyoung,
First, thanks for making the code available!
I may be misunderstanding part of the install process, but when I try to flash the rosppm_arduino.ino on an arduino using the arduino IDE, get at missing file error:
rosppm/ppm_io.h missing
Is this file with another library? The installation instruction say:
catkin_make --pkg usb2ppm_ros
I checked your usb2ppm package, and I do not see the ppm_io.h file.
Thanks! I would much prefer to use your code over rewriting the same thing :)
I've tried and followed all of the steps given and connected a Turnigy 9X via an Arduino Uno on ROS Kinetic. I am new to ROS so please point out anything that doesn't seem correct. The Arduino has the 'rosppm_arduino' program included in the master branch.
Now firstly, I would like to point out that in the launch/read_Tx.launch file, the baud rate is set to 115200 but it is 57600 in launch/send_Tx.launch file. Is this how its supposed to be? It shows an 'Unable to sync' error for read_Tx.launch at 115200 and connects when I change it 57600.
After launching roslaunch rosppm send_Tx.launch
and roslaunch rosppm read_Tx.launch
I do not see /rosppm/channels
created as mentioned in the instructions. The only topics listed are:
srijal@Srijal-PC:~$ rostopic list
/diagnostics
/rosout
/rosout_agg
/rosppm_arduino/read_ppm
/rosppm_arduino/set_ppm
/rosppm_interface/joy_read_channels
/rosppm_interface/joy_set_channels
Also I get this error sometimes:
[ERROR] [1504288634.686663]: Parameter /rosppm/mode does not exist
and on rostopic echo /rosppm_arduin/read_ppm
I get the following output continously:
---
header:
seq: 37
stamp:
secs: 0
nsecs: 0
frame_id: ''
a: -2.294921875
b: -2.294921875
c: -2.294921875
d: -2.294921875
e: -2.294921875
f: -2.294921875
g: 0.0
h: 0.0
i: 0.0
---
And it doesnt change when I move anything on my Transmitter (I have removed the RF module from the back as it is normally done when using simulators).
What am I doing/What should I try next?
New Feature: Read Channel Values
Implementations should include
Hello Jaeyoung-Lim,
Would be nice to see the Arduino connected as a device on the I2C-bus (multi device bus) instead of the serial-bus (single device bus), this way the serial bus stays available.
Regards,
Roland Penning
Hi there!
Thank you for releasing the code!
I am having some problem will flashing the arduino.
May be the problem comes from the installation commands.
I follow the github commands, however when I reach the last line
catkin_make --pkg usb2ppm_ros
that yields:
Packages "usb2ppm_ros" not found in the workspace
so I correct it by changing usb2ppm_ros into rosppm that apparently works fine.
However when I try to flash the arduino, I get the following error:
rosppm/ppm_io.h: No such file or directory
I tried the solution given in the issue https://github.com/Jaeyoung-Lim/rosppm/issues/6
but it doesn´t work.
So I cannot flase the arduino.
Thank you in advance
ROS commands are not getting into the command values
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.