Closed Johnex closed 10 years ago
Make sure that your model name doesn't contain spaces - mine did and the Taranis choked on this.
Not sure how you got Arcucopter_Position telem2.lua to work though since it contains references to a number of BMP files that don't exist in this repository (don't ask me why I have no clue) so you must have these files to get this working. I got it working by substituting the missing filenames for existing ones but it doesn't add much value - telem1 from Arducopter_Status does pretty much the same thing.
telem1 and telem2 from Arducopter_Status do work though - did you add the ApmTelem.lua to the list of LUA's active for the model in question - loading firmware or models from companion deletes them and you need to put them back - at least that has been my experience. I don't bother with APMSounds it's pointless since you can do exactly the same thing using the special functions.
Make sure the mavlink-script is activated on "custom scripts"-screen. I'm planning to show a warning if this step is not completed, but I haven't had time yet.
I don't agree that the ApmSounds is useless. It's certainly possible to do the same thing using special functions and switches, but for most, adding one scripts seems easier :)
Aha i didn't activate it in custom scripts, thanks guys!
Also, from what i understand ApmSounds gets the current flight mode from the mavlink messages so you know that the flight controller actually enabled the mode, while special functions just tells you that the radio has sent the command, but its not a real confirmation that its actually active.
I think that to make APMSounds more 'useful' perhaps it could say something like 'Mode X acknowledged and Activated' or similar, I didn't really understand what it was trying to achieve. Regrettably I doubt that I have a suitable voice for recording said things.
Its super easy to make custom sounds. you want me to make some higher quality sounds using the acapella demos?
ApmSounds informs the user of the actual mode selected by the auto-pilot. Correct me if i'm wrong, but to do the same thing without lua, you first have to create logical switches for all the modes, and then add the soundfile one by one on the special functions page? Or is there an easier way?
About the soundfiles. I've created my files using the OpenTx-speaker app. If someone makes nice sounding higher quality ones, i'll happily replace them.
Why not - I'm intrigued at anything that can be done without employing a voice actor, I still need to update the rather whimpy speaker on my Taranis - either that or start using a headset, sounds OK in the house, can barely hear it outside.
I'm making the sounds now guys ;)
You are correct re the special functions CHSW, I haven't found any other way, not all modes are available as wav files - drift for instance.
SukMeWot. I was trying to do that, but having the modes that are stored being sent also.
I do have the radio say with logical switches when the switches change position, but if you change the flight mode stored on the APM you must also change all the logic on the radio.
If you see some of the sounds here, you can find ALL the flight modes spoken. Half are terminated by the word Active, and the other half the word engaged.ex. AVFM0E and AVFM0A or with a different voice ALFM0E and ALFM0A
I'll have another play, I need to work on the sound anyhow because as I said you can hardly hear it outdoors.
Johnex
IMHO, the best synthetic voices that I've heard are either the native Voices on Mac OSX or the Special Voices with Microsoft Speech Server.
Then we also have the use-case when the user changes the mode over telemetry (using a gcs). How do we want to handle these situations?
Ok done the voices. Question now is how to add them here. I have to fork the repository and then make a pull request? im a total nub at this lol...
Maybe dropbox zip file you chsw you add it?
Christian
The option would be to have the APM send down the value of the FLTMODE1 to 6 and this would have to be stored on the radio. Unless we change the purpose of this project and start sending Mavlink commands via the Taranis commands. I can't do it because my Teensy has the TX pin removed because it's plugged in parallel with a Bluetooth.
I like it as it is now.
SukMeWot, you will hear these sounds no problem. the volume is also higher without any changes on the radio.
Going to try them for sure
I'd help out but I'm still new to the Ardu code and this particular project, still finding my feet and finding out what's available and in what library / file, don't feel comfortable hacking around just yet.
The sounds are pretty darn good I'm going to look up this 'acapella demos' ..
So if you want to make custom sounds here is my process: I go to http://www.acapela-group.com/ . In the demo input add a list of all the sounds i want to make. For example: Stabilize. Acro. Altitude Hold. Auto. Guided. Loiter. Return To Launch. Circle. Land. Optical Flow: Loiter. Drift. Sport. Auto-Tune Engaged. Position Hold.
The new lines are just to make it easier to see, the periods add silence after each read text. I use chrome so i press Ctrl + Shift + J to bring up the developer console. I click on the network tab and then click "Listen" on the demo site. The mp3 file generated by the synthesizer comes up there, and i just copy the link and download the file. I then convert the file to WAV with PCM encoding and 32khz, 16bit mono settings. Using a silence splitter i get new wav files split into all the files i want. rename and done!
For encoding i use dbPoweramp, and for splitting i use Visual MP3 splitter & Joiner.
Entire process takes about 3min for all the files. (I had a problem with Drift getting cut short and sounding strange so that one made it take longer than it should have).
Here is a link for you guys for the OpenTX sounds also in high quality, yes all the sounds. Took just 30min to make all, most time to change file names lol.
https://dl.dropboxusercontent.com/u/6749621/opentx-english-johnex-rev3.zip
If anybody here are good at making icons, I need some logical icons (8x8 pixels or perhaps 7x7) for these messages: Emergency, Alert, Critical, Error, Warning, Notice, Info, Debug
Chris, did you test out the sounds? :) Worthy of your repository? :+1:
They're in my repository - and my TX - muchos gracias
Suk did you check the rest of the sounds for OpenTX a few posts up? :)
Yeh - loaded those too :+1:
Sounds good, I put them in the repository.
@chsw Hey guys, I've loaded all this up and am getting the blank telemetry screens as well. How to I get to the "custom scripts" screen? I haven't seen this before, through companion or on the Taranis?
Also the apm_sounds script doesn't seem to work either, assumming I've put it in the correct place. Is there somewhere to enable this?
Ok I found the issue. Had to select Lua in the build options in Companion Settings and then download the firmware from the internet (with lua enabled). Once I downloaded this to the Taranis and selected the scripts under 'Custom Scripts' in the model settings it was away.
Maybe on the readme file we should add a note about this.
Johnex: There's some new sound in my repository that you may update if you have time/want to :)
Sure thing will do it when I get home )
Sent from Samsung Mobile.
Hi! I finished my tricopter and cloned the repository here. The actual mavlink script on the teensy seems to work as i get gps data in the standard telemetry screen on the taranis, but as soon as i try to put any of the 2 Arducopter_Status scripts i get a blank pages for the scripts. Arducopter_Position does work though.
I copied the folders correctly im sure, and changed the modelname folder to my model name.
Im running the latest master branch here and OpenTX 2.0.12