New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gyro Subsystem #131
Comments
The way gyro is implemented in oXs is a little unusual. In order to use the gyro you also have to let the handset transmit the original stick positions on separate channels. Be careful when you use the gyro functionalities. I used it and it seems to work but I made only a few tests. |
I use it in NORMAL or HOLD mode both work very well. Be very careful with STABILIZE... :-) |
In order to use the gyro you also have to let the handset transmit the original stick positions on separate channels. ################################################ In my case i have 5 Mixers. on the zerro |
you have to set them here : send th GSA GSE GSR commands: and you have to define them as mixers in your handset (what is your handset brand if something with edgetx or openTx I may help ?) |
keep the commands Add e.g. commands
|
Those messages (Write error for MPU6050) are strange. |
12-15cm |
This is perhaps too long. |
I just put on github a new version (2.13.4) in test branch.
Did you noticed that the learning process has several steps:
When this is done, please reboot the devices and ask for the config (with the ENTER command). Normally, it should work. I just made a new test with a new device. |
Config was screw the config Cmd to execute: GSE=11 Cmd to execute: GSR=12 Cmd to execute: SAVE i need to reset the Zerro by nuke |
Reset means just power OFF and ON again. After reset, please just press ENTER and oXs should display the config that is saved in memory. |
i know the def. nuke and reset. |
get this after cal. H and V Cmd to execute: MPUCAL=H Offset Values in config: Cmd to execute: SAVE crsfRxQueue try add error Total config Version = 2.13.3 Esc type is not defined Protocol is CRSF (=ELRS) Gyro configuration is: No sequencers are defined Config parameters are OK |
Thanks for providing your config. The second error you have is that "Gyro mixers must be calibrated" Please do this and post here again your config. Note: getting some error messages (like crsfRxQueue try add error , crsfRxQueuecrsfRxQueue try add error) when oXs saves the config is not abnormal. They must disappear after the reset. |
i run in the next problem during "learning" you do a great job on the oXt and have 6 zerros running als telemtrie dongle also i like to use as ELRS PWM dongle. But the gyrosubsystem is to komplex for me, i will use a commercial product. THX for patience and sorry for waisting you time. Doro |
Hallo,
i try to activate the Gyro Subsystem on Zerro. From point off view everything is setup but there is noch movement from Gyro, Servo movement is ok with sticks
Version = 2.11.6
Function GPIO Change entering XXX=yyy (yyy=255 to disable)
Primary channels input = 5 (PRI = 5, 9, 21, 25)
Secondary channels input = 1 (SEC = 1, 13, 17, 29)
Telemetry . . . . . . . . = 255 (TLM = 0, 1, 2, ..., 29)
GPS Rx . . . . . . . . . = 255 (GPS_RX = 0, 1, 2, ..., 29)
GPS Tx . . . . . . . . . = 255 (GPS_TX = 0, 1, 2, ..., 29)
Sbus OUT . . . . . . . . = 255 (SBUS_OUT= 0, 1, 2, ..., 29)
RPM . . . . . . . . . . = 255 (RPM = 0, 1, 2, ..., 29)
SDA (I2C sensors) . . . . = 14 (SDA = 2, 6, 10, 14, 18, 22, 26)
SCL (I2C sensors) . . . . = 15 (SCL = 3, 7, 11, 15, 19, 23, 27)
PWM Channels 1, 2, 3 ,4 = 2 3 4 6 (C1 / C16= 0, 1, 2, ..., 15)
PWM Channels 5, 6, 7 ,8 = 255 255 255 255
PWM Channels 9,10,11,12 = 255 255 255 255
PWM Channels 13,14,15,16 = 255 255 255 255
Voltage 1, 2, 3, 4 = 255 255 255 255 (V1 / V4 = 26, 27, 28, 29)
RGB led . . . . . . . . . = 16 (RGB = 0, 1, 2, ..., 29)
Logger . . . . . . . . . = 255 (LOG = 0, 1, 2, ..., 29)
ESC . . . . . . . . . . . = 255 (ESC_PIN= 0, 1, 2, ..., 29)Esc type is not defined
Protocol is CRSF (=ELRS)
CRSF baudrate = 420000
Logger baudrate = 115200
PWM is generated at = 50 Hz
Voltage parameters:
Scales : 1.000000 , 1.000000 , 1.000000 , 1.000000
Offsets: 0.000000 , 0.000000 , 0.000000 , 0.000000
No temperature sensors are connected on V3 and V4
RPM multiplier = 1.000000
Baro sensor is not detected
Airspeed sensor is not detected
No Vspeed compensation channel defined; oXs uses default settings
First analog to digital sensor is not detected
Second analog to digital sensor is not detected
Foreseen GPS type is Ublox (configured by oXs) :GPS is not (yet) detected
Led color is normal (not inverted)
Failsafe type is HOLD
Acc/Gyro is detected using MP6050
Acceleration offsets X, Y, Z = -42 , 119 , 2582
Gyro offsets X, Y, Z = -46 , 92 , 28
Orientation Horizontal is UP(Z+) Vertical is BACK(X-)
Gyro configuration is:
Channels for : mode/gain=10 , Ail stick=1 , Elv stick=2 , Rud stick=4
Gain per axis (-128/127): Roll=127 Pitch=127 Yaw=127
Gain on throw : 1 (1=on full throw, 2=on half, 3=on quater)
Max rotate : 3 (1=Very low , 2=low , 3=medium , 4=high)
Stick rotate enabled in rate mode: 1 (1=disabled , 2=enabled)
Stabilize mode : ON (Hold mode is disabled)
PID ---Roll(aileron)--- --Pitch(elevator)-- ----Yaw(rudder)----
Mode Kp Ki Kd Kp Ki Kd Kp Ki Kd
Normal PIDN= 500 0 500 500 0 500 500 0 500
Hold PIDH= 500 500 500 500 500 500 500 500 500
Stab. PIDS= 500 0 500 500 0 500 500 0 500
Gyro mixers are calibrated:
Sticks centered at: Ail=0% Elv=1% Rud=0%
Gyro corrections (from center pos in %) on:
No sequencers are defined
Config parameters are OK
Press ? + Enter to get help about the commands
Regards
Doro
The text was updated successfully, but these errors were encountered: