EmuFlight icon indicating copy to clipboard operation
EmuFlight copied to clipboard

[TARGET REQUEST] SKYSTARSF7HDPRO (BMI270)

Open seb3876 opened this issue 4 years ago • 36 comments

Hi,

anyone could send me target for SKYSTAR F7HDPRO?

Thanks a lot!

seb3876 avatar Nov 25 '21 12:11 seb3876

Needs tested! Check gyro orientation, motor arrangement, flash, osd, vtx control, everything else if possible please update here with feedback that it works or needs improvement. PROPS OFF FOR SAFETY

EmuFlight_0.4.0_SKSTF7HDPRO_Build_c8cc50dde.zip

(edit: hex updated for barometer, osd, battery, usb connect)

BeauBrewski avatar Nov 25 '21 23:11 BeauBrewski

Thanks for Target

1/ the connection usb don't run: impossible to connect with computer but via wifi it's ok. 2/ Board and alignment don't ok, i must put -90 to the yaw degrees 3/ there are a lot of options missing in the osd

seb3876 avatar Nov 26 '21 10:11 seb3876

1/ the connection usb don't run: impossible to connect with computer but via wifi it's ok. 2/ Board and alignment don't ok, i must put -90 to the yaw degrees 3/ there are a lot of options missing in the osd

  1. I'll look into that. Seem to be having some USB issues with different targets right now. But the target is working and not bricking the board, so that is good.
  2. Alignment is set to the manufacturer recommendations according to BetaFlight configuration. Different builds will have different alignment however. Will double check.
  3. Try turning on "Expert Mode" for more OSD options. It will still have different OSD options than BF however.

BeauBrewski avatar Nov 26 '21 16:11 BeauBrewski

after many test, baro not recognized.

Could you do something ?

seb3876 avatar Nov 27 '21 07:11 seb3876

What brand/kind of baro? Internal/External?

BeauBrewski avatar Nov 27 '21 10:11 BeauBrewski

the baro is integrated on fc

seb3876 avatar Nov 27 '21 11:11 seb3876

Did it work before with BF? Do you have a manufacturer web address for your FC? Do you have a BF dump of your FC before flashing to Emu?

The SKYSTARS F722HD PRO fc I saw said no baro http://skystars-rc.com/Products/ESC/2021/0620/93.html image

If yours has one, then it must be a different FC but same target, so I will need a copy of that web address and a copy of your DUMP

BeauBrewski avatar Nov 27 '21 13:11 BeauBrewski

the baro worked on betaflight

the manufacturer web adress you cited is the good page web but i have a baron on betaflight, I find it surprising that the web adress does not specify a baro

this is the dump in betaflight in attached file

dump all betaflight.txt

seb3876 avatar Nov 27 '21 14:11 seb3876

Thank you for that!

BeauBrewski avatar Nov 27 '21 17:11 BeauBrewski

@seb3876 can I get a copy of your Emuflight dump as well for comparison?

BeauBrewski avatar Dec 02 '21 16:12 BeauBrewski

hi,

this is the dump in Emuflight in attached file:

DUMP ALL.txt

seb3876 avatar Dec 02 '21 17:12 seb3876

~~Okay, I think that helped me fix it. I thought I had all the barometer stuff installed already, but your Emu dump said otherwise. I updated the hex linked above, but am including it again here to be easy. Try it and let me know if it works. Do not copy any diff/dump info onto this flash until you verify that the Baro is detected, please.~~

~~EmuFlight_0.4.0_SKYSTARSF7HDPRO_Build_b87117f08.zip~~

BeauBrewski avatar Dec 02 '21 17:12 BeauBrewski

i tested the new target: 1/ no baro 2/ no information on the osd 3/ always difficult to connect the fc on emuflight 4/ capa information always 0

seb3876 avatar Dec 03 '21 09:12 seb3876

@seb3876 Thank you again for your patience and help. I spotted my code errors and you may have helped me narrow down the issue with targets connecting poorly with USB. I think I fixed OSD, battery, and Baro issues, as before they weren't showing up in the Dump properly, but now they are.

~~EmuFlight_0.4.0_SKSTF7HDPRO_Build_8582a8fbe.zip~~

BeauBrewski avatar Dec 03 '21 14:12 BeauBrewski

