python - circular motion and angle -


i'm trying make program(ai) determine circular action of vehicle. have data of current vehicle's speed , heading. after user provide desire angle , radius, vehicle start tile turn , circular drive. in step how can calculate radius of formed circle? wnat compare given , created radius.

it's bit hard give answer unless show code (such how user data inputed, how vehicle moves, , data formatting of current speed , heading).

here suggestion, if have heading and position, can find radius computing distance between 2 points whos' heading opposite of each other. next, take distance , cut in half (thus giving radius). assuming have position coordinate work with.

if don't have position value (or can't one), problem becomes harder solve , require calculus. if case, question better suited mathematics stack exchange; @ least until provide code with.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -