I've added three new AUX items to the firmware and gui code in the shared svn:
LEDMAX:
switching LEDMAX instructs the copter to turn up the illumination. If you are using the (relatively new) LED_FLASHER code, a different pattern is loaded independet from the copter situation (armed or unarmed); I implemented this function when I noticed that flying at night with a flashing copter is quite irritating, so I set LED_FLASHER_SEQUENCE_MAX to 0xFF to provide a steady illumination, even when unarmed (e.g. crashed).
LLIGHTS:
this turns on the landing lights usually toggled by the sonar altitude; useful if you want to illuminate an area while flying above the configured landing lights altitude (or if you want to get a cow in your tractor beam).
HEAD ADJ:
HEADFREE mode is a nice thing for using the copter as a camera platform; it however assumes that you are not changing your orientation. If you move with the copter and turn, it gets complicated since the reference heading is only saved during the arming procedure. Enabling this function saves the current heading as a new reference. While HEADADJ is active, the HEADFREE function is effectively disabled (since actual and new reference orientation are identical), so you can fly headfree, place yourself in a comfortable position, enable heading adjustment and fly "normal", then disable adjustment again to continue in the new orientation headfree again.
New AUX switch items: LEDMAX, LLIGHTS and HEADADJ
- jevermeister
- Posts: 708
- Joined: Wed Jul 20, 2011 8:56 am
- Contact:
Re: New AUX switch items: LEDMAX, LLIGHTS and HEADADJ
Hey Tommie,
sorry for not including your changes last week :-/ I had too muchs tuff todo, I see you are now allowed to contribute - welcome on board!
I have a question. Would you please share some schematics on how you built your flasher? I am evry interested in including them.
My first tricopter had them and they rocked.
Nils
sorry for not including your changes last week :-/ I had too muchs tuff todo, I see you are now allowed to contribute - welcome on board!
I have a question. Would you please share some schematics on how you built your flasher? I am evry interested in including them.
My first tricopter had them and they rocked.
Nils
Re: New AUX switch items: LEDMAX, LLIGHTS and HEADADJ
jevermeister wrote:sorry for not including your changes last week :-/ I had too muchs tuff todo, I see you are now allowed to contribute - welcome on board!
Never mind, the code found its way

I have a question. Would you please share some schematics on how you built your flasher? I am evry interested in including them.
My first tricopter had them and they rocked.
Sure; but I won't fire up EAGLE for that, it's simply this circuit:
http://www.mikrocontroller.net/articles ... chalten.3F
The base of the NPN transistor is connected to the ATMega pin 18 via a base resistor (around 10kOhm, the exact value doesn't matter), its emitter is connected to GND and its collector to the LEDs (each with its own resistor). That's all, the rest is software and configuration

-
- Posts: 97
- Joined: Mon Sep 08, 2014 12:25 am
Re: New AUX switch items: LEDMAX, LLIGHTS and HEADADJ
Tommie wrote:jevermeister wrote:sorry for not including your changes last week :-/ I had too muchs tuff todo, I see you are now allowed to contribute - welcome on board!
Never mind, the code found its wayI have a question. Would you please share some schematics on how you built your flasher? I am evry interested in including them.
My first tricopter had them and they rocked.
Sure; but I won't fire up EAGLE for that, it's simply this circuit:
http://www.mikrocontroller.net/articles ... chalten.3F
The base of the NPN transistor is connected to the ATMega pin 18 via a base resistor (around 10kOhm, the exact value doesn't matter), its emitter is connected to GND and its collector to the LEDs (each with its own resistor). That's all, the rest is software and configuration
how to get this to work please...?