Questions tagged [c]

A programming language commonly used for controlling robotic devices

Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

Aligning the coordinate systems of accelerometer and vehicle

I have an accelerometer located in an arbitrary position on a car. As the accelerometer already has a coordinate system by default, I want to find some method that allows transforming the data I have ...
0
votes
0answers
41 views

C program to find the rotation matrix (orientation) of a 6DOF robot from its end effector position and link parameters

I'm writing a C program to find the inverse kinematics of a 6DOF robot. I've been able to write it successfully based on the general concept of Inverse Kinematics using DH parameters (i.e. finding the ...
0
votes
0answers
18 views

MAVLink data stream to third-party system

I'm a completely beginner with pixhawk and MAVLink. So I want MAVLink (via AP Mission Planner) to send vehicle data e.g. attitude etc. in real-time to a third-party system that has a built-in ...
0
votes
1answer
140 views

6DOF Kinematics moveo

I asked on stackoverflow for the DH-Parameter for my robotic arm (moveo bcn3d). I also copied the arduino code of Skyentific (YouTuber). Modified it to match my settings but i still does not work. Can ...
0
votes
2answers
52 views

Is this encoder error expected?

I'm working with the iRobot Create 2. When I read the encoder count and sum it for total, I'm able to do so without apparent error. I've used this to 'successfully' estimate position combining with ...
0
votes
1answer
34 views

How can I allow for this code to switch from remote control to autonomous?

//ERROR: Task 'autonomous' is not defined at global scope level ...
0
votes
1answer
52 views

Interpret 560 byte msg from UR5 firmware 1.8 through TCP socket

I am trying to use the UR5 from my computer without having to write any script on the robot. For that, I opened a TCP socket as a client from my computer (in a C program), and the robot indeed does ...
2
votes
1answer
47 views

Problem with moving heavy computation into ISR's (dspic33E)?

I am controlling a robotic system using a dspic33E. I have a few PID control loops for motor control, several SPI slaves, and an I2C master that I communicate with. Currently, I use interrupts for ...
0
votes
1answer
191 views

Mavlink data parsing offline from buffer, on Linux in C

I am a beginner with mavlink and even pixahawk. I need to just parse mavlink data coming from pixahawk. (Mavlink v1, pixahawk v5plus), on Linux PC (Ubuntu). I have 2 processes in context of this ...
4
votes
2answers
172 views

How Can A Total Beginner Become A Skilled Roboticist?

Say the only computer skill you have is programming in C/C++...what all things would you have to learn in order to be an adept full stack roboticist, one who can single-handedly build an autonomous/AI ...
1
vote
1answer
863 views

control DC motor by Atmega and L298 code in Atmel Studio

I'm new to Atmel Studio. I used BASCOM-AVR until now. I know my question is very basic but I couldn't solve my problem by searching internet. I wrote a code in BASCOM (Basic laguage) to control two DC ...
-1
votes
1answer
24 views

time to Initialise or start sensor after power given [closed]

I am working on a time critical project. I use an optical sensor. I would like to know the initialisation or boot time the sensor after power given which will be in µS. How could I measure that?
2
votes
2answers
648 views

Problem with tuning PID for motor

I am trying to tune my PID to make my motor have a consistent output: input(pidOutput) => 100rpm I used the following step to tune my PID: Set all gains to zero. Increase the P gain until ...
2
votes
1answer
212 views

IRobot 690 - raw wheel encoder counts change with no movement command issued

I am using a Raspberry Pi 3, B+ pertinent libraries are WiringPi, with WiringSerial. Code is written in c. EDIT: the Serial connection is handled through GPIO 14(Tx) & 15(Rx), 5v (Tx) is stepped ...
1
vote
1answer
59 views

How can I run Tests/Simulations of Control and Motion Planning for a Bare Metal Robot?

I am using a raspberry pi to practice low level development with a differential drive robot; bare metal without an OS underneath. I've gotten to the point where I have a very small, single purpose ...
0
votes
2answers
144 views

explanation of kalman filter

I have gone through my lecture notes but I can't seem to figure out the five different steps of a Kalman filter and how these steps are Divided into prediction and correction and how the state and ...
2
votes
2answers
1k views

MPU9255 gyro data to roll pitch?

So I have -32768 to +32768 coming out from MPU9255 (gx,gy,gz) which is converted to 0-250 dps(degrees per second) using 131 which is Gyro's sensitivity. My question would be how do you use this data ...
2
votes
1answer
2k views

how to move my robot to the assigned coordinates

I am working on an ground surveillance robot using an Arduino mega for programming, am using components like the HMC5883L compass, Adafruit GPS for assigning of coordinates (latitude and longitude) ...
1
vote
1answer
84 views

Robot Graphical Representation in Real Time

I'm working with a robot intended to be placed in a tele-echography environment. To control the robot I'm using a 6D space mouse that control each degree of freedom of the robot. However, since the ...
1
vote
2answers
504 views

Robot won't work properly, claw will only go one way and will only open or close once per cycle

We're students trying to make a clawbot for a Science Seminar class. However, for some reason, whenever we try to move the arm or the claw in a certain way, it will lock up and only move that ...
2
votes
1answer
1k views

UR3 TCP/IP communication protocol

I'm currently programming a C socket for communicating via (Ethernet) TCP/IP with an UR3 robot which control software is version 3.3. I'm able to get raw data from the ports 30001,30002, and 30003. I ...
0
votes
2answers
96 views

TCP Communication with PCDuino

I'm working on a robot that is controlled by an xbox controller connected to a windows computer and commands are sent to a pcduino through a tcp connection. I have it working by sending a string of 1'...
1
vote
1answer
107 views

Programming A Rover [closed]

I am part of my College team which is planning to enter a Mars Rover Challenge. In the point of view of a programmer, where should I start? I know C is the main language NASA used for their Rover and ...
4
votes
1answer
803 views

simulation of robots

I am designing a new mechanism similar to robot arm. It would be a 6 or 7 axis with arms but not the same with traditional articulated arms. As a result, new DH matrix,and inverse kinematics involve. ...
-1
votes
2answers
1k views

Does C have advantages over C++ in robotics? [closed]

I want to build robots, and right now I aim to work with Arduino boards I know that they are compatible with c and c++, so was wondering which language is better for robotics in general? I know how ...
3
votes
1answer
489 views

Using 2x UARTs on STM32F072RB

I am trying to use 2x UARTs with ChibiOS on the STM32F072RB Nucleo Board. I initialized UART2 but I am still getting output on UART1 pins, which is totally weird. ...
0
votes
1answer
2k views

STM32_OC_Timing and IRQHandler

I created a program to simple time base delay (in seconds). I have problem: How to read a interrupt flag from channel 1 etc.? When I use ...
0
votes
1answer
578 views

C++ and Create 2

I am trying to use C++ to talk to the Create 2 robot. Does anyone have basic code to write/read from the Create 2 using C++ or C? I am having trouble with converting Create 2 commands (like ...
6
votes
2answers
2k views

BeagleBone - PRU questions

I will be using at least one programmable real-time unit (PRU) to send pulses to a stepper motor driver but before I begin, I am trying to lay out the structure of my programs. I am using this ...
1
vote
1answer
669 views

Find the difference between two consecutive sensor readings in real-time in C

I am working on a Micromouse and it has three sensors. Call it S1,S2 and S3. For now, I have to use S1. The idea is this S1 controls the left motor and S3, the right motor. S2 will detect wall in the ...
1
vote
1answer
76 views

How to programatically calibrate Turningy esc?

I have a Turnigy ESC and I am controlling it from AVR. Now I need to calibrate it to set the range of the input. With a servo tester I managed to calibrate it without any problems, more or less by ...
0
votes
1answer
10k views

Line follower robot program [closed]

I am working on a line follower robot as part of my Microelectronics project, and am confused over what sort of code to use to program the "pic18f" microcontroller I'm using. Can someone give me ...
2
votes
1answer
16k views

How can I interface my CMOS camera module to an Arduino? [closed]

I am totally new to the camera interface and usage in an Embedded project, and would like to use a CMOS vision sensor like this.This project further will be used to power a small robot with on-board ...
3
votes
1answer
169 views

Arduino Uno getting a type of "HANGED" while runing samll code of switc debounce and Serial print

I am using Arduino UNO to read a push button every time it is pressed.Earlier i was simply reading the Digital IO pin to read the count and then i faced the condition of switch debounce regarding ...
4
votes
3answers
3k views

Unable to read pushbutton press properly in Arduino

I am trying to use a push button in order to know and print number of time a push button is pressed using a counter.But everytime i press the button , counter get incremented to sometime 3 and ...
6
votes
7answers
30k views

Bluetooth module HC-05 giving ERROR :(0)

I am working right now with Arduino UNO and HC-05 bluetooth module.I followed the instruction given on this link for wiring. So there are 2 mode of working with this HC-05 module Simple serial ...
4
votes
5answers
23k views

Is it possible to run multiple loops at the same time? (Arduino)

I've got a code where I have a motor running back and forth and buttons connected to a scanner, when I press the buttons it causes the motor to stop and over rides it. I would like them to run ...
-1
votes
1answer
263 views

Where I can learn algorithms or and find examples of code for controlling a rover? [closed]

I am a programmer by profession and new to Robotics. I have studied ECE, so know electronics, but not very familiar with mechanical aspects of robotics. I am working on a learning project with Dagu ...
0
votes
3answers
1k views

H-Bridge using atmega8 microcontroller

I want to use my atmega8 uC as a h-bridge. Can anybody give me the source code using C, so that the microcontroller acts as an H-Bridge.
1
vote
2answers
346 views

programming pan-tilt unit with C

I am trying to write a C code for a pan-tilt unit model ptu-d46 using visual studio 2010 in Windows 7, but I can't find any tutorial or reference on how to do so. All the user's manual mentions is ...
4
votes
1answer
645 views

Wifly Shield Not Connecting

I recently asked a question about the juniper WiFi shield, and am now working with wifly from spark fun. I've been using an updated version of their experimental library, and have been attempting to ...
12
votes
4answers
10k views

Fixed point arithmetic on microcontrollers

Often we use microcontrollers to do things in our robots, but need to make some calculations in decimal. Using floating point variables is very slow, because a software floating point library is ...