[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5014] Draw vehicle using body coordinates which mat
From: |
Allen Ibara |
Subject: |
[paparazzi-commits] [5014] Draw vehicle using body coordinates which match fixed wing (ie, rotated 90 degrees from quad/rotor plane) |
Date: |
Tue, 06 Jul 2010 18:01:44 +0000 |
Revision: 5014
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5014
Author: aibara
Date: 2010-07-06 18:01:44 +0000 (Tue, 06 Jul 2010)
Log Message:
-----------
Draw vehicle using body coordinates which match fixed wing (ie, rotated 90
degrees from quad/rotor plane)
Modified Paths:
--------------
paparazzi3/trunk/sw/in_progress/python/attitude_viz.py
Modified: paparazzi3/trunk/sw/in_progress/python/attitude_viz.py
===================================================================
--- paparazzi3/trunk/sw/in_progress/python/attitude_viz.py 2010-07-02
12:49:19 UTC (rev 5013)
+++ paparazzi3/trunk/sw/in_progress/python/attitude_viz.py 2010-07-06
18:01:44 UTC (rev 5014)
@@ -253,6 +253,7 @@
for telemetry_quat in self.quats:
glPushMatrix()
glRotate(360 * math.acos(telemetry_quat.qi) / math.pi,
telemetry_quat.qy, -telemetry_quat.qz, -telemetry_quat.qx)
+ glRotate(-90, 1, 0, 0)
self.DrawVehicle(telemetry_quat.name)
glPopMatrix()
glTranslate(0, 2 * height / (len(self.quats)), 0)
@@ -320,7 +321,7 @@
if __name__ == "__main__":
global VEHICLE_QUATS, BAR_VALUES
- VEHICLE_QUATS = [ ["AHRS_DEBUG_QUAT", 2, "JOBY"], ["AHRS_DEBUG_QUAT", 10,
"POINE"], ["AHRS_DEBUG_QUAT", 6, "XSENS Estimation"], ["BOOZ2_AHRS_REF_QUAT",
2, "Reference"]]
+ VEHICLE_QUATS = [ ["AHRS_DEBUG_QUAT", 10, "POINE"], ["BOOZ2_AHRS_REF_QUAT",
2, "Reference"]]
BAR_VALUES = [ ["AIRSPEED", 3, "Airspeed (m/s) %i", 0, 1, 40],
["BOOZ2_RADIO_CONTROL", 5, "Throttle (%%) %i", 9600, 96 * 2, 100],
["BOOZ2_RADIO_CONTROL", 6, "Mode %i", -9600, -9600, 2]]
window_title = "Attitude_Viz"
try:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5014] Draw vehicle using body coordinates which match fixed wing (ie, rotated 90 degrees from quad/rotor plane),
Allen Ibara <=