#How do I pair a frsky receiver to a Radiomaster Tx12?

709 messages · Page 1 of 1 (latest)

balmy dagger
#

and youtube is not helping

devout elbow
#

Which TX12 variant did you get?

#

and what receiver is in the drone?

#

oh, SPI FRSKY, I see now

#

still need to know the TX12 variant.

balmy dagger
devout elbow
#

okay, so the original V1

#

There are multiple protocols that will work

#

Do you have Betaflight Configurator? @balmy dagger

balmy dagger
#

No

devout elbow
#

You sort of need that to configure the drone

balmy dagger
#

what is it

#

a software?

devout elbow
#

downloads are at the very bottom

#

pick the one that's correct for your OS

#

The flight controller of the drone runs Betaflight

balmy dagger
devout elbow
#

this program lets you configure it via USB

balmy dagger
#

is this it?

devout elbow
#

I recommend updating it to the latest one

balmy dagger
#

Ok

#

this looks right

devout elbow
#

Just make sure that it's 10.8

balmy dagger
#

yep

#

I have to go for now ill be back later

#

but thanks for the help cya

devout elbow
#

tag me when you come back

#

Possible protocol combinations:
Drone - Radio
FRSKY_D - FrSkyD (or FrSkyX) D8
FRSKY_X - FrSkyX D16
SFHSS - Futaba S-FHSS
Redpine - Redpine

Drone side is configured in Betaflight Configurator - Receiver tab.
Radio side is configured in Model Setup (MDL button, PAGE>), Internal RF section (scroll down), Mode

#

I'd recommend SFHSS, as it's pretty smooth and supported by both sides.

balmy dagger
#

@devout elbow Im back

devout elbow
balmy dagger
#

are you available?

devout elbow
#

sup

balmy dagger
#

alright

#

so how do I do this

#

I have the software downloaded

devout elbow
#

let's start with the radio

balmy dagger
#

ok

devout elbow
#

on your radio, from the main screen, press MDL

#

that should get you into MODEL SELECTION

balmy dagger
#

yep

devout elbow
#

press PAGE>

balmy dagger
#

alr

devout elbow
#

now you should be in MODEL SETUP

balmy dagger
#

in it

devout elbow
#

scroll down until you run across Internal RF

balmy dagger
#

ok I see it

#

says mode multi

devout elbow
#

send a pic

balmy dagger
#

and type frsky D

devout elbow
#

ok what does it say in Status?

balmy dagger
#

V1.3.2.82 AETR

devout elbow
#

ok good

#

There are multiple protocols in which a FRSKY SPI receiver will bind

#

if you want smooth responsive controls, then SFHSS is a good idea

#

not sure how the range compares to FRSKY D8

balmy dagger
#

it says subtype D8

devout elbow
#

Let's start with SFHSS because frankly I just had more luck with that

#

Set it to Futaba S-FHSS

balmy dagger
#

I dont see an option for that

#

would it be under protocol or subtype

devout elbow
#

type should be Futaba

#

not sure if it will be directly Futaba SFHSS or with some subtype thing

balmy dagger
#

ok got it

#

and the subtype set itself to sfhaa

#

sfhss

devout elbow
#

ok

#

now, you have Betaflight Configurator?

#

Start it up

#

and then connect the drone via USB

balmy dagger
#

this is what I see

devout elbow
#

good

#

connect the drone via USB

#

with that you should hopefully see it come up in the top right

#

where "Manual Selection" currently sits

balmy dagger
#

do I need the battery?

devout elbow
#

no

balmy dagger
#

damn it

#

the micro usb is inside the drone

#

i might have to find a smller cable or open it

devout elbow
#

hmm

#

sometimes the drone comes with a weird USB extension

balmy dagger
#

bam

#

removed a motor

#

we good

#

ok the drone is beeping

#

and I see a picture of a drone on the flight controller

devout elbow
#

ok great

#

let's start by doing something smart

#

make the window larger so that you can see the labels of the tabs on the left

balmy dagger
#

done

devout elbow
#

go to CLI tab

#

in there you can send commands to the flight controller directly

balmy dagger
#

im on it

devout elbow
#

at the bottom, enter this command:
diff all

#

send it by pressing enter

#

it should print out a wall of text

#

Then, press Save to file

#

and save it somewhere where you won't lose it

#

that's your backup of the drone's configuration as it came from the factory

