Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Level 1
Level 1

# Azimuth and Elevation with 3rx antenna radar

Jump to solution

Hello,
Is there any function in the SDK that I can use to retrieve the Azimuth and Elevation angle from the radar data?
I know the SDK has the Range-angle image algorithm, but I didn't find any example that uses this algorithm. Is it possible to use Range-angle image for this? Is there any example that uses this algorithm?

Thanks,

Lucas

1 Solution
Moderator
Moderator

# Re: Azimuth and Elevation with 3rx antenna radar

Jump to solution

Hi, Lucas

Thank you for the information.

The Azimuth and Elevation angle can be retrieved by the Range-angle image algorithm.

1. There three antennas three antennas in an L shape for detecting azimuth and elevation angle, as shown in the picture:

2. The demo code provided by SDK, python script for example, can detect one of azimuth and elevation angle by enabling RX2&RX3 or RX1&RX3, so we can get both azimuth and elevation angle by switching these two Combinations, the part of the code is shown below, full demo can be found in folder :

Radar Development Kit\3.2.1.202205180921\application\RDK-TOOLS-SW.zip\RDK-TOOLS-SW\SDK\apps\py\examples\range-angle-map.py

"'rx_mask': 5, # activate RX1 and RX3"

``````if __name__ == '__main__':
num_beams = 27         # number of beams
max_angle_degrees = 40 # maximum angle, angle ranges from -40 to +40 degrees

config = {
'sample_rate_Hz': 1_000_000,       # 1MHZ
'rx_mask': 5,                      # activate RX1 and RX3
'tx_mask': 1,                      # activate TX1
'if_gain_dB': 33,                  # gain of 33dB
'tx_power_level': 31,              # TX power level of 31
'start_frequency_Hz': 60e9,        # 60GHz
'end_frequency_Hz': 61.5e9,        # 61.5GHz
'num_chirps_per_frame': 128,       # 128 chirps per frame
'num_samples_per_chirp': 64,       # 64 samples per chirp
'chirp_repetition_time_s': 0.0005, # 0.5ms
'frame_repetition_time_s': 0.15,   # 0.15s, frame_Rate = 6.667Hz
'mimo_mode': 'off'                 # MIMO disabled
}
``````

Hope that will help you.

Thanks,

Neo Lu

6 Replies
Moderator
Moderator

# Re: Azimuth and Elevation with 3rx antenna radar

Jump to solution

Hi, Lucas

Can we know which type of Radar device and the SDK you are using?

We can solve the problem smoothly with your feedback.

Thanks,

Neo Lu

Level 1
Level 1

# Re: Azimuth and Elevation with 3rx antenna radar

Jump to solution

Hello Neo Lu,

I am using the 60Ghz Radar BGT60TR13 and downloaded the last RDK version 3.2.1.202205180921

Moderator
Moderator

# Re: Azimuth and Elevation with 3rx antenna radar

Jump to solution

Hi, Lucas

Thank you for the information.

The Azimuth and Elevation angle can be retrieved by the Range-angle image algorithm.

1. There three antennas three antennas in an L shape for detecting azimuth and elevation angle, as shown in the picture:

2. The demo code provided by SDK, python script for example, can detect one of azimuth and elevation angle by enabling RX2&RX3 or RX1&RX3, so we can get both azimuth and elevation angle by switching these two Combinations, the part of the code is shown below, full demo can be found in folder :

Radar Development Kit\3.2.1.202205180921\application\RDK-TOOLS-SW.zip\RDK-TOOLS-SW\SDK\apps\py\examples\range-angle-map.py

"'rx_mask': 5, # activate RX1 and RX3"

``````if __name__ == '__main__':
num_beams = 27         # number of beams
max_angle_degrees = 40 # maximum angle, angle ranges from -40 to +40 degrees

config = {
'sample_rate_Hz': 1_000_000,       # 1MHZ
'rx_mask': 5,                      # activate RX1 and RX3
'tx_mask': 1,                      # activate TX1
'if_gain_dB': 33,                  # gain of 33dB
'tx_power_level': 31,              # TX power level of 31
'start_frequency_Hz': 60e9,        # 60GHz
'end_frequency_Hz': 61.5e9,        # 61.5GHz
'num_chirps_per_frame': 128,       # 128 chirps per frame
'num_samples_per_chirp': 64,       # 64 samples per chirp
'chirp_repetition_time_s': 0.0005, # 0.5ms
'frame_repetition_time_s': 0.15,   # 0.15s, frame_Rate = 6.667Hz
'mimo_mode': 'off'                 # MIMO disabled
}
``````

Hope that will help you.

Thanks,

Neo Lu

Level 1
Level 1

# Re: Azimuth and Elevation with 3rx antenna radar

Jump to solution

Hi Neo Lu thanks for the reply,

I see. My implemmentation needs to be done in C, but I see the SDK has similar algorithms with similar interfaces for C from those used in this python example.
So I need to configure the radar to receive from a pair of antennas read a frame and calculate one of the angles, and then reconfigure the radar changing the pair of receive antennas, read another frame to get another angle.
I shouldn't configure the radar to receive from all 3 antennas, is that correct?

Thank you,
Lucas

Moderator
Moderator

# Re: Azimuth and Elevation with 3rx antenna radar

Jump to solution

Hi, Lucas

C has similar algorithms and interfaces as python in the SDK.

The functions about angle calculation like "ifx_anglemonopulse_scalar_run()" and "ifx_anglemonopulse_vector_run()" contain only parameters of two antennas.

So it's not supported by SDK to receive from all 3 antennas in single testing cycle.

Thanks,

Neo Lu

Level 1
Level 1

# Re: Azimuth and Elevation with 3rx antenna radar

Jump to solution

Got it,

Thank you very much!