Questions tagged [motion]

Use this tag for physically moving systems. For example robots, or electronic or pneumatic actuators.

584 questions
0
votes
0 answers

Equation of motion by Runge-Kutta continuation method in Matlab

Equation of motion is given by: ,where m, b are stationary values of mass and damping. The time varying term f(t) is excitation power and q(t) is generalized displacement. I solved that: And I should to solve in MatLab via…
MrPitivier
  • 71
  • 9
0
votes
2 answers

Android accelerotmeter - detecting a person turning

I have started to play with interacting with the accelerometer and had an interesting question. Is there a way to reliably detect if a user is turning on the spot with the phone - and how much (e.g. degrees)? I tried looking it up and did not find…
amirsk
  • 11
  • 1
  • 6
0
votes
1 answer

IE wanting to download contents in IFrame

I have a problem with getting this to work and I am hoping someone can give me the solution. The below code is supposed to show a live video in the IFrame as you can see its pulling the video from an open port on my server. This works great in…
Yamaha32088
  • 4,125
  • 9
  • 46
  • 97
0
votes
1 answer

Extract trajectory/ground truth from video

Is there a software/toolbox in which I can extract the mobile robot trajectory from video recordings? My algorithm uses mobile robot to track a U-shaped trajectory, and I would like to mark/extract that trajectory from video. I used a stationary…
Makaroni
  • 880
  • 3
  • 15
  • 34
0
votes
1 answer

How to animate a sprite in WinForms c# to achive projectile motion?

I have already developed the algorithms behind the physics of projectile motion. My only problem is drawing on a form.How would I achieve this from scratch.
user1920206
  • 69
  • 10
0
votes
1 answer

Projectile Motion with Drag Force Matlab

I'm trying to model projectile motion with air resistance. This is my code: function [ time , x , y ] = shellflightsimulator(m,D,Ve,Cd,ElAng) % input parameters are: % m mass of shell, kg % D caliber (diameter) % Ve escape velocity (initial…
Erica
  • 105
  • 6
  • 13
0
votes
1 answer

Multiple motion events glitch and mix up

I have 3 seperate motion events in my code, 2 are for dynamically placed objects on the screen and 1 is for my Horizontal / Vertical scroller. The objects are placed in the scroller and whenever I try to scroll with the scroller, it glitches,…
Tom
  • 43
  • 7
0
votes
1 answer

Detecting horizontal mouse motion with Glut/OpenGL

I'm trying to detect horizontal mouse motion with OpenGL, so, when detected, execute a glutPostRedisplay(). Problem is that scene is also redrawed on vertical mouse movement. This is the code of the registered callbacks (note mouse_inix and…
alex
  • 121
  • 3
  • 9
0
votes
1 answer

rotate image with CMDeviceMotion

I'm trying to rotate image(triangle) to align it to gravity. So that one corner is always down. But nothing helps. Triangle going mad. double accelX = motion.userAcceleration.x; double accelY = motion.userAcceleration.y; rollingX = (accelX *…
Oleg Korban
  • 249
  • 3
  • 14
0
votes
1 answer

How to stop responding to a shake before a button is pressed?

i am currently making a iPhone app, and a animation reacts to a small shake, this is my code: static BOOL SJHShaking(UIAcceleration* last, UIAcceleration* current, double threshold) { double deltaX = fabs(last.x - current.x), deltaY = fabs(last.y -…
user1483652
  • 799
  • 1
  • 9
  • 16
0
votes
1 answer

Display layout on motion down and hide on motion up in android

I'm developing custom Media Controller and i have taken four button(play/pause,next,pre and bandwidth)inside a linear layout.I want when we touch screen then screen then this linear layout should visible for few second and after specified time this…
Dilip
  • 2,271
  • 5
  • 32
  • 52
0
votes
1 answer

How to detect light motion shake in iPhone?

I am creating an app and currently It has a reaction to a motion shake and this is the code for the shake: - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { if (event.type == UIEventSubtypeMotionShake) {} } Now the…
user1483652
  • 799
  • 1
  • 9
  • 16
0
votes
1 answer

How to calculate change in orientation on an iphone around 3 axis?

In most of the phones that uses android OS contains orientation sensor which forms a part of motion events. These sensors output the change in the orientation of the device at interval rate set by the user. But iphone doesnt have any orientation…
sam
  • 259
  • 1
  • 6
  • 22
0
votes
1 answer

Motion Streak for specific Sprites?

AndEngine GLES2 has an example for a full scene motion streak/blur which works great, but I would like to apply that motion blur to only specific sprites. Kind of like I don't want my characters to motion blur, just the spells(Sprites). This is what…
Gatekeeper
  • 6,708
  • 6
  • 27
  • 37
0
votes
2 answers

How to motion shake only after a button?

Possible Duplicate: How to stop responding to a shake before a button is pressed? I have a app and currently if you click the button 'Play' a label show's saying 'Shake to Play' the problem is I am a total beginner and I don't know how to order…
user1483652
  • 799
  • 1
  • 9
  • 16