balmy dagger
#

done

#

saved

devout elbow
#

If you ever need to restore it, you just use the Load from file button

balmy dagger
#

I see

devout elbow
#

These backups can save your bacon 😉

#

moving on

#

when you leave the CLI tab, the drone will reboot

#

that's normal

#

it will disconnect you

#

Go into Receiver tab

#

and send a screenshot

balmy dagger
#

it reset

#

and im on the receiver tab

devout elbow
#

I just want a screenshot so I can better navigate you

balmy dagger
devout elbow
#

that's not the receiver tab 😄

balmy dagger
#

hehe

devout elbow
#

Okay so

#

on the right side, "Receiver"
change FRSKY_D to SFHSS

#

and then press Save

balmy dagger
#

it rebooted

devout elbow
#

that's normal

#

just a warning

#

if you leave a tab without saving

#

you will lose the changes

balmy dagger
#

oh ok

devout elbow
#

in CLI, saving is done by sending the save command

#

once it boots, go back to Receiver tab

#

on your radio, in Internal RF, select the [BIND] option

#

don't click it yet

balmy dagger
#

do I need to go to CFI?

devout elbow
#

no

balmy dagger
#

ok

devout elbow
#

I said Receiver tab

#

in Receiver tab, click the Bind Receiver button at the bottom

#

after you do that, click [BIND] on the radio

balmy dagger
#

the drone is beeping loud

#

is it bnd

#

on the radio

devout elbow
#

yeah

#

some radio screeens are too small

balmy dagger
#

mode

devout elbow
#

so they shorten it to [BND]

devout elbow
balmy dagger
#

theres options for stuff like

#

telem

#

on or off

devout elbow
#

that's all?

#

I'd do telem off, SPI receivers often hate sending telemetry back

balmy dagger
#

1-8 telem on and off

#

and 9-16

#

telem on or off

devout elbow
#

that sounds like FRSKY options to me

#

do you have the radio set to Futaba SFHSS?

#

didn't know that Futaba had these options as well

#

well, what do I know

#

1-8 Telem OFF in that case

balmy dagger
#

nvm it went back

#

but i changed it

#

now the radio is beeping

#

i pressed bind

devout elbow
#

once it stops beeping

#

check if you see stick movements in BF Receiver tab

balmy dagger
#

its still beeping

devout elbow
#

hmm, odd, I'm used to it beeping for like 3s

#

in that case just press exit or return or whatever button your radio has for that

balmy dagger
#

ok

devout elbow
#

sooooOOOO?

balmy dagger
#

i went back

balmy dagger
#

where is that lol

#

oh

#

it works]

devout elbow
#

do these move?

#

when you move the raido sticsk?

balmy dagger
#

the drone is doing flips on screen

#

yeah the numbers change

#

when i move the sticks

devout elbow
#

send a new screenshot

#

with the throttle all the way down

balmy dagger
devout elbow
#

okay the channel map is wrong

#

and channel centers too

#

annoying

#

oh well

#

change this to AETR1234

#

and save

#

and then check if the sticks now match up with their names in BF

balmy dagger
#

im not even moving the sticks

#

and the numbers r jumping

devout elbow
#

?

balmy dagger
#

its going up and down

devout elbow
#

ugh

#

that shit again

#

how close is the radio to the drone?

balmy dagger
#

right beside

#

about 10 inches

devout elbow
#

see if moving it a bit further away fixes the on/off behaviour

balmy dagger
#

moved it 5 feet over

#

same thing

devout elbow
#

hmmmm

#

sometimes this kind of misbehaviour happens when connected to USB

#

but not when running normally..

#

idk

balmy dagger
#

hmm

#

should we try

#

to fly it

devout elbow
#

For the sake of keeping this short, I'd try to switch it to FRSKY_D (and FRSKY D8 on the radio)
it's an inferior protocol, but worth a shot

balmy dagger
#

numbers r still now

devout elbow
#

hm?

#

hmm

#

nvm then

balmy dagger
#

the drone is spinning very slow in a diagonal direction

#

hard to explain

devout elbow
#

I get it, don't worry

#

do me a favor

#

and send a screenshot with all of the sticks moved down left

#

or just tell me if all of the values go to 2020

balmy dagger
#

its spinning crazy

devout elbow
#

okay, that's not difficult to deal with then

#

do any of the switches change the AUX1-4 values?

balmy dagger
#

when I move the sticks no

#

BUT

#

its doing the on off thing again

devout elbow
#

we'll see

#

I'll show you how to make a backup setup for FRSKY_D mode instead

#

but that usually suffers this issue more lol

#

anyway

#

First we have to fix one mildly annoying thing

#

all of your channels are inverted

#

or maybe

#

no, let's do the switches first.

#

On your radio, go into the Mixes page

balmy dagger
#

where is that

devout elbow
#

from Model setup, PAGE>

#

two times iirc

#

maybe more

balmy dagger
#

ok

#

founs it

#

found

devout elbow
#

is there anything assigned on CH5+?

balmy dagger
#

says 100 SE

#

in the downward position

#

I believe

devout elbow
#

can you send a photo?

#

so that CH5-8 are visible

balmy dagger
devout elbow
#

I mean

#

you had one job

#

xD

balmy dagger
#

-_-

devout elbow
#

I'm not seeing CH8

#

just write it

balmy dagger
devout elbow
#

this is where the B and C come from in SB and SC

#

the E and F are on the back I guess

balmy dagger
#

67yeah

#

yeah

devout elbow
#

when you click those switches, you don't see any values change in BF Receiver tab?

balmy dagger
#

yeah

#

c changes aux 3

#

and the drones wild beeping stopped

devout elbow
#

okay, good, so that works

#

you can keep the switch in the shut up position for now

#

<PAGE to MODELSEL

balmy dagger
#

ok

#

on it

devout elbow
#

There, scroll onto the currently selected model (should have like a * at the start of its name or something)

balmy dagger
#

yeah

devout elbow
#

then, long-click on it
and it should allow you to duplicate or copy it

balmy dagger
#

copy

#

I see an option

devout elbow
#

copy the model

balmy dagger
#

ok

devout elbow
#

you're doing this to have an unmolested backup

balmy dagger
#

its in slot 6

devout elbow
#

ok, go back to the original model that you were working on (if the selected model changed)

#

then, PAGE> to OUTPUTS

balmy dagger
#

ok

devout elbow
#

once in OUTPUTS, you should see something like 0.0 -100 - 100

#

for each channel

balmy dagger
#

yep

devout elbow
#

start with CH1

#

edit it

balmy dagger
#

alr

#

I hit edit

devout elbow
#

I very rarely do this from memory

#

so I need a photo

balmy dagger
devout elbow
#

Does Direction allow you to change it to something like inverted?

balmy dagger
#

yeah

#

INV

devout elbow
#

ok, do that on all channels up to 8

balmy dagger
#

ok

devout elbow
#

then check your stick values in BF

#

down left should be ~1000
up right should be ~2000

balmy dagger
#

is this where it should be?

#

changed them all

#

to INV

devout elbow
#

this is where you check

balmy dagger
#

its changing fast again

devout elbow
#

I need you to check that bottom/left for the sticks means the lowest value

devout elbow
#

ignore it for now

#

let's first set it up

balmy dagger
#

I cant tell lol

devout elbow
#

?

balmy dagger
#

the numbers r changing fast

#

thats the lowest I get while its changing

devout elbow
#

I don't care how low it goes

#

I only care that it goes in the correct direction

#

bottom left should give you small values

balmy dagger
#

what do u mean bottom left

devout elbow
#

top/right should give you high values

#

sticks

balmy dagger
#

for the sticks?

#

ok

#

yeah that sounds about right

devout elbow
#

okay

#

that means that the INV thing works as expected

#

it reversed the channels

#

because they were backwards before

#

now, the center of the channels is still wrong

#

1520 instead of 1500

#

pick a channel, like CH1 for example

#

and change its subtrim value

#

until it gets to 1500

#

(when the stick is centered ofc)

balmy dagger
#

ok

#

nothing changes

#

when I edit it

devout elbow
#

what if you exit the editor?

balmy dagger
#

nope

#

still the same

#

should I edit another channel?

devout elbow
#

you can

#

but that's hella odd

balmy dagger
#

man im getting tired of this crap

#

i need a a break

#

wanna come back to this later?

devout elbow
#

I'll be asleep

#

anyway, the backup option

#

which should need less tweaking

#

do you mind setting that up quickly?

#

I dislike FRSKY_D but it might be easier

balmy dagger
#

how

devout elbow
#

Switch to the copied model

#

that you made earlier

#

affter you switch, go into Model Setup

