Jump to content

kadda

Members
  • Posts

    383
  • Joined

  • Last visited

Everything posted by kadda

  1. here s a basic sketch ispired by modified to make %360° instruments turn at higher speeds ( like Roll indication in my case ), AccelStepper kren(AccelStepper::DRIVER, step, dir); /************************************************************************************************************************************/ char flagroll; long currentrollStepperPosition = 0, diffposition; long lastAccelStepperPosition; long targetrollPosition,movementSinceLastUpdate ; long lastroll,krenvoulu; #define MAXROLLSPEED 500 #define MAXROLLACCEL 500 #define MAXROLLTOUR (931) // for my gear ratio correction #define MAXROLLTOURM10 (9300) // for my gear ration correction (in fact i m correcting because of the ratio i have 930.1 steps per revolution ) long delta; long poskren,lastkren; int corriger,cumul; short statekren,signcurr; long currentStepperPosition = 0; void onKpp1273kRollChange(unsigned int krenValue) { long targetPosition = map(krenValue, 0l, 65535l, 0l,MAXROLLTOURM10); targetPosition= targetPosition/10 + (targetPosition%10 >=6 ? 1 :0); poskren = kren.currentPosition(); movementSinceLastUpdate = poskren- lastAccelStepperPosition; currentStepperPosition += movementSinceLastUpdate; lastAccelStepperPosition = kren.currentPosition(); if (currentStepperPosition < 0) { currentStepperPosition = (-currentStepperPosition)%MAXROLLTOUR; currentStepperPosition = -(currentStepperPosition)+MAXROLLTOUR; signcurr=1; } currentStepperPosition %= MAXROLLTOUR; if(abs(poskren-lastkren)>=(10*MAXROLLTOUR)){ targetPosition= targetPosition + (poskren-lastkren >0 ? -1 : +1); lastkren = poskren; } delta = targetPosition - currentStepperPosition; if (delta < -(MAXROLLTOUR/2)) delta += MAXROLLTOUR; if (delta > (MAXROLLTOUR/2)) delta -= MAXROLLTOUR; if(delta!=0) { kren.move(delta); } } DcsBios::IntegerBuffer kpp1273kRollBuffer(0x320a, 0xffff, 0, onKpp1273kRollChange);
  2. found some old photos before i remove them :) i did the same for stop/idle , but i can show it it s in the iner mechanism ...
  3. i put an "on-on" switch, i just had to calculate the correct postition to make it correspend ...
  4. may be it s too late, but can i have a working link for this example ?
  5. :music_whistling:
  6. the problem was reported, the team will have a look at it, will send the answer
  7. It was a little button installed in the side of the cover , it was wired to be invisible .. Envoyé de mon X5max en utilisant Tapatalk
  8. I can t show how i installed mine because i ve already took them away, it was invisible but olny the fact that i knew that they were there disturbed me ... Envoyé de mon X5max en utilisant Tapatalk
  9. One of these for example :) Envoyé de mon X5max en utilisant Tapatalk
  10. Всем приветсвую, я не давно заметил что после посадке тангаж показывает -5° ... Даже если простой полет по кругу был, а прибор долже показать точно даже после упражнение сложного пилотажа ... Envoyé de mon X5max en utilisant Tapatalk
  11. yeah, i did that way one cover, but it can be bypassed just by openning them by default or some how making possible the pushing of the button even when they are closed by changing some LUA, i will hear them and more than hearing i ll feel them because i ve real covers :), for now i m testing and fine tuning all the indicators ( 28 ), when i finish that i ll look at that seriously :). yes it s the plane by sending a commande via a small "Mbed" but what i said is that s i peaty, because of using a PROCESSOR to do i very simple trick ... why Mbed , because i started learning it and i ll try to write a library for it for DCSBIOS, a friend of mine who is programing for years, told me that the ARM is beter for those thing than ATMEGA ... by the way, big THANK to [FSF]IAN for DCSBIOS, for his help and expertise
  12. thank you my friend for your kind words, i ve fine tuned all the instruments but i ve to change some steppers because they have not the required performances for example the variometer and the RPM indicators are a little to slow ... about the covers, i ve already used some sollutions, i ve tested to put a little button under the cover to simulat the oppening and closing of the cover but it s a bad sollution for long time cuz the butons can stop working at any time ( it s a button !!!), the second sollution that i m gonna use ( i m a little shy about it ) it s that in ma sketchs i ve put some flags that rises with the begening of the simulation ( i know i m not using a programmer laguage sorry about that ), so the thing is to connect an MBEDINO that sends all the combos to open all the covers when it see the flag rise ... but i think that it s too big for this probleme, the best sollution is to make a little change in the lua, to change the default position of this "fwdturboswcover_ext" this is for turbo cover ...
  13. i did flown with it, and i can say that it don t show errors even after a complex exercise ...
  14. It s doing the same thing after a ten minute flight .... Envoyé de mon X5max en utilisant Tapatalk
  15. if i remember right if the AGD indication is wrong you must fly strait with constant speed of 450 km/h ( i m not sure ) , puch the "arrentir" button and and stay like that (strait flight) until the lamp in the button is blinking
  16. yes i m agree with you that after manoeuvering it can show an error, but i noticed that after a simple circuit mission without any manoeuvre...
  17. All instruments in the cockpit are connected and tuned, all buttons encoders and switches are working, all the lamps and lights are working... Just one thing i need to find is how to put all the covers open, or how to bypass them ... The only thing the i do with keybord now is opening them :( Here s a photo of the calculator as i named it with boxing near by and installed fans for extra cooling Envoyé de mon X5max en utilisant Tapatalk
  18. Осталась одна особенность, хочется знать как делать чтоб нажать кнопки с колпочками не открывая их на DCS раз они у меня и реально есть ... Это единствиная оставшися манипуляция которая мне нужно делать с клавитурой Envoyé de mon X5max en utilisant Tapatalk
  19. Ценьтралный цифровой блок закончен, его упоковка рядом, все сцщесвуюших индикаторов " кроме дыхание летчика" подключеные и рабочие, все лампы рабочие и поностью кабина с кнопкамм работает (АЗСы, переключатели,... ) Envoyé de mon X5max en utilisant Tapatalk
  20. hi every one, why the AGD indicates right on the horizon before take of and something like -5° after landing ?
  21. Лампа РВ да загорается просто не поставил питание, ВД-20 и другие приборы где нужно обнулирование поставлен для них третий элемент Envoyé de mon X5max en utilisant Tapatalk
  22. Нужно еще настроить но принцип работе коректный :) Envoyé de mon X5max en utilisant Tapatalk
  23. Need more fine tuning but working fine :) Envoyé de mon X5max en utilisant Tapatalk
  24. Yep... The i2c is between all of them for selecting card and the stepper that i want to manipulate as you can see on the last photo i sent it was a joystick and two little hex encoders Envoyé de mon X5max en utilisant Tapatalk
×
×
  • Create New...