Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brushed esc problem #10683

Open
davifelix opened this issue Feb 9, 2025 · 24 comments
Open

Brushed esc problem #10683

davifelix opened this issue Feb 9, 2025 · 24 comments

Comments

@davifelix
Copy link

Good morning. I'm trying to get a bidirectional esc to work using a Kakute f4, inav 7 in rover mode, but I can't start it. Gps ok, compass ok, but I always have an alarm regarding the position of the throttle stick. I can start it from the output tab but I can't do it from radio. Has anyone ever tried and solved this problem?

@sensei-hacker
Copy link
Collaborator

Please attach your diff.

It works fine for me, using default settings. Every few months someone reports they are having a problem with whatever settings they are using, but so far everyone has refused to provide the settings they are using, their diff. So I don't have any way of knowing which setting is causing their problem.

@davifelix
Copy link
Author

Thank you very much tomorrow I'll send you my diff....... Good evening

@davifelix
Copy link
Author

Entering CLI Mode, type 'ex

Building AutoComplete Cache ... Done!

diff

version

INAV/KAKUTEF4V2 7.1.2 May 31 2024 / 23:08:25 (4e1e59e)

GCC-10.3.1 20210824 (release)

start the command batch

batch start

resources

Timer overrides

timer_output_mode 1 MOTORS
timer_output_mode 4 SERVOS

Outputs [servo]

safehome

Fixed Wing Approach

features

feature -TX_PROF_SEL
feature -AIRMODE
feature BAT_PROF_AUTOSWITCH
feature GPS
feature REVERSIBLE_MOTORS
feature PWM_OUTPUT_ENABLE

beeper

blackbox

blackbox -NAV_ACC
blackbox NAV_POS
blackbox NAV_PID
blackbox MAG
blackbox ACC
blackbox ATTI
blackbox RC_DATA
blackbox RC_COMMAND
blackbox MOTORS
blackbox -GYRO_RAW
blackbox -PEAKS_R
blackbox -PEAKS_P
blackbox -PEAKS_Y

Receiver: Channel map

Ports

serial 0 0 115200 115200 0 115200
serial 2 0 115200 115200 0 115200
serial 3 2 115200 115200 0 115200
serial 5 64 115200 115200 0 115200

LEDs

LED color

LED mode_color

Modes [aux]

aux 0 0 0 900 1600
aux 1 45 2 1700 1900
aux 2 53 2 1900 2100
aux 3 10 1 1650 2100
aux 4 28 2 1075 1300
aux 5 31 2 1500 1700
aux 6 13 3 1675 2100
aux 7 30 2 1325 1475

Adjustments [adjrange]

Receiver rxrange

temp_sensor

Mission Control Waypoints [wp]

#wp 0 invalid

OSD [osd_layout]

Programming: logic

Programming: global variables

Programming: PID controllers

OSD: custom elements

master

set gyro_main_lpf_hz = 10
set gyro_zero_x = 2
set gyro_zero_y = 6
set gyro_zero_z = -9
set ins_gravity_cmss = 986.161
set acc_hardware = MPU6500
set acczero_x = 19
set acczero_y = -11
set acczero_z = 14
set accgain_x = 4086
set accgain_y = 4085
set accgain_z = 4033
set align_mag = CW270FLIP
set mag_hardware = HMC5883
set magzero_x = 182
set magzero_y = -157
set magzero_z = 121
set maggain_x = 450
set maggain_y = 462
set maggain_z = 491
set baro_hardware = BMP280
set min_check = 1550
set serialrx_provider = CRSF
set motor_pwm_protocol = STANDARD
set failsafe_procedure = DROP
set servo_pwm_rate = 100
set applied_defaults = 1
set gps_sbas_mode = AUTO
set gps_min_sats = 5
set nav_wp_max_safe_distance = 500
set nav_fw_loiter_radius = 100
set nav_fw_yaw_deadband = 5

mixer_profile

mixer_profile 1

set platform_type = ROVER
set model_preview_type = 31

Mixer: motor mixer

mmix reset

mmix 0 1.000 0.000 0.000 0.000

Mixer: servo mixer

smix reset

smix 0 3 0 -100 0 -1

profile

profile 2

battery_profile

battery_profile 1

set throttle_idle = 0.000

save configuration

save

end the command batch

batch end

@davifelix
Copy link
Author

Allega il tuo diff.

Hi, diff attached!

@davifelix
Copy link
Author

Hello everyone. Would anyone kindly help me? Thank you very much

@sensei-hacker
Copy link
Collaborator

You can fix your current problem by entering in the CLI:
set min_check = 1100

You get arming blocked because you currently have:
set min_check = 1550

With max_check of 1900, you are essentially telling INAV that your radio is able to send values from 1550 - 1900.
It's looking for the center of that range, so 1725

If you set min_check back to the default of 1100, then it will see 1500 as center.

@davifelix
Copy link
Author

Thank you very much. I'll try, even if I think 1100 was the defoult value and it didn't work anyway.
The esc I'm using to work needs the throttle stick being turned on to be set to about 1500. I can decide whether to have forward/reverse or forward/brake/reverse gear. Which setting might work? Forward/backward I think without brake function...........