#

Internal RF

#

set it to FrSky D8

#

on the drone, set it to FRSKY_D, save

#

and then bind on the drone first, on the radio second

balmy dagger
#

cant seem to find it

#

frsky D

devout elbow
#

you had it before

#

FrSkyD or FrSkyX

#

subtype D8

balmy dagger
#

I found Frsky

#

doesd that work

devout elbow
#

did you find D8?

balmy dagger
#

yeah

devout elbow
#

send a pic

#

just for sanity's sake 😄

balmy dagger
devout elbow
#

are you in Internal RF?

#

I bet that you're not

#

I guess that you scrolled past it all the way into External RF

balmy dagger
#

ok found it lol

#

I wasnt on it

#

frsky D

#

and D8

devout elbow
#

make sure to set External RF to OFF btw

#

you don't want there to be power in the module bay for no reason

balmy dagger
#

done

devout elbow
#

okay

#

now, the binding

#

on the drone, set FRSKY_D instead of SFHSS

#

save

#

then Bind on the drone, then [BND] on the radio

#

then exit from [BND] on the radio and check for stick movement

balmy dagger
#

hmm

#

wait

#

so

#

internal rf must be frsky d

#

?

#

which it is

#

and D8

devout elbow
#

yeah you already have that

balmy dagger
#

I do

devout elbow
#

what is not clear about that?

balmy dagger
devout elbow
#

I have no idea what you did

#

I'm telling you that in BF Configurator, if you want to bind in D8, you must set it to FRSKY_D

balmy dagger
#

internal rf is on frsky_D d8

#

oh

#

is that it

devout elbow
#

save it

#

then bind

#

then check if the sticks move

balmy dagger
#

saved

#

ok it beeped like 3 times or something

#

no beeping

#

do I exit it now?

#

ont he radio

#

nothing moves on screen

devout elbow
#

did you click Bind in BF?

#

before clicking BND on the radio?

balmy dagger
#

oh

#

no

devout elbow
#

dude

#

I have run out of ways to write it

balmy dagger
#

ok its done

devout elbow
#

so, stick movement?

balmy dagger
#

the sticks move

#

aux 1 is 1500

#

liek u wanted

devout elbow
#

aux1?

balmy dagger
#

yeah

devout elbow
#

we were checking CH1 not AUX1

#

AUX1 is CH5

balmy dagger
devout elbow
#

well idc

#

you have an easy way to switch between those

balmy dagger
#

same

#

I hate this crap

devout elbow
#

same what

#

dude

#

I am not a cryptographer

#

I can't decypher

#

what is wrong

balmy dagger
#

its not ur fault this isnt working

devout elbow
#

WHAT IS NOT WORKING

#

JESUS

balmy dagger
#

I thought it wasnt working

#

is it working

#

IDk

devout elbow
#

what do you think is not working

balmy dagger
#

I thought u thought it wasnt working

#

id whats going on

devout elbow
#

never said anything like that

balmy dagger
#

idk

devout elbow
#

anyway

#

we switched to D8 because you were having trouble adjusting SFHSS to work correctly

#

D8 is a worse protocol though, but no matter, at least it will fly

#

does it still do that crap where the values jump around? @balmy dagger

balmy dagger
#

nope

#

the drone on the screen isnt spinning

devout elbow
#

okay, so at least that's an improvement

#

does it spin when you move the sticks?

balmy dagger
#

and it seems to respond

#

it only spins when I move the right stick now

devout elbow
#

ok

balmy dagger
#

and it moved whatever way I turn it

devout elbow
#

the reason why it was spinning constantly with SFHSS was because the channels were not centered on 1500 but 1520

#

which is what you were supposed to fix with the subtrims

#

but I think you confused CH for AUX

#

well

#

¯_(ツ)_/¯

#

at least it doesn't do that weird on/off crap anymore

balmy dagger
#

welllll

#

so

#

is it good

#

now

devout elbow
#

check the switch movement

balmy dagger
#

this is what I see

#

it seems to move nice

devout elbow
#

figure out which switch moves AUX1

#

as that's usually set as the arming switch by default

balmy dagger
#

its E

devout elbow
#

go to Modes tab

#

tick "Hide Unused Modes"

#

and send a screenshot

balmy dagger
devout elbow
#

to explain what this means

#

basically

#

"When AUX 1 is between 1700 and 2100, turn the ARM mode on, otherwise turn it off"

