1,426 questions
1
vote
0
answers
51
views
Issues interfacing BNO086 with STM32 using CubeIDE (I²C + interrupt/reset)
I am currently trying to read the angles from a BNO086 IMU using an STM32 microcontroller (using CubeIDE), and I use this library : https://www.grozeaion.com/electronics/stm32/stm32-i2c-library-for-...
0
votes
0
answers
26
views
Visual studio templates angle brackets indentation
how do I get visual studio to add indentation so that this
using TExample = MyClassA<
MyClassB<
MyClassC,
MyClassD>,
MyClassE>;
is formatted by VS to
using TExample = ...
0
votes
0
answers
59
views
Change coordinate system from top to bottom left corner for angles
I want in Java to change the coordinate system for an Arc2D which has a startAngle and an angleExtent from the Java coordinate system (reference is top left corner) to another which is bottom left ...
0
votes
0
answers
55
views
Is there a good way to cut out the "unnecessary" segments of my Paper.js path when connecting multiple paths at specific angles?
Here are some examples to visualize the problem
The blue circles show the segments that I want to remove so that I have a "real" connection between the two rectangles.
This problem occurs ...
0
votes
0
answers
167
views
How to calc the correct angle in OpenCV and rotate image based on coordinates?
I'm working on a project and I'm detecting every table in an image via OpenCV. I was able to detect, extract and crop the tables, so I already have the cropped images with all the tables.
Now my ...
0
votes
1
answer
87
views
How to calculate the angle from a point to midpoint of a line?
I want to calculate the angle formed by a line segment from p1 to the midpoit of the line connecting p2 and p3, and the line formed by p2 and p3. I used code as below, but the result seems not correct,...
0
votes
1
answer
102
views
Jump angle computation in Python
I have issues to understand how to exactly compute in Python what I call a "jump angle". So basically, I have a map tracking of several tracks (of transcription factors) composed of the ...
0
votes
0
answers
27
views
Double values for triangle angles returning as NaN if 2+ side lengths are the same
I'm trying to write a program that will calculate the angles of a triangle using the side lengths (via the Law of Cosines, Law of Sines, and Triangle Sum Theorem). It works just fine if all the side ...
0
votes
1
answer
49
views
How can I place a line exactly on the Y-axis?
Suppose we have several points located in three-dimensional space. Now, we specify two points, named point1 and point2. To simplify the problem, we consider these two points as a line. Now we move ...
0
votes
2
answers
126
views
Path rotate transformation problem in MAUI
When I change the angle to 90 I expect this:
but I get this instead:
What am I doing wrong?
XAML:
<Grid WidthRequest="100" HeightRequest="100" HorizontalOptions="Start&...
0
votes
1
answer
82
views
Determining the angle in python turtle graphics [closed]
The task is to draw an equilateral triangle that will be positioned in the first quadrant, so that it is symmetrical with respect to the bisector of the first and third quadrants.
Image of triangle
...
1
vote
1
answer
151
views
Angle wrapping error (mishandling 0, pi, -pi)
I am trying to wrap the angle to be within the range of [-pi, pi]. I have tried many variations of the following code, it should be a very easy task, however, if the angle is already pi, -pi, or 0, it ...
0
votes
1
answer
80
views
Calculating angle between 3 points give weird result according pattern angle
I want to calculate the angle between two segments in 2D space. The two segments are defined by AB and BC.
The result of the calculation seems to vary according to the orientation of the vectors.
...
0
votes
0
answers
66
views
Cordic Cosine function for AOA estimation. I get the PDOA estimation in terms of degree and would want to find the cosine and arcsine for the AOA
from math import atan, pi
import numpy as np
def cosine_fun(input):
k = 1.646
bitw = 15
inpLUK = np.zeros(bitw + 1)
x = 1/k
y = 0
z = 0
for j in range(bitw):
tmp =...
1
vote
0
answers
37
views
calculate angle and distance between two sets of points [duplicate]
I have a start point (A, B, ...) and several end points (1, 2, 3, ...) connected to the start point, and I want to get the angle between a given start point and its associated end points, and the ...