Commit ee060a61 authored by Vidisha Srivastav's avatar Vidisha Srivastav
Browse files

fixed PWM command orientation for right wing accel orientation

will need to change this for left wing as well for final flyer design
parent 6edbb7fe
......@@ -186,8 +186,12 @@ float get_wing_angle(bool left){ ///Will take in sensor values from WING acceler
float angle_degrees = angle_rads * 180 / 3.14;
// TODO: Why bird_angle different here than python?
return angle_degrees * -1;
if(left){
return angle_degrees * -1;
}
else{
return angle_degrees;
}
}
extern void common_hal_time_delay_ms(uint32_t);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment