cs8425 / msp-controller

A Cordova application to control MSP-based drone.
GNU General Public License v3.0
11 stars 5 forks source link

cordova plugin #2

Open aloniko84 opened 7 years ago

aloniko84 commented 7 years ago

Hello, $cordova -version 4.3.1

step 4: add plugin for tcp link: cordova plugin add https://github.com/cs8425/cordova-plugin-chrome-apps-sockets-tcp.git#fix-tcp-read-stuck returns error : Failed to install 'cordova-plugin-chrome-apps-sockets-tcp':Error: Expected fetched plugin to have ID "cordova-plugin-chrome-apps-common@1" but got "cordova-plugin-chrome-apps-common@1.0.7".

step 5: cordova plugin add cordova-plugin-device-motion returns : Fetching plugin "cordova-plugin-device-motion" via plugin registry Fetching plugin "cordova-plugin-device-motion" via npm

npm http GET https://registry.npmjs.org/cordova-plugin-device-motion npm http 304 https://registry.npmjs.org/cordova-plugin-device-motion npm WARN deprecated cordova-plugin-device-motion@2.0.0: Plugin deprecated Installing "cordova-plugin-device-motion" for android

    [DEPRECATED] - cordova-plugin-device-motion
    With the W3C Device Motion and Orientation API now being supported on iOS, Android and Windows devices, this plugin is not needed any more. Read more about the API at https://www.w3.org/TR/2016/CR-orientation-event-20160818/ 

please advice. thank you.

cs8425 commented 7 years ago

step 4 has been fix, it should work now. step 5 is NOT error, just a notify that we can use W3C Device Motion and Orientation API, can be ignored currently.

aloniko84 commented 7 years ago

Great, it works now. But i have another issues:

  1. When i open MSP i have to enter IP of the additional serial port that i confuigred in betaflight configurator? Brtaflight configurator cant save my configures after retoob(save eeprom failed) i cant run betafligt SITL.elf one more time unless i delete the eeprem file in betaflight folder, any ideas?
  2. I want to change your MSP code to get data from real RC(throw betaflight configurator) and send it to SITL, what do you think, will it work?
aloniko84 commented 7 years ago

hi, i get this error: when trying to run ./obj/main/betaflight_SITL.elf, if i delete eeprom.bin that it works again, but i cant save my betaflight configurations. what is the problem? permissions?

thank you.

error from terminal:

~/betaflight-master$ ./obj/main/betaflight_SITL.elf [system]Init... [FLASH_Unlock] loaded 'eeprom.bin', size = 32768 / 32768 init PwnOut UDP link...0 start UDP server...0 Segmentation fault (core dumped)

cs8425 commented 7 years ago
  1. Segmentation fault should be fix after betaflight@6f4bd2a
  2. actually this repository should also work as a chrome plugin. or you can try this: https://gist.github.com/cs8425/51893e2f90812aa3831558503597fa1a not so clean but still can work.