#

does that make sense?

balmy dagger
#

whats ARM mode

devout elbow
#

in regards to how it's adjusted and stuff?

#

do you see the ARM on the left?

#

that's the name of the mode

#

ARM is the mode that turns the drone on

#

Armed/Disarmed - do you know these words?

balmy dagger
#

I see ARM

#

doesnt armed mean u can fly it

#

and disarmed when u wont be able to fly it even when moving the stivcks

devout elbow
#

yes

#

that's precisely what this mode is

#

when you turn on the ARM mode, you turn on the drone

balmy dagger
#

I see

#

when I have E all the way up it says disabled

devout elbow
#

yeah that's because it's in the configurator

#

when the configurator is connected, arming is disabled

#

for safety reasons

balmy dagger
#

ah ok

#

so it should be able to fly now?

devout elbow
#

you can see how the modes turn yellow when they're turned on

#

just make sure to check out what switches activate what modes

#

so that you know what control scheme is turned on

balmy dagger
#

gotcha

devout elbow
#

I hate horizon. It's stupid.

#

lol

#

the default flight mode of betaflight is Acro

#

when none of these: [angle, horizon, acro trainer] are active, the drone is in acro.

balmy dagger
#

idk what that means

devout elbow
#

wdym

balmy dagger
devout elbow
#

you definitely learned that when doing the absolute bare minimum of research before buying any of this shit

#

and of course during the several hours you spent flying in simulators

#

-_-

balmy dagger
#

im about to fly it

#

@devout elbow ITS MOVING AIR THE WRONG WAY

#

ITS TRYNA FLY INTO THE GROUND

devout elbow
#

did you put the props on backwards? 😂

#

or

balmy dagger
#

o

devout elbow
#

did you put it upside down?

balmy dagger
#

defo the props

devout elbow
#

send a photo

balmy dagger
#

do I swap them all?

devout elbow
#

of how you put the props on

#

there are two levels of wrong that you can do

balmy dagger
devout elbow
#

this is the bottom of the drone?

balmy dagger
#

no

#

top

devout elbow
#

why is the camera pointed towards the ground?

balmy dagger
#

didnt u want to see the props?

balmy dagger
devout elbow
#

thank you @ashen marten I wanted to find that one

#

@balmy dagger the props have an UP direction

#

you can put them on upside down

#

and then it won't fly

balmy dagger
#

so just flip them

#

all of them

devout elbow
#

omfg

#

I DON'T KNOW

balmy dagger
#

BRUV

devout elbow
#

I can't know because you're not giving me any good info

muted lagoon
#

bro make them all blow air down

devout elbow
#

without knowing if this is the top or the bottom

balmy dagger
#

idk it just blows air up

devout elbow
#

this it, right?

balmy dagger
#

ye

devout elbow
#

okay, so now we know which is the UP direction - battery is on top

#

in that case, the props are NOT flipped upside down, they're correct in that regard

#

so you just need to swap them around

balmy dagger
#

hmm

#

so I just move them to another motor

devout elbow
#

swap them either front to back

#

or left to right

#

but NOT diagonally

#

the props should be the same diagonally

#

?

balmy dagger
#

that is the right way up

devout elbow
#

at this point idk either 😂

balmy dagger
#

why is the response rate so damn bad

devout elbow
#

what response rate

balmy dagger
#

WHY IS IT TRYNA BOUNCE

devout elbow
#

because it's a drone

#

it's not a car

#

it doesn't like being on the ground

balmy dagger
#

LES GOO

#

IT WORKS

ashen marten
#

Now imagine how much sooner it would've worked with some basic research

balmy dagger
#

it goes to the left tho

ashen marten
balmy dagger
#

slow

devout elbow
#

what mode are you flying in?

ashen marten
balmy dagger
#

ye

ashen marten
#

then throw that expectation out of the window

balmy dagger
#

so its normal for it to go to a random direction

devout elbow
balmy dagger
#

I didnt even touch the sticks

devout elbow
icy osprey
#

It just needs calibrating

#

But it won't ever completely hold station

balmy dagger
devout elbow
#

fuck you I'm not helping you then

balmy dagger
#

NOOOo

devout elbow
#

you can't answer a simple fricking question

balmy dagger
#

PLEASE

devout elbow
#

ffs

#

without knowing that we can't tell you what to do

balmy dagger
#

