Hi Yuri, Have not seen it earlier. Get started running LUA scripts on ArduPilot. Very well explained. Thanks for the great tutorial. You made my day!
@garthlee8166
2 жыл бұрын
Many Thanks for sharing this much appreciated
@YurisHomebrewDIY
2 жыл бұрын
Thank you!
@tsohee9145
Жыл бұрын
Big thanks for You tutorial! Have You any demo for UART connection? For example, to control the zoom of a camera with a PELCO-D or VISCA protocol.
@rahulvashist5184
Жыл бұрын
Great tutorial! I was curious how are you using SITL on windows using cygwin or WSL?
@YurisHomebrewDIY
Жыл бұрын
WSL or just Mission Planner's own simulation environment. Cygwin should probably be removed from the docs. It's outdated.
@MrDante195
2 жыл бұрын
Hi sir I need a little help in this matter, I need to create a custom script in which whenever I switch RTL mode or RTL trigger by failsafe command then, if my aircraft is flying below a certain value it climb first to safe height and return to home (regular RTL function), but if aircraft is flying above the safe height (RTL _ALT) then it will not climb down to safe height instead follow the current height and return to home. I shall be very thankful to you if you help me out.
@YurisHomebrewDIY
2 жыл бұрын
EDIT: What you're describing is the default RTL behavior for the Copter branch. RTL_ALT: "The minimum alt above home the vehicle will climb to before returning. If the vehicle is flying higher than this value it will return at its current altitude."
@MrDante195
2 жыл бұрын
@@YurisHomebrewDIY exactly but what I need is that when RTL mode is activated 1) And if the aircraft is flying ''ABOVE" the RTL_ALT then its need to "maintain" that height and return to launch position instead climb down to RTL_ALT value. 2) And if the aircraft is flying "below" the RLT_ALT value then it should climb up to RTL_ALT height then return to home. Any help should be very grateful, second I cant use scripting function in SITL it just doesn't work for me, I have tried every thing use different flight controllers, different operating system also change the laptop but it just doesn't work for me, however if I upload my script directly into CUBE Orange it runs successfully, I have carefully followed each and every step.
@YurisHomebrewDIY
2 жыл бұрын
@@MrDante195 You are literally describing default RTL behavior. There’s no need to script it.
@MrDante195
2 жыл бұрын
@@YurisHomebrewDIY Thanks for guiding me through.
@MrDante195
2 жыл бұрын
@@YurisHomebrewDIY Just one more thing to ask, what if I am flying a fixed wing plane, in this case I want to limit the plane from descending, and returning to home while maintaining the current altitude if it is flying above the rtl parameter. Any help is very much appreciated.
@tracnunya7165
Жыл бұрын
was there any particular reason(s) for choosing CUBE ORANGE over all the other options available, trying to figure out the best way to go forward on my mower project, and, assuming orange is the way to go, this new ORANGE PLUS, should i be considering that or is it geared mostly to airborne objects and ORANGE is better choice, thanks
@YurisHomebrewDIY
Жыл бұрын
You should join the discussions at discuss.ardupilot.org. At the time, the Cube Orange was was the most economical, fully featured autopilot with an H743 processor. There are some less expensive, competing autopilots today that would also work great.
@user-os1wy8hj4f
Жыл бұрын
How did you do the '3 position switch demo' in the simulation? gcs_msg(MAV_SEVERITY_INFO,rc_chan:get_aux_switch_pos()) This code always displays 1 when no transmitter or joystick is connected. Which controllers are connected to the simulation and how are the signals transmitted? Would this demo be impossible without a real transmitter or joystick?
@YurisHomebrewDIY
Жыл бұрын
I used an RC transmitter connected as a USB joystick (which I'm SURE I mentioned if you'd watched the whole video). Everything else is simulated. You ought to have a joystick if you are developing scripts that use RC functions.
@user-os1wy8hj4f
Жыл бұрын
@@YurisHomebrewDIY Thanks for the reply. Is 'RC transmitter connected as a USB joystick' configured in this way? kzitem.info/news/bejne/15ew2Yqma5GQoW0 However, I wonder if it is not possible to substitute a cheap USB game controller instead of an expensive RC transmitter if the signal is transmitted by wire anyway. (It would be more beneficial if there were English subtitles. I have poor hearing.)
@YurisHomebrewDIY
Жыл бұрын
ardupilot.org/copter/docs/common-joystick.html
@user-os1wy8hj4f
Жыл бұрын
Thanks to this, I was able to send a "RC override" message by connecting only a USB Gamepad (without autopilot and transmitter&receiver) to my laptop. And I was able to follow the '3 position switch demo'.
@RutTheMouth
2 жыл бұрын
Yuri, nice video along with other videos. Where can I find a complete tutorial for dummies like me who have a kubota ZD326 that I want to convert to an autonomous rover mower? I am looking for a fairly complete parts list, schematics, etc. I am tired of wasting half of my weekend mowing grass and getting sunburn. Please help!
@thegenrl
2 жыл бұрын
"yuri, im not only lazy but so lazy that I dont feel like doing the work it takes to replicate your setup on my very different machine. Can you do all this work for me?"
@SEoperator77
Жыл бұрын
I'd like to learn how to write a Lua script that will collect and parse NMEA data from a pixhawk GPS. Would you be willing to assist me?
@ImpulsiveMigea
Жыл бұрын
Hi! Is it possible to run specific lua script using object detection libraries like opencv?
@user-yb9sn5cg4e
Жыл бұрын
I want to get rangefinder data. how to get this?
@tracnunya7165
Жыл бұрын
omg ty, i will be watching this tonight (brewing coffee), I have been wanting to do this to my fuel injected 33 hp dixie chopper and had no idea until tonight the leaps and bounds people had made in this area. I have the discussion link, I have looked at other videos etc and see references to ardupilot pixhawk, magnetometers, gps and on and on, can you give me just the 30k feet on what hardware software you are using in your mower so I can look all that up and read up on it. I have picked up on a lot already and just need some shortcuts on hardware software topics so I can go read up on them and what they do and how they integrate, thanks. ( i love the ref to vis basic scripting, that was my baby back in the day)
@YurisHomebrewDIY
Жыл бұрын
I'm just going to dump a bunch of keywords here because it's too much to type, and the discussion links already cover it in immense detail: ArduPilot 4.3, Cube Orange, Mauch Power Module, SimpleRTK2B, Survey Grade Antenna, 8 Channel Relay Board, Dimension Engineering PWM Relay, SIYI HM30, Horus X12S, Radiomaster TX16S, EdgeTX, ExpressLRS, Yaapu Telemetry
@tracnunya7165
Жыл бұрын
@@YurisHomebrewDIY rock and roll that's what I'm looking for. I'm examining esprtk right now
@YurisHomebrewDIY
Жыл бұрын
@@tracnunya7165 Avoid ESPRTK if you can. Kenny is giving it a try and has been frustrated, though he did get it working. Not worth the $50 in this man's opinion.
@tracnunya7165
Жыл бұрын
@@YurisHomebrewDIY good to know
@myozone
2 жыл бұрын
Does the SERVOxx_FUNCTION etc in mission planner Setup>Servo Output refer to calling a LUA script ? if so, how do you name a script 1-16 ? Many of the functions in Setup>Servo Output don't seem that well documented - could be me not finding the reference !
@YurisHomebrewDIY
2 жыл бұрын
Your question indicates almost zero understanding of ArduPilot, and it’s extremely difficult to even form an answer. Did you watch the live stream video?
@myozone
2 жыл бұрын
@@YurisHomebrewDIY You're right I only watched a bits - my bad. I just wanted to see the idea of LUA rather than nitty gritty details. Then wondered if the script1 servo function referred to LUA
@YurisHomebrewDIY
2 жыл бұрын
@@myozone Setting a servo function parameter to a scripting value makes that servo output available only to the Lua engine.
@myozone
2 жыл бұрын
Got it thanks, I can program in C but originally wanted to see I if LUA was similar.
@YurisHomebrewDIY
2 жыл бұрын
@@myozone Nearly all languages share similar problem solving logic and perhaps some syntax. Lua is an interpreted scripting language. C is compiled to binary executables. They are quite different in that regard. This is probably not the correct venue to simply compare programming languages. My focus here is on the Lua engine contained within the ArduPilot ecosystem.
Пікірлер: 38