iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.14k stars 1.48k forks source link

LED Strip in 1.5.1 Naze...confused! #1199

Closed GBIAN closed 7 years ago

GBIAN commented 7 years ago

I read the Getting Started...hard to believe, but I really did!

Looking to make LED strip work on Naze32 Rev 6.

Wiki says you need to enable in the code using cygwin.

I followed the instructions and looked at the target.h (Naze) for 1.5.1 and found that LED is already defined.

So in the GUI when I enable the option I show 0 available leds.

What did I do wrong?

GBIAN commented 7 years ago

When I look in the CLI LED_Strip shows up as a feature that is enabled

GBIAN commented 7 years ago

image

GBIAN commented 7 years ago

image

oleost commented 7 years ago

https://github.com/iNavFlight/inav/blob/master/src/main/target/NAZE/target.h#L188

Two slashes in front means that it's commented out and is basically not there.

GBIAN commented 7 years ago

Oleost. Thank you. I'll try changing it to defined.

Steep learning curve happening over here!

GBIAN commented 7 years ago

Did the edit and tried to compile.

Here is what I got; /cygdrive/c/dev/inav $ make TARGET=NAZE %% startup_stm32f10x_md_gcc.S make: arm-none-eabi-gcc: Command not found make: *** [Makefile:738: obj/main/NAZE/startup_stm32f10x_md_gcc.o] Error 127

What did I do wrong?

tonyintn commented 7 years ago

In order to add back the LEDs you will need to give up something. Example in my case I sacrificed Blackbox data recording. I commented that one out and added back the line for the LEDs otherwise the file size will be to big and will not compile without giving an error. if that's the route you want to go:

Add the following to your Naze (target.h)

  1. Change: //#define LED_STRIP to #define LED_STRIP
  2. Also add the following line to the Naze (target.h) #undef BLACKBOX

https://www.dropbox.com/s/xr83nblgnm94z34/inav_1.5.1_NAZE.hex?dl=0

GBIAN commented 7 years ago

I did that and still got the same error message when I compiled.

image $ make TARGET=NAZE %% startup_stm32f10x_md_gcc.S make: arm-none-eabi-gcc: Command not found make: *** [Makefile:738: obj/main/NAZE/startup_stm32f10x_md_gcc.o] Error 127

oleost commented 7 years ago

Your build environment is not set up correctly, either you forgot to install something or you have forgot to set up path. Follow the guide to the letter.

tonyintn commented 7 years ago

make: arm-none-eabi-gcc: Command not found Yep, I would say your path is incorrect the Environment variables must match your arm-none-XXXX path name you called it, it must be consistant.

This might help keep in mind that vid is old so the path and version he is showing is no longer valid but the principle is the same. https://www.youtube.com/watch?v=n3Z1fOQJAg8&feature=youtu.be also https://github.com/iNavFlight/inav/blob/master/docs/development/Building%20in%20Windows.md

GBIAN commented 7 years ago

Thats what I was thinking it might be, I'll double check it all. Thanks.

digitalentity commented 7 years ago

This issue seems to be support-related. Closing

GBIAN commented 7 years ago

Where do I continue to persue my support-related issue?