fuck it im happy that it at least lifts off the ground

devout elbow
#

I told you what the modes are
I told you how they're configured

#

and if you need some adjustment
then I need to fucking know which mode you're flying in

ashen marten
#

don't bite the hand that feeds you, @devout elbow already endured way more than he should've with you

balmy dagger
#

Thank you very much for the help

devout elbow
#

dude facepalm

balmy dagger
#

@devout elbow u r a real one tho

devout elbow
#

can you please

#

just

#

answer

#

the question

balmy dagger
#

idk

#

what mode im in

#

yeah idk

devout elbow
#

so

#

all of that I wrote about how to do stuff in the Modes tab

#

you just completely ignored?

#

I just don't get it

balmy dagger
#

there was a lot

devout elbow
#

I'm not writing it just for the heck of it

balmy dagger
#

r u talking about the modesel option

devout elbow
#

no

ashen marten
devout elbow
balmy dagger
ashen marten
devout elbow
#

I've truly run out of ways to explain it

balmy dagger
#

U dont need it

#

it is flying

#

thats all I care about

devout elbow
#

If you have it in Horizon mode, then you will try to go past a certain stick precentage, make a flip, and then crash horribly

#

if you have it in Angle mode, you will come back asking how to do a flip

#

if you have it in Acro mode, without spending any time in simulators, you will crash a lot before learning how to fly it properly

balmy dagger
#

Its in horizon mode from what I remember

devout elbow
#

If you're not willing to gather at least a basic level of understanding of what is going on, I won't be able to help you advance

#

it was in Horizon mode at that point in time

#

but that's controlled by the switches on the radio

#

and idk what you did with those

#

the flight mode is a conscious choice that you have to make

balmy dagger
#

so I can switch it on the radio?

devout elbow
#

how is this even a question

#

that was the whole part about explaining the Modes tab

balmy dagger
#

U never said it could be done on the radio

#

we did it in the software

devout elbow
#

what

balmy dagger
#

u know wat

#

nvm

#

we good

devout elbow
#

did you not even read this? @balmy dagger

#

what does AUX 1 mean to you?

#

I was pretty sure that we had gone through that

#

now I'm questioning it

balmy dagger
#

ngl I just see numbers

devout elbow
#

well they are just numbers

#

remember how in Receiver tab your stick movements and switch clicks changed stuff? @balmy dagger

balmy dagger
#

yes

devout elbow
#

The radio sends (in your case) a total of 8 channels of data

#

first 4 channels are used by the sticks

#

Roll, Pitch, Throttle, Yaw

#

the remaining 4 channels are controlled by switches

#

on the radio, the 4 stick channels are CH1-4
and the switch channels are CH5-8

#

in Betaflight, the stick channels aren't numbered, and the switch channels are AUX1-4

#

so, radio's CH5 is the same as Betaflight's AUX1

#

does that make any kind of sense to you?

balmy dagger
#

Yes it does

devout elbow
#

okay

#

in Betaflight's Modes tab

balmy dagger
#

so those r just ways the software uses to display the sticks

devout elbow
#

In Betaflight's Modes tab
you assign AUX channel values to trigger certain Modes

#

Modes change how Betaflight behaves

#

or turn some things on/off

#

Here is how you have the ARM mode configured:

#

if I were to translate ^ into words
it would be
"When AUX1 value is between 1700 and 2100, turn the ARM mode on, otherwise turn it off"

#

does it make sense now?

devout elbow
balmy dagger
balmy dagger
#

the value

devout elbow
#

yes

balmy dagger
#

W

devout elbow
#

with the way that it is configured

#

it tells it to be armed when AUX1 value is between 1700 and 2100

#

2 position switches switch between ~1000 and ~2000
3 position switches switch between 1000, 1500 and 2000

#

do you now know how to figure out what mode it's in? @balmy dagger

#

you can just look at which mode is yellow, or check in your goggle OSD.. if that element is enabled

#

@balmy dagger If you are flying in Angle or Horizon, then you will want to use the Calibrate Accelerometer button in Betaflight's Setup tab
you need to have it completely level when doing that, as that's its reference that it's calibrating to

#

this is however completely moot in Acro mode

#

also make sure that your sticks are centering properly (that they're at 1500 when you let go)

#

if they have some randomness, like +-2 (1498 to 1502), configure the RC deadband to that value (+-2 = set deadband to 2)