@BeauBrewski thank you for your work!

all the previous points are resolved but now the drone turns over as if a propeller was upside down

can you do something?

thanks you

seb3876 avatar Dec 05 '21 15:12 seb3876

@seb3876 send me a copy of your newest Dump and I'll see if a setting is off. In the meantime, double check your board orientation in comparison to the animated drone in the configurator. Double check your props. Double check motor direction. Double check that normal/reversed props setting is correct.

BeauBrewski avatar Dec 06 '21 00:12 BeauBrewski

@BeauBrewski this is my new DUMP in attached file. i must put FC -90 to the yaw degrees but quad fly not in right way

Dump.txt

seb3876 avatar Dec 06 '21 16:12 seb3876

@seb3876 Something is seriously not right with that dump. Looks all glitchy. Either need to try again, or do a reflash with full chip erase.

BeauBrewski avatar Dec 09 '21 13:12 BeauBrewski

i tried a full erase, new configuration and dump all.

See in attached file.

Thank You

DUMP ALL EMUFLIGHT.txt

seb3876 avatar Dec 09 '21 16:12 seb3876

@seb3876 I think I spotted an issue between the BF and Emu dumps you've given me. You don't have the radio set up the same on Emuflight. Make sure your channel map is correct on the Receiver tab and that the Roll/Pitch/Throttle/Yaw move correctly when radio connected (will probably have to plug in battery to quad when testing with radio). And that the animated quad moves accordingly when sticks are moved.

You can also copy the AUX settings from the BF dump and paste them into CLI of Emuflight then type save. That should get your controls matching. image

image

BeauBrewski avatar Dec 10 '21 01:12 BeauBrewski

@BeauBrewski The settings are good. I don't understand why they don't match.

seb3876 avatar Dec 12 '21 13:12 seb3876

@seb3876 Hmm. I tested on a different target changing the CLI Aux settings and it did not appear to make a difference, so that is not the problem. Sorry about that. It was the only noticeable difference I saw in the dumps.

I reworked the gyro code and have a new test file.

EmuFlight_0.4.0_SKSTF7HDPRO_Build_c8cc50dde.zip

BeauBrewski avatar Dec 12 '21 18:12 BeauBrewski

@BeauBrewski thank you very much !

seb3876 avatar Dec 14 '21 08:12 seb3876

@seb3876 Did the newest build ever end up working correctly? I know this was being a headache. Feedback is much appreciated for as many features as possible or available: ✔️/❌ Flash ✔️/❌ Gyro ✔️/❌ Accelerometer ✔️/❌ Motors ✔️/❌ Onboard ADC ✔️/❌ OSD (analog) ✔️/❌ Smart Audio controls (OSD and CLI) ✔️/❌ Alarm switch ✔️/❌ Barometer ✔️/❌ Blackbox ✔️/❌ LED ✔️/❌ GPS Or any other features or issues you notice

BeauBrewski avatar Mar 12 '22 00:03 BeauBrewski

Above target only works with older boards with MPU6xxx gyro.

Will need to add BMI270 support when available.

BeauBrewski avatar Jul 12 '22 14:07 BeauBrewski

Working on test target https://github.com/emuflight/EmuFlight/pull/890

BeauBrewski avatar May 21 '23 08:05 BeauBrewski

Needs tested! Working SKYSTARSF7HDPRO target (name below is shortened for reasons). Bench tested and works on BMI270 flight controllers. Needs flight tested and other features.

EmuFlight_0.4.2_SKSTRF7HDPRO_BMI270_2b5d8a19c.zip

BeauBrewski avatar May 29 '23 00:05 BeauBrewski

**Note: Had USB connect issues--would take 3+ tries to connect into Emu Config. Shortened target name and USB connection is now fast and first try. Gyro works-8k/8k pidloop running at 2-4% CPU. Blackbox appears detected. Will update more once installed on quad.

BeauBrewski avatar May 29 '23 00:05 BeauBrewski

does the folder-name need shortening or only the target.h's USBD_PRODUCT_STRING ? or both?

nerdCopter avatar May 29 '23 15:05 nerdCopter

src/main/pg/board.h:26:#define MAX_BOARD_NAME_LENGTH 20 :thinking:

nerdCopter avatar May 29 '23 15:05 nerdCopter