Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to avoid submarine(ship) from the obstacle using matlab?

Status
Not open for further replies.

dsrinath

Newbie level 4
Joined
Mar 5, 2012
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,309
hello..i need help in a MATLAB code..how can a ship move away from an obstacle under the sea..i am able to move ship till the obstacle but it should move away from it at some point i.e. a curve like shape at the end..plzz help me out..
 

Please give more details on your needs / user stories before you try to find solutions (code)
 

shipposition.png..this is what i got sir..but i need the green line to move away from obstacle using MATLAB..
 

i got that by writing a code in matlab sir..that is path of the ship..
 

Is the green line the path of the ship ?
Where are the obstacles ?
What obstacle information does the submarine have ?
 

Is the green line the path of the ship ?
Where are the obstacles ?
What obstacle information does the submarine have ?

yes sir..green line is the path of ship under the sea..that circled part is a obstacle...we have assume some range and bearing intially sir..
 

If the ships coordinates are (x1,y1) and the obstacles coordinates are (x2,y2)
Then the distance between the ship and obstacle is sqrt((x1-x2)^2 +(y1-y2)^2)
At a suitable distance the ship must stop or change direction
 
Last edited:
ship should go near the obstacle..instead of hitting it,should go aside..i need graph as such..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top