@sensei-hacker
Copy link
Collaborator

sensei-hacker commented Feb 13, 2025

It is entirely possible that you will run into a DIFFERENT problem after you fix min_check.

If so, please describe the problem as precisely as you can and let me know what setting changes you made, then I can see what's causing that problem.

All default settings pretty much works for me. The only changes I made for testing were setting bidirectional both in INAV and in the ESC. That worked in my quick test.

At one point while experimenting with settings I found that setting idle throttle to exactly zero might cause a different problem. It may need to be set to 1, with motor stop turned on. But anyway for now, let's see what you get after min_check is fixed.

My previous reply started with "You can fix your current problem by ..." because I suspect there are also some other issues people can have when using bidirectional motors on a rover. Rovers are a small percentage of INAV users, and bidirectional rovers an even smaller percentage, so various settings are tested more with planes and multicopters - with single-direction motors. But we can solve whatever problems come up, one at a time. :)

@davifelix
Copy link
Author

HI. I set min check to 1100. now I have the problem that it gives me "unable to arm throttle is not low" how can it be low if I need it to be in the center to manage "forward/rear"? what do you recommend me to do??
Thank you

@stronnag
Copy link
Collaborator

It is also the case that a number of the Arming Disabled messages shown in the CLI and Configurator are bogus. See #10635 and #10628

@davifelix
Copy link
Author

True or false that this alarm keeps me still and does not make me arm. Is switching to inav 8 resolved or is it a waste of time? Other solutions?

@sensei-hacker
Copy link
Collaborator

sensei-hacker commented Feb 13, 2025

HI. I set min check to 1100. now I have the problem that it gives me "unable to arm throttle is not low" how can it be low if I need it to be in the center to manage "forward/rear"? what do you recommend me to do?? Thank you

Centered stick is low throttle, when using bidirectional.

What value do you see for throttle in the Receiver tab?
Around 1500 works for me, in 8 and I believe also in 7.1.2.

@sensei-hacker
Copy link
Collaborator

sensei-hacker commented Feb 13, 2025

It is also the case that a number of the Arming Disabled messages shown in the CLI and Configurator are bogus.

Yes, if you set up geozones (in 8), the message isn't quite right. This diff does not have geozones, and isn't INAV 8.

We're working on a specific issue here related to how center throttle is handled with bidirectional motors. Only on rovers, max throttle is set to 1850 and things get tricky.

@davifelix
Copy link
Author

The problem in my opinion arises from the fact that inav does not make me arm with 50% or 1500 pwm gas. In my opinion, if I solve this, I will have no problem arming. How do I set 1500 as default to arm?

@sensei-hacker
Copy link
Collaborator

The problem in my opinion arises from the fact that inav does not make me arm with 50% or 1500 pwm gas. In my opinion, if I solve this, I will have no problem arming. How do I set 1500 as default to arm?

Again, what value do you see on for throttle on the Receiver tab, please?

@davifelix
Copy link
Author

Unfortunately I didn't understand your question. in the receiver tab I see the value at which I leave the throttle stick. if I keep it at 1500 I see 1500.........

@davifelix
Copy link
Author

When arm I keep the gas at 1500 but in osd I have the gas alert not low

@davifelix
Copy link
Author

More tests done today but nothing. Unfortunately, he doesn't want to know about arming. I'm stuck........ 😥

@sensei-hacker
Copy link
Collaborator

sensei-hacker commented Feb 16, 2025

Actually the default min_check for 7.1.2 is 1000
It's 1100 on INAV 8

I tested and confirmed, as you reported min_check =1100 will result in "throttle now low" on 7.1.2
For 7.1.2, you need the default:

set min_check = 1000
save

@davifelix
Copy link
Author

davifelix commented Feb 16, 2025

I did a test this morning and I managed to get the gear forward. I set the radio to have 0-100% stick 1500-2000 output signal e con uno switch posso avere sullo 0-100% 1500-1000 di segnale in uscita. On the cli I set min_check = 1500 e min_commando = 1500 e finalmente ho ottenuto la marcia avanti. Non riesco comunque ad avere la retromarcia........

@davifelix
Copy link
Author

I'll do a test set to 1000 on min_check

@davifelix
Copy link
Author

Test if min_check Negative. I was only able to get the forward gear by setting min_check 1500 and min_commando 1500 below this value does not take any signal and I do not have reverse gear

@sensei-hacker
Copy link
Collaborator

Arming works for me using the settings you have here
#10683 (comment)

Except with min_check put back to the default of 1000

Does arming work for you with those settings?

If you do two or three things at once, changing other settings to try to get other things to do what you want, I can't really help without knowing what you're doing at each step, and if THAT step worked.
When you jump two or three steps ahead and change multiple values I can no longer follow along and help you.

@davifelix
Copy link
Author

Ok, Could you tell me your settings as min_check and min_command? Type of esc (normal-brushed etc) and whether you have set the esc forward-brake-reverse or forward-reverse? Inserisco le tue stesse impostazioni e ti faccio sapere. Grazie mille per l'aiuto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants