-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add BETAFLIGHTF4 target support #2573
Conversation
shellixyz
commented
Dec 9, 2017
•
edited
Loading
edited
- Based on CF/BF target definition
- Linked issue: Add BETAFLIGHTF4 target support #2564
- Untested, feedback needed, I do not own this board.
- Latest test build: inav_1.8.1_BETAFLIGHTF4_draft_r7.hex
@Christiangrau @Rampiks1 Please test this |
Hey, I tried flashing it, but after flash is done it doesn't reboot and when I remove the USB and connect it again I get a popup saying somthing like "Windows can't detect this device", if i flash in betaflight it connects and works fine, and if a flash a Omnibus f4 clone in iNav it also works fine |
@Rampiks1 Hello. Thanks for the feedback. What is the status LED doing when you power up the board ? |
I updated the test build, please test it: |
Hey, I got to test it now, No change to the new test build, and the activity led is glowing blue constant even after removing the USB and connecting it again |
@Rampiks1 I don't know what's going on for the moment then :/ |
Not sure. I'm going to order a BFF4 board to troubleshoot. Any idea where I can get one? |
@digitalentity When looking for docs I found these ones: |
Ordered one from FPVModel. Fingers crossed I'll get it before New Year 😄 |
Great, fingers crossed :) I updated the defines for ACC/GYRO/BARO maybe it is as simple as that. |
@shellixyz Hey, it still has the exact same issue |
i have a board if you need help testing, also Racedayquads here in florida has them too: https://www.racedayquads.com/collections/betaflight-products Their shipping is top notch less than a week all over the us. |
@shellixyz i just installed the code, any way i can get your target directory? i'm assuming that's all I would need to add into my git clone? Would love to work on this as well |
@wx4cb The code is in this branch https://github.com/shellixyz/inav/tree/BETAFLIGHTF4_target |
I noticed that there are a couple of defines missing when i compared it to the betaflight version for the same board. could it be that they are missing that's causing the issue? namely the ones for the MAX chip etc? `//#define USE_ESC_SENSOR #define MAX_PWM_OUTPUT_PORTS 4 |
|
I compiled your tree @shellixyz and flashed it to my brand new BFF4 board and it flashed ok and I can open it up in the conflagulator :D I see the 16 meg data flash, the gyro and the accellerometer, i don't see a baro on this board so evreything looks right so far. 2017-12-13 @ 18:05:08 -- USB device successfully opened with ID: 12 |
@wx4cb Nice ! Did you change anything ? |
@shellixyz no i downloaded the tree that you gave me as a zip file, extracted into a VM compiled and flashed onto the BFF4 board. in the process of wiring it up now so i can test later |
here's a diff after i did some basic config and setup the receiver. I havent done anything else yet, i'm working on wiring up the esc and some servo leads etc although i did just notice that I have uart6 as the sbus receiver, vcp for the configurator and msp on uart 1 was turned on, so i turned that off. I also turned on the voltage and current monitoring and also things like the telemetry etc versionINAV/BETAFLIGHTF4 1.8.1 Dec 13 2017 / 17:52:57 ()resourcesmixermixer AIRPLANE servoservo mixfeaturefeature VBAT beepermapnameserialserial 0 0 115200 38400 0 115200 auxadjrangerxrangemasterset gyro_sync = ON profileprofile 1 set fw_p_pitch = 20 |
this one worked fine @shellixyz versionINAV/BETAFLIGHTF4 1.8.1 Dec 11 2017 / 14:45:28 (33695c5)Based on CF/BF target definitionLinked issue: #2564Untested, feedback needed, I do not own this board.Test build: inav_1.8.1_BETAFLIGHTF4.hex |
that being said.... i mean i can flash it and connect it to the configurator. i haven't tested it further than that yet |
i do get the same as @Rampiks1 where windows says it doesn't recognise the device, but it still works fine. on all three builds, but i can still connect ok |
Right, I wasn't aware! Thanx! In BF firmware you have to reassign UART 1 and 3 TX pins to soft serial in order to have smartport and smart audio working. Would it be possible to have some kind of routine/script in this target to have this or similar command executed via a switch depending on user preference? |
@tasi0000 according to Oscar Liang, uart2 is inverted on both legs: "You can use UART2 for SmartPort with some modification: you will need to get a small signal schottky diode connecting TX to RX, and connect Smart Port to the RX. And turn off tlm_halfduplex in CLI" |
and peeps, how are we doing ? Im still on rev4 :) tried some gps stuff today like autolaunch and alti hold but took ages to get a lock for some reason...everything seems to work fine! Any ideas with what to mess around now? Has anybody tried smartport, smartaudio and sbus ? I'm done till new year :) |
@tasi0000 I know sbus works as that's how i'm doin g my receiver, on the SBUS p[in which comes in as UART 6 GPS is on UART1 here although bein g inside i can't get a lock but i do see gps messages going into the system. As far as smartport/audio i haven't done that yet, i'm working on trying to figure out th e mixes etc. |
@tasi0000 I never used smartaudio nor S.Port with iNav. I can't say anything about smartaudio but I already used S.Port with Betaflight and as you said you will need either a Softserial port or a hardware inverter like this one. What is the model of your GPS module (link) ? All GPS modules are not created equal. I know the first I had were shitty ones and it was very annoying. Difficult to get a lock, losing lock when changing orientation... But also you need to keep it away from RF noise. The farther away from your control link receiver, ESC, VTX, telemetry modem the better. For flying wings I put the receiver in one wing, the GPS in the other and the VTX in the middle section. |
@tasi0000 this is the GPS/Compass that I bought. haven't tried it in earnest yet, it's all just spaghetti wired on my bench as i don't have a target to put it into yet. As far as smartport/sport for the telemetry, see that oscar liang link i posted earlier. as far as locations, ytes i do the same thing. one in each wing. https://www.amazon.com/gp/product/B012RNLG0K/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1 |
@shellixyz where is the number of LEDs defined (currently says 0 leds)? i can't seem to find it. That or im blind lol |
@wx4cb If you are talking about the LED_STRIP feature here is how to define the LEDs: |
@shellixyz No. i know how to define the LEDS and their functions, but when you go into there it says you have "zero" leds available and won't let you place any. I don't think this is aBFF4 issue as ive seen other issues posted |
@wx4cb I disabled the LED_STRIP on this board for testing purposes. You can enable it back by uncommenting this line in target.h:156
|
@wx4cb If you test the LEDs and it is working please tell us I will enable the feature back. |
@wx4cb Little mistake the right symbol is |
hi there guys, I am currently testing the unstable BetaflightF4 version for inav on the hardware itself Current Issues: |
LED are not working on inav (working in Betaflight)
shellixyz: "I disabled the LED_STRIP on this board for testing purposes. You can enable it back by uncommenting this line in target.h:156 " //#define LED_STRIP |
@wx4cb check impulse rc bootloader driver fixer, or zadig |
@CircuitBender Been flying inav now for the last 2 weeks not noticed an y drop outs on my X8R, i have noticed that it doesn't init the OSD every now and again though. The unable to connect via USB is one i noticed yesterday and was a real pain. This i think is also the cause of me not being able to get into DFU mode reliably. And of course same issue with the LEDs. Not had chance to work on it properly over christmas what with work and other crap |
I believe unplugging usb slightly and replugging it without losing power on the FC lets me connect after a few tries
|
@shellixyz what's the status of this PR? I've received my board today, ready to test and debug 😄 |
@digitalentity nice... it generally works with the exception of the servo outputs being mapped wrong (see above) and the LED strip. I have it running on a calypso with an m8n gps and i2c compass, due to the output issues with the servos i cannot really test any further, plus with work i haven't had much time to play, Here's a YT video from the other day (ignore the compass crap it's not REALLY calibrated :D |
I'm taking this over. Superseded by #2637 |
Gents, where can we find the latest .hex now? is it still the r7? |
@wx4cb what servo output issues are you running into? |
i haven't tested it since @digitalentity took it over - work, holidays etc. but basically the rudder channel was on "motor 6" which doesn't exist on that board |
@wx4cb alright! must have missed the regular plane setup part :) thanx buddy! |
@digitalentity @shellixyz i'm ready to reflash with whatever we have. where can i find the latest code etc? is it in the main branch